@coinbase/cdp-hooks 0.0.75 → 0.0.76

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 (125) hide show
  1. package/README.md +199 -5
  2. package/dist/esm/index177.js +3 -3
  3. package/dist/esm/index206.js +2 -2
  4. package/dist/esm/index209.js +2 -2
  5. package/dist/esm/index210.js +1 -1
  6. package/dist/esm/index214.js +3 -3
  7. package/dist/esm/index215.js +40 -38
  8. package/dist/esm/index216.js +2 -2
  9. package/dist/esm/index217.js +4 -69
  10. package/dist/esm/index218.js +10 -34
  11. package/dist/esm/index219.js +18 -13
  12. package/dist/esm/index220.js +8 -2
  13. package/dist/esm/index221.js +10 -39
  14. package/dist/esm/index222.js +67 -2
  15. package/dist/esm/index223.js +65 -4
  16. package/dist/esm/index224.js +184 -9
  17. package/dist/esm/index225.js +20 -17
  18. package/dist/esm/index226.js +42 -7
  19. package/dist/esm/index227.js +75 -10
  20. package/dist/esm/index228.js +40 -66
  21. package/dist/esm/index229.js +15 -64
  22. package/dist/esm/index230.js +12 -184
  23. package/dist/esm/index231.js +7 -22
  24. package/dist/esm/index232.js +6 -42
  25. package/dist/esm/index233.js +36 -76
  26. package/dist/esm/index234.js +15 -40
  27. package/dist/esm/index235.js +8 -16
  28. package/dist/esm/index236.js +12 -13
  29. package/dist/esm/index237.js +9 -7
  30. package/dist/esm/index238.js +16 -6
  31. package/dist/esm/index239.js +22 -36
  32. package/dist/esm/index240.js +30 -15
  33. package/dist/esm/index241.js +2 -9
  34. package/dist/esm/index242.js +13 -12
  35. package/dist/esm/index243.js +12 -9
  36. package/dist/esm/index244.js +46 -15
  37. package/dist/esm/index245.js +8 -21
  38. package/dist/esm/index246.js +13 -30
  39. package/dist/esm/index247.js +15 -2
  40. package/dist/esm/index248.js +8 -13
  41. package/dist/esm/index249.js +15 -12
  42. package/dist/esm/index250.js +24 -47
  43. package/dist/esm/index251.js +11 -9
  44. package/dist/esm/index252.js +24 -13
  45. package/dist/esm/index253.js +50 -13
  46. package/dist/esm/index254.js +15 -6
  47. package/dist/esm/index255.js +14 -15
  48. package/dist/esm/index256.js +11 -24
  49. package/dist/esm/index257.js +103 -11
  50. package/dist/esm/index258.js +5 -24
  51. package/dist/esm/index259.js +222 -50
  52. package/dist/esm/index260.js +6 -17
  53. package/dist/esm/index261.js +7 -15
  54. package/dist/esm/index262.js +26 -11
  55. package/dist/esm/index263.js +18 -102
  56. package/dist/esm/index264.js +145 -5
  57. package/dist/esm/index265.js +12 -223
  58. package/dist/esm/index266.js +36 -7
  59. package/dist/esm/index267.js +41 -6
  60. package/dist/esm/index268.js +37 -25
  61. package/dist/esm/index269.js +2 -20
  62. package/dist/esm/index270.js +69 -145
  63. package/dist/esm/index271.js +35 -13
  64. package/dist/esm/index272.js +15 -36
  65. package/dist/esm/index273.js +2 -42
  66. package/dist/esm/index277.js +3 -3
  67. package/dist/esm/index280.js +5 -5
  68. package/dist/esm/index281.js +4 -4
  69. package/dist/esm/index282.js +1 -1
  70. package/dist/esm/index284.js +2 -2
  71. package/dist/esm/index285.js +2 -2
  72. package/dist/esm/index286.js +1 -1
  73. package/dist/esm/index287.js +1 -1
  74. package/dist/esm/index288.js +65 -3
  75. package/dist/esm/index289.js +4 -65
  76. package/dist/esm/index290.js +40 -4
  77. package/dist/esm/index291.js +7 -40
  78. package/dist/esm/index292.js +62 -7
  79. package/dist/esm/index293.js +72 -57
  80. package/dist/esm/index294.js +4 -78
  81. package/dist/esm/index295.js +195 -4
  82. package/dist/esm/index296.js +3 -194
  83. package/dist/esm/index297.js +2 -2
  84. package/dist/esm/index3.js +1 -1
  85. package/dist/esm/index33.js +2 -2
  86. package/dist/esm/index40.js +1 -1
  87. package/dist/esm/index41.js +1 -1
  88. package/dist/esm/index44.js +3 -3
  89. package/dist/esm/index45.js +2 -2
  90. package/dist/esm/index46.js +3 -3
  91. package/dist/esm/index47.js +2 -2
  92. package/dist/esm/index48.js +3 -3
  93. package/dist/esm/index49.js +6 -6
  94. package/dist/esm/index50.js +2 -2
  95. package/dist/esm/index51.js +1 -1
  96. package/dist/esm/index52.js +1 -1
  97. package/dist/esm/index53.js +1 -1
  98. package/dist/esm/index54.js +1 -1
  99. package/dist/esm/index55.js +1 -1
  100. package/dist/esm/index56.js +1 -1
  101. package/dist/esm/index57.js +4 -4
  102. package/dist/esm/index58.js +1 -1
  103. package/dist/esm/index66.js +1 -1
  104. package/dist/esm/index67.js +2 -2
  105. package/dist/esm/index68.js +1 -1
  106. package/dist/esm/index73.js +1 -1
  107. package/dist/esm/index76.js +1 -1
  108. package/dist/esm/index79.js +1 -1
  109. package/dist/esm/index80.js +1 -1
  110. package/dist/esm/index81.js +3 -3
  111. package/dist/esm/index82.js +2 -2
  112. package/dist/esm/index83.js +1 -1
  113. package/dist/esm/index85.js +1 -1
  114. package/dist/esm/index86.js +1 -1
  115. package/dist/esm/index87.js +3 -3
  116. package/dist/esm/index88.js +3 -3
  117. package/dist/esm/index89.js +3 -3
  118. package/dist/esm/index90.js +3 -3
  119. package/dist/esm/index91.js +3 -3
  120. package/dist/esm/index92.js +3 -3
  121. package/dist/esm/index93.js +3 -3
  122. package/dist/esm/index94.js +1 -1
  123. package/dist/esm/index96.js +1 -1
  124. package/dist/types/index.d.ts +2 -1
  125. package/package.json +3 -3
@@ -1,197 +1,6 @@
1
- import { InvalidTypeError as g, InvalidArrayError as b, ArrayLengthMismatchError as w, BytesSizeMismatchError as z } from "./index281.js";
2
- import { assert as x } from "./index294.js";
3
- import { BaseError as S } from "./index289.js";
4
- import { size as d, fromNumber as f, concat as p, padLeft as h, fromBoolean as A, IntegerOutOfRangeError as E, padRight as y, fromString as I, slice as B } from "./index277.js";
5
- import { integerRegex as L } from "./index295.js";
6
- function q({ checksumAddress: e, parameters: n, values: r }) {
7
- const t = [];
8
- for (let o = 0; o < n.length; o++)
9
- t.push(u({
10
- checksumAddress: e,
11
- parameter: n[o],
12
- value: r[o]
13
- }));
14
- return t;
15
- }
16
- function u({ checksumAddress: e = !1, parameter: n, value: r }) {
17
- const t = n, o = k(t.type);
18
- if (o) {
19
- const [i, c] = o;
20
- return P(r, {
21
- checksumAddress: e,
22
- length: i,
23
- parameter: {
24
- ...t,
25
- type: c
26
- }
27
- });
28
- }
29
- if (t.type === "tuple")
30
- return R(r, {
31
- checksumAddress: e,
32
- parameter: t
33
- });
34
- if (t.type === "address")
35
- return N(r, {
36
- checksum: e
37
- });
38
- if (t.type === "bool")
39
- return C(r);
40
- if (t.type.startsWith("uint") || t.type.startsWith("int")) {
41
- const i = t.type.startsWith("int"), [, , c = "256"] = L.exec(t.type) ?? [];
42
- return M(r, {
43
- signed: i,
44
- size: Number(c)
45
- });
46
- }
47
- if (t.type.startsWith("bytes"))
48
- return $(r, { type: t.type });
49
- if (t.type === "string")
50
- return W(r);
51
- throw new g(t.type);
52
- }
53
- function l(e) {
54
- let n = 0;
55
- for (let i = 0; i < e.length; i++) {
56
- const { dynamic: c, encoded: s } = e[i];
57
- c ? n += 32 : n += d(s);
58
- }
59
- const r = [], t = [];
60
- let o = 0;
61
- for (let i = 0; i < e.length; i++) {
62
- const { dynamic: c, encoded: s } = e[i];
63
- c ? (r.push(f(n + o, { size: 32 })), t.push(s), o += d(s)) : r.push(s);
64
- }
65
- return p(...r, ...t);
66
- }
67
- function N(e, n) {
68
- const { checksum: r = !1 } = n;
69
- return x(e, { strict: r }), {
70
- dynamic: !1,
71
- encoded: h(e.toLowerCase())
72
- };
73
- }
74
- function P(e, n) {
75
- const { checksumAddress: r, length: t, parameter: o } = n, i = t === null;
76
- if (!Array.isArray(e))
77
- throw new b(e);
78
- if (!i && e.length !== t)
79
- throw new w({
80
- expectedLength: t,
81
- givenLength: e.length,
82
- type: `${o.type}[${t}]`
83
- });
84
- let c = !1;
85
- const s = [];
86
- for (let a = 0; a < e.length; a++) {
87
- const m = u({
88
- checksumAddress: r,
89
- parameter: o,
90
- value: e[a]
91
- });
92
- m.dynamic && (c = !0), s.push(m);
93
- }
94
- if (i || c) {
95
- const a = l(s);
96
- if (i) {
97
- const m = f(s.length, { size: 32 });
98
- return {
99
- dynamic: !0,
100
- encoded: s.length > 0 ? p(m, a) : m
101
- };
102
- }
103
- if (c)
104
- return { dynamic: !0, encoded: a };
105
- }
106
- return {
107
- dynamic: !1,
108
- encoded: p(...s.map(({ encoded: a }) => a))
109
- };
110
- }
111
- function $(e, { type: n }) {
112
- const [, r] = n.split("bytes"), t = d(e);
113
- if (!r) {
114
- let o = e;
115
- return t % 32 !== 0 && (o = y(o, Math.ceil((e.length - 2) / 2 / 32) * 32)), {
116
- dynamic: !0,
117
- encoded: p(h(f(t, { size: 32 })), o)
118
- };
119
- }
120
- if (t !== Number.parseInt(r))
121
- throw new z({
122
- expectedSize: Number.parseInt(r),
123
- value: e
124
- });
125
- return { dynamic: !1, encoded: y(e) };
126
- }
127
- function C(e) {
128
- if (typeof e != "boolean")
129
- throw new S(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);
130
- return { dynamic: !1, encoded: h(A(e)) };
131
- }
132
- function M(e, { signed: n, size: r }) {
133
- if (typeof r == "number") {
134
- const t = 2n ** (BigInt(r) - (n ? 1n : 0n)) - 1n, o = n ? -t - 1n : 0n;
135
- if (e > t || e < o)
136
- throw new E({
137
- max: t.toString(),
138
- min: o.toString(),
139
- signed: n,
140
- size: r / 8,
141
- value: e.toString()
142
- });
143
- }
144
- return {
145
- dynamic: !1,
146
- encoded: f(e, {
147
- size: 32,
148
- signed: n
149
- })
150
- };
151
- }
152
- function W(e) {
153
- const n = I(e), r = Math.ceil(d(n) / 32), t = [];
154
- for (let o = 0; o < r; o++)
155
- t.push(y(B(n, o * 32, (o + 1) * 32)));
156
- return {
157
- dynamic: !0,
158
- encoded: p(y(f(d(n), { size: 32 })), ...t)
159
- };
160
- }
161
- function R(e, n) {
162
- const { checksumAddress: r, parameter: t } = n;
163
- let o = !1;
164
- const i = [];
165
- for (let c = 0; c < t.components.length; c++) {
166
- const s = t.components[c], a = Array.isArray(e) ? c : s.name, m = u({
167
- checksumAddress: r,
168
- parameter: s,
169
- value: e[a]
170
- });
171
- i.push(m), m.dynamic && (o = !0);
172
- }
173
- return {
174
- dynamic: o,
175
- encoded: o ? l(i) : p(...i.map(({ encoded: c }) => c))
176
- };
177
- }
178
- function k(e) {
179
- const n = e.match(/^(.*)\[(\d+)?\]$/);
180
- return n ? (
181
- // Return `null` if the array is dynamic.
182
- [n[2] ? Number(n[2]) : null, n[1]]
183
- ) : void 0;
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
184
3
  }
185
4
  export {
186
- l as encode,
187
- N as encodeAddress,
188
- P as encodeArray,
189
- C as encodeBoolean,
190
- $ as encodeBytes,
191
- M as encodeNumber,
192
- W as encodeString,
193
- R as encodeTuple,
194
- k as getArrayComponents,
195
- u as prepareParameter,
196
- q as prepareParameters
5
+ e as getDefaultExportFromCjs
197
6
  };
@@ -1,7 +1,7 @@
1
- import { BaseError as c } from "./index289.js";
1
+ import { BaseError as c } from "./index288.js";
2
2
  import { padRight as h } from "./index277.js";
3
3
  import { charCodeToBase16 as b, assertSize as g, pad as m } from "./index298.js";
4
- import { assertSize as p } from "./index291.js";
4
+ import { assertSize as p } from "./index290.js";
5
5
  const l = /* @__PURE__ */ new TextEncoder();
6
6
  function E(e) {
7
7
  return e instanceof Uint8Array ? e : typeof e == "string" ? y(e) : z(e);
@@ -1,4 +1,4 @@
1
- const o = "0.0.75";
1
+ const o = "0.0.76";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index288.js";
2
- import { __require as o } from "./index215.js";
1
+ import { getDefaultExportFromCjs as r } from "./index296.js";
2
+ import { __require as o } from "./index268.js";
3
3
  var t = o();
4
4
  const a = /* @__PURE__ */ r(t);
5
5
  export {
@@ -1,4 +1,4 @@
1
- import { withResolvers as d } from "./index241.js";
1
+ import { withResolvers as d } from "./index235.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 "./index242.js";
4
+ import { idCache as y } from "./index236.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 "./index243.js";
7
+ import { isNullUniversalResolverError as y } from "./index237.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 "./index244.js";
11
- import { getAction as B } from "./index237.js";
10
+ import { packetToBytes as N } from "./index238.js";
11
+ import { getAction as B } from "./index231.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 "./index245.js";
2
- import { getAction as u } from "./index237.js";
1
+ import { parseAvatarRecord as m } from "./index239.js";
2
+ import { getAction as u } from "./index231.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 "./index243.js";
5
- import { packetToBytes as C } from "./index244.js";
6
- import { getAction as w } from "./index237.js";
4
+ import { isNullUniversalResolverError as p } from "./index237.js";
5
+ import { packetToBytes as C } from "./index238.js";
6
+ import { getAction as w } from "./index231.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 "./index244.js";
4
- import { getAction as f } from "./index237.js";
3
+ import { packetToBytes as v } from "./index238.js";
4
+ import { getAction as f } from "./index231.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 "./index243.js";
6
+ import { isNullUniversalResolverError as g } from "./index237.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 "./index244.js";
10
- import { getAction as y } from "./index237.js";
9
+ import { packetToBytes as C } from "./index238.js";
10
+ import { getAction as y } from "./index231.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 "./index246.js";
1
+ import { toRpc as $ } from "./index240.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 "./index247.js";
4
+ import { aggregate3Signature as I } from "./index241.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 "./index248.js";
15
- import { extract as et } from "./index249.js";
14
+ import { getCallError as at } from "./index242.js";
15
+ import { extract as et } from "./index243.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 "./index250.js";
18
+ import { serializeStateOverride as ct } from "./index244.js";
19
19
  import { assertRequest as nt } from "./index182.js";
20
- import { parseAbi as z } from "./index227.js";
20
+ import { parseAbi as z } from "./index221.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 "./index248.js";
4
- import { extract as L } from "./index249.js";
3
+ import { getCallError as F } from "./index242.js";
4
+ import { extract as L } from "./index243.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 "./index238.js";
1
+ import { createFilterRequestScope as r } from "./index232.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 "./index238.js";
3
+ import { createFilterRequestScope as u } from "./index232.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 "./index238.js";
3
+ import { createFilterRequestScope as h } from "./index232.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 "./index238.js";
1
+ import { createFilterRequestScope as r } from "./index232.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 "./index237.js";
4
+ import { getAction as g } from "./index231.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 "./index237.js";
2
+ import { getAction as l } from "./index231.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 "./index251.js";
3
+ import { recoverAuthorizationAddress as A } from "./index245.js";
4
4
  import { numberToHex as x } from "./index134.js";
5
- import { getEstimateGasError as E } from "./index252.js";
6
- import { extract as N } from "./index249.js";
5
+ import { getEstimateGasError as E } from "./index246.js";
6
+ import { extract as N } from "./index243.js";
7
7
  import { formatTransactionRequest as S } from "./index169.js";
8
- import { serializeStateOverride as I } from "./index250.js";
8
+ import { serializeStateOverride as I } from "./index244.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 "./index237.js";
3
+ import { getAction as s } from "./index231.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 "./index237.js";
2
+ import { getAction as v } from "./index231.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 "./index253.js";
2
- import { getAction as d } from "./index237.js";
1
+ import { Eip712DomainNotFoundError as u } from "./index247.js";
2
+ import { getAction as d } from "./index231.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 "./index254.js";
2
+ import { formatFeeHistory as f } from "./index248.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 "./index255.js";
2
+ import { formatProof as s } from "./index249.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 "./index237.js";
1
+ import { getAction as n } from "./index231.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 "./index237.js";
9
+ import { getAction as T } from "./index231.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 "./index237.js";
4
+ import { getAction as l } from "./index231.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 "./index246.js";
1
+ import { toRpc as R } from "./index240.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 "./index256.js";
11
+ import { getNodeError as A } from "./index250.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 "./index250.js";
15
+ import { serializeStateOverride as L } from "./index244.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;
@@ -1,5 +1,5 @@
1
- import { encode as J, from as K } from "./index257.js";
2
- import { encodeData as M, from as o } from "./index258.js";
1
+ import { encode as J, from as K } from "./index251.js";
2
+ import { encodeData as M, from as o } from "./index252.js";
3
3
  import { parseAccount as Q } from "./index36.js";
4
4
  import { zeroAddress as t, ethAddress as S } from "./index98.js";
5
5
  import { deploylessCallViaBytecodeBytecode as W } from "./index99.js";
@@ -2,7 +2,7 @@ import { parseAccount as p } from "./index36.js";
2
2
  import { decodeFunctionResult as h } from "./index155.js";
3
3
  import { encodeFunctionData as x } from "./index162.js";
4
4
  import { getContractError as b } from "./index205.js";
5
- import { getAction as g } from "./index237.js";
5
+ import { getAction as g } from "./index231.js";
6
6
  import { call as A } from "./index49.js";
7
7
  async function R(s, m) {
8
8
  const { abi: t, address: r, args: o, dataSuffix: n, functionName: a, ...c } = m, e = c.account ? p(c.account) : s.account, d = x({ abi: t, args: o, functionName: a });
@@ -1,5 +1,5 @@
1
1
  import { hashMessage as h } from "./index207.js";
2
- import { verifyHash as i } from "./index259.js";
2
+ import { verifyHash as i } from "./index253.js";
3
3
  async function m(r, { address: a, message: o, factory: s, factoryData: t, signature: e, ...f }) {
4
4
  const c = h(o);
5
5
  return i(r, {
@@ -1,5 +1,5 @@
1
1
  import { hashTypedData as m } from "./index172.js";
2
- import { verifyHash as d } from "./index259.js";
2
+ import { verifyHash as d } from "./index253.js";
3
3
  async function D(a, t) {
4
4
  const { address: r, factory: e, factoryData: o, signature: s, message: y, primaryType: c, types: f, domain: i, ...n } = t, p = m({ message: y, primaryType: c, types: f, domain: i });
5
5
  return d(a, {
@@ -1,8 +1,8 @@
1
1
  import { BlockNotFoundError as D } from "./index109.js";
2
2
  import { WaitForTransactionReceiptTimeoutError as M, TransactionNotFoundError as O, TransactionReceiptNotFoundError as W } from "./index118.js";
3
- import { getAction as l } from "./index237.js";
4
- import { observe as q } from "./index239.js";
5
- import { withResolvers as z } from "./index241.js";
3
+ import { getAction as l } from "./index231.js";
4
+ import { observe as q } from "./index233.js";
5
+ import { withResolvers as z } from "./index235.js";
6
6
  import { withRetry as B } from "./index200.js";
7
7
  import { stringify as G } from "./index128.js";
8
8
  import { getBlock as H } from "./index61.js";
@@ -1,7 +1,7 @@
1
1
  import { hexToBigInt as w } from "./index167.js";
2
- import { getAction as g } from "./index237.js";
3
- import { observe as k } from "./index239.js";
4
- import { poll as h } from "./index240.js";
2
+ import { getAction as g } from "./index231.js";
3
+ import { observe as k } from "./index233.js";
4
+ import { poll as h } from "./index234.js";
5
5
  import { stringify as y } from "./index128.js";
6
6
  import { getBlockNumber as v } from "./index62.js";
7
7
  function H(r, { emitOnBegin: c = !1, emitMissed: a = !1, onBlockNumber: l, onError: b, poll: i, pollingInterval: m = r.pollingInterval }) {
@@ -1,6 +1,6 @@
1
- import { getAction as p } from "./index237.js";
2
- import { observe as h } from "./index239.js";
3
- import { poll as v } from "./index240.js";
1
+ import { getAction as p } from "./index231.js";
2
+ import { observe as h } from "./index233.js";
3
+ import { poll as v } from "./index234.js";
4
4
  import { stringify as S } from "./index128.js";
5
5
  import { getBlock as i } from "./index61.js";
6
6
  function P(r, { blockTag: l = r.experimental_blockTag ?? "latest", emitMissed: y = !1, emitOnBegin: m = !1, onBlock: k, onError: f, includeTransactions: B, poll: d, pollingInterval: w = r.pollingInterval }) {
@@ -3,9 +3,9 @@ import { InvalidInputRpcError as T } from "./index121.js";
3
3
  import { decodeEventLog as z } from "./index151.js";
4
4
  import { encodeEventTopics as A } from "./index161.js";
5
5
  import { formatLog as B } from "./index142.js";
6
- import { getAction as g } from "./index237.js";
7
- import { observe as F } from "./index239.js";
8
- import { poll as O } from "./index240.js";
6
+ import { getAction as g } from "./index231.js";
7
+ import { observe as F } from "./index233.js";
8
+ import { poll as O } from "./index234.js";
9
9
  import { stringify as D } from "./index128.js";
10
10
  import { createContractEventFilter as R } from "./index52.js";
11
11
  import { getBlockNumber as U } from "./index62.js";
@@ -1,12 +1,12 @@
1
1
  import { encodeEventTopics as S } from "./index161.js";
2
- import { observe as B } from "./index239.js";
3
- import { poll as C } from "./index240.js";
2
+ import { observe as B } from "./index233.js";
3
+ import { poll as C } from "./index234.js";
4
4
  import { stringify as T } from "./index128.js";
5
5
  import { DecodeLogDataMismatch as z, DecodeLogTopicsMismatch as A } from "./index104.js";
6
6
  import { InvalidInputRpcError as O } from "./index121.js";
7
7
  import { decodeEventLog as P } from "./index151.js";
8
8
  import { formatLog as I } from "./index142.js";
9
- import { getAction as u } from "./index237.js";
9
+ import { getAction as u } from "./index231.js";
10
10
  import { createEventFilter as R } from "./index53.js";
11
11
  import { getBlockNumber as U } from "./index62.js";
12
12
  import { getFilterChanges as j } from "./index69.js";
@@ -1,6 +1,6 @@
1
- import { getAction as c } from "./index237.js";
2
- import { observe as p } from "./index239.js";
3
- import { poll as b } from "./index240.js";
1
+ import { getAction as c } from "./index231.js";
2
+ import { observe as p } from "./index233.js";
3
+ import { poll as b } from "./index234.js";
4
4
  import { stringify as m } from "./index128.js";
5
5
  import { createPendingTransactionFilter as d } from "./index54.js";
6
6
  import { getFilterChanges as h } from "./index69.js";