@coinbase/cdp-hooks 0.0.90 → 0.0.91

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 (129) hide show
  1. package/dist/esm/index100.js +1 -1
  2. package/dist/esm/index108.js +1 -1
  3. package/dist/esm/index109.js +2 -2
  4. package/dist/esm/index110.js +1 -1
  5. package/dist/esm/index115.js +1 -1
  6. package/dist/esm/index118.js +1 -1
  7. package/dist/esm/index121.js +1 -1
  8. package/dist/esm/index122.js +1 -1
  9. package/dist/esm/index123.js +3 -3
  10. package/dist/esm/index124.js +2 -2
  11. package/dist/esm/index125.js +1 -1
  12. package/dist/esm/index127.js +1 -1
  13. package/dist/esm/index128.js +1 -1
  14. package/dist/esm/index129.js +3 -3
  15. package/dist/esm/index130.js +3 -3
  16. package/dist/esm/index131.js +3 -3
  17. package/dist/esm/index132.js +3 -3
  18. package/dist/esm/index133.js +3 -3
  19. package/dist/esm/index134.js +3 -3
  20. package/dist/esm/index135.js +3 -3
  21. package/dist/esm/index136.js +1 -1
  22. package/dist/esm/index138.js +1 -1
  23. package/dist/esm/index219.js +3 -3
  24. package/dist/esm/index248.js +2 -2
  25. package/dist/esm/index251.js +2 -2
  26. package/dist/esm/index252.js +1 -1
  27. package/dist/esm/index256.js +3 -3
  28. package/dist/esm/index257.js +40 -38
  29. package/dist/esm/index258.js +2 -2
  30. package/dist/esm/index259.js +4 -69
  31. package/dist/esm/index260.js +10 -34
  32. package/dist/esm/index261.js +18 -13
  33. package/dist/esm/index262.js +7 -40
  34. package/dist/esm/index263.js +12 -2
  35. package/dist/esm/index264.js +66 -4
  36. package/dist/esm/index265.js +64 -9
  37. package/dist/esm/index266.js +183 -17
  38. package/dist/esm/index267.js +22 -7
  39. package/dist/esm/index268.js +41 -10
  40. package/dist/esm/index269.js +72 -62
  41. package/dist/esm/index270.js +36 -61
  42. package/dist/esm/index271.js +15 -184
  43. package/dist/esm/index272.js +12 -21
  44. package/dist/esm/index273.js +7 -42
  45. package/dist/esm/index274.js +6 -76
  46. package/dist/esm/index275.js +36 -40
  47. package/dist/esm/index276.js +15 -16
  48. package/dist/esm/index277.js +8 -13
  49. package/dist/esm/index278.js +12 -7
  50. package/dist/esm/index279.js +9 -6
  51. package/dist/esm/index280.js +16 -36
  52. package/dist/esm/index281.js +22 -15
  53. package/dist/esm/index282.js +29 -7
  54. package/dist/esm/index283.js +2 -13
  55. package/dist/esm/index284.js +13 -9
  56. package/dist/esm/index285.js +11 -15
  57. package/dist/esm/index286.js +45 -20
  58. package/dist/esm/index287.js +9 -30
  59. package/dist/esm/index288.js +14 -2
  60. package/dist/esm/index289.js +14 -13
  61. package/dist/esm/index290.js +8 -12
  62. package/dist/esm/index291.js +14 -46
  63. package/dist/esm/index292.js +23 -8
  64. package/dist/esm/index293.js +11 -13
  65. package/dist/esm/index294.js +24 -14
  66. package/dist/esm/index295.js +51 -8
  67. package/dist/esm/index296.js +15 -13
  68. package/dist/esm/index297.js +14 -24
  69. package/dist/esm/index298.js +11 -11
  70. package/dist/esm/index299.js +103 -24
  71. package/dist/esm/index3.js +1 -1
  72. package/dist/esm/index300.js +5 -51
  73. package/dist/esm/index301.js +222 -16
  74. package/dist/esm/index302.js +6 -14
  75. package/dist/esm/index303.js +7 -12
  76. package/dist/esm/index304.js +24 -101
  77. package/dist/esm/index305.js +19 -5
  78. package/dist/esm/index306.js +140 -218
  79. package/dist/esm/index307.js +13 -7
  80. package/dist/esm/index308.js +35 -6
  81. package/dist/esm/index309.js +41 -26
  82. package/dist/esm/index310.js +38 -19
  83. package/dist/esm/index311.js +2 -146
  84. package/dist/esm/index312.js +70 -13
  85. package/dist/esm/index313.js +34 -35
  86. package/dist/esm/index314.js +14 -41
  87. package/dist/esm/index315.js +69 -2
  88. package/dist/esm/index316.js +3 -68
  89. package/dist/esm/index317.js +136 -3
  90. package/dist/esm/index318.js +144 -125
  91. package/dist/esm/index319.js +9 -155
  92. package/dist/esm/index320.js +16 -9
  93. package/dist/esm/index321.js +113 -16
  94. package/dist/esm/index322.js +116 -95
  95. package/dist/esm/index323.js +70 -126
  96. package/dist/esm/index324.js +2 -79
  97. package/dist/esm/index325.js +698 -2
  98. package/dist/esm/index326.js +126 -685
  99. package/dist/esm/index327.js +41 -137
  100. package/dist/esm/index328.js +198 -40
  101. package/dist/esm/index329.js +2 -201
  102. package/dist/esm/index330.js +65 -3
  103. package/dist/esm/index331.js +4 -65
  104. package/dist/esm/index332.js +40 -4
  105. package/dist/esm/index333.js +7 -40
  106. package/dist/esm/index334.js +62 -7
  107. package/dist/esm/index335.js +72 -57
  108. package/dist/esm/index336.js +4 -78
  109. package/dist/esm/index337.js +195 -4
  110. package/dist/esm/index338.js +3 -194
  111. package/dist/esm/index339.js +3 -3
  112. package/dist/esm/index75.js +2 -2
  113. package/dist/esm/index82.js +1 -1
  114. package/dist/esm/index83.js +1 -1
  115. package/dist/esm/index86.js +3 -3
  116. package/dist/esm/index87.js +2 -2
  117. package/dist/esm/index88.js +3 -3
  118. package/dist/esm/index89.js +2 -2
  119. package/dist/esm/index90.js +3 -3
  120. package/dist/esm/index91.js +6 -6
  121. package/dist/esm/index92.js +2 -2
  122. package/dist/esm/index93.js +1 -1
  123. package/dist/esm/index94.js +1 -1
  124. package/dist/esm/index95.js +1 -1
  125. package/dist/esm/index96.js +1 -1
  126. package/dist/esm/index97.js +1 -1
  127. package/dist/esm/index98.js +1 -1
  128. package/dist/esm/index99.js +4 -4
  129. package/package.json +3 -3
@@ -1,6 +1,197 @@
1
- const e = /^(.*)\[([0-9]*)\]$/, t = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/, n = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
1
+ import { InvalidTypeError as g, InvalidArrayError as b, ArrayLengthMismatchError as w, BytesSizeMismatchError as z } from "./index322.js";
2
+ import { assert as x } from "./index335.js";
3
+ import { BaseError as S } from "./index330.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 "./index318.js";
5
+ import { integerRegex as L } from "./index336.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;
184
+ }
2
185
  export {
3
- e as arrayRegex,
4
- t as bytesRegex,
5
- n as integerRegex
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
6
197
  };
@@ -1,197 +1,6 @@
1
- import { InvalidTypeError as g, InvalidArrayError as b, ArrayLengthMismatchError as w, BytesSizeMismatchError as z } from "./index323.js";
2
- import { assert as x } from "./index336.js";
3
- import { BaseError as S } from "./index331.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 "./index319.js";
5
- import { integerRegex as L } from "./index337.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 "./index331.js";
2
- import { padRight as h } from "./index319.js";
1
+ import { BaseError as c } from "./index330.js";
2
+ import { padRight as h } from "./index318.js";
3
3
  import { charCodeToBase16 as b, assertSize as g, pad as m } from "./index340.js";
4
- import { assertSize as p } from "./index333.js";
4
+ import { assertSize as p } from "./index332.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,5 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index330.js";
2
- import { __require as o } from "./index257.js";
1
+ import { getDefaultExportFromCjs as r } from "./index338.js";
2
+ import { __require as o } from "./index310.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 "./index282.js";
1
+ import { withResolvers as d } from "./index277.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 "./index80.js";
2
2
  import { withTimeout as j } from "./index244.js";
3
3
  import { stringify as c } from "./index170.js";
4
- import { idCache as y } from "./index283.js";
4
+ import { idCache as y } from "./index278.js";
5
5
  function E(s, o = {}) {
6
6
  return {
7
7
  async request(p) {
@@ -4,11 +4,11 @@ import { encodeFunctionData as R } from "./index204.js";
4
4
  import { getChainContractAddress as b } from "./index240.js";
5
5
  import { trim as w } from "./index189.js";
6
6
  import { toHex as C } from "./index176.js";
7
- import { isNullUniversalResolverError as y } from "./index284.js";
7
+ import { isNullUniversalResolverError as y } from "./index279.js";
8
8
  import { localBatchGatewayUrl as x } from "./index230.js";
9
9
  import { namehash as i } from "./index179.js";
10
- import { packetToBytes as N } from "./index285.js";
11
- import { getAction as B } from "./index278.js";
10
+ import { packetToBytes as N } from "./index280.js";
11
+ import { getAction as B } from "./index273.js";
12
12
  import { readContract as T } from "./index122.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 "./index286.js";
2
- import { getAction as u } from "./index278.js";
1
+ import { parseAvatarRecord as m } from "./index281.js";
2
+ import { getAction as u } from "./index273.js";
3
3
  import { getEnsText as f } from "./index90.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 "./index139.js";
2
2
  import { getChainContractAddress as u } from "./index240.js";
3
3
  import { toHex as h } from "./index176.js";
4
- import { isNullUniversalResolverError as p } from "./index284.js";
5
- import { packetToBytes as C } from "./index285.js";
6
- import { getAction as w } from "./index278.js";
4
+ import { isNullUniversalResolverError as p } from "./index279.js";
5
+ import { packetToBytes as C } from "./index280.js";
6
+ import { getAction as w } from "./index273.js";
7
7
  import { readContract as A } from "./index122.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 "./index240.js";
2
2
  import { toHex as u } from "./index176.js";
3
- import { packetToBytes as v } from "./index285.js";
4
- import { getAction as f } from "./index278.js";
3
+ import { packetToBytes as v } from "./index280.js";
4
+ import { getAction as f } from "./index273.js";
5
5
  import { readContract as m } from "./index122.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 "./index197.js";
3
3
  import { encodeFunctionData as A } from "./index204.js";
4
4
  import { getChainContractAddress as R } from "./index240.js";
5
5
  import { toHex as b } from "./index176.js";
6
- import { isNullUniversalResolverError as g } from "./index284.js";
6
+ import { isNullUniversalResolverError as g } from "./index279.js";
7
7
  import { localBatchGatewayUrl as w } from "./index230.js";
8
8
  import { namehash as x } from "./index179.js";
9
- import { packetToBytes as C } from "./index285.js";
10
- import { getAction as y } from "./index278.js";
9
+ import { packetToBytes as C } from "./index280.js";
10
+ import { getAction as y } from "./index273.js";
11
11
  import { readContract as N } from "./index122.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 "./index287.js";
1
+ import { toRpc as $ } from "./index282.js";
2
2
  import { parseAccount as W } from "./index78.js";
3
3
  import { multicall3Abi as O } from "./index139.js";
4
- import { aggregate3Signature as I } from "./index288.js";
4
+ import { aggregate3Signature as I } from "./index283.js";
5
5
  import { deploylessCallViaBytecodeBytecode as J, deploylessCallViaFactoryBytecode as K } from "./index141.js";
6
6
  import { BaseError as N } from "./index149.js";
7
7
  import { ClientChainNotConfiguredError as P, ChainDoesNotSupportContract as Q } from "./index164.js";
@@ -11,13 +11,13 @@ import { encodeDeployData as T } from "./index201.js";
11
11
  import { encodeFunctionData as Z } from "./index204.js";
12
12
  import { getChainContractAddress as tt } from "./index240.js";
13
13
  import { numberToHex as V } from "./index176.js";
14
- import { getCallError as at } from "./index289.js";
15
- import { extract as et } from "./index290.js";
14
+ import { getCallError as at } from "./index284.js";
15
+ import { extract as et } from "./index285.js";
16
16
  import { formatTransactionRequest as rt } from "./index211.js";
17
17
  import { createBatchScheduler as ot } from "./index82.js";
18
- import { serializeStateOverride as ct } from "./index291.js";
18
+ import { serializeStateOverride as ct } from "./index286.js";
19
19
  import { assertRequest as nt } from "./index224.js";
20
- import { parseAbi as z } from "./index268.js";
20
+ import { parseAbi as z } from "./index263.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 "./index78.js";
2
2
  import { numberToHex as y } from "./index176.js";
3
- import { getCallError as F } from "./index289.js";
4
- import { extract as L } from "./index290.js";
3
+ import { getCallError as F } from "./index284.js";
4
+ import { extract as L } from "./index285.js";
5
5
  import { formatTransactionRequest as A } from "./index211.js";
6
6
  import { assertRequest as G } from "./index224.js";
7
7
  async function _(t, e) {
@@ -1,4 +1,4 @@
1
- import { createFilterRequestScope as r } from "./index279.js";
1
+ import { createFilterRequestScope as r } from "./index274.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 "./index203.js";
2
2
  import { numberToHex as s } from "./index176.js";
3
- import { createFilterRequestScope as u } from "./index279.js";
3
+ import { createFilterRequestScope as u } from "./index274.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 "./index203.js";
2
2
  import { numberToHex as m } from "./index176.js";
3
- import { createFilterRequestScope as h } from "./index279.js";
3
+ import { createFilterRequestScope as h } from "./index274.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 "./index279.js";
1
+ import { createFilterRequestScope as r } from "./index274.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 "./index78.js";
2
2
  import { encodeFunctionData as f } from "./index204.js";
3
3
  import { getContractError as p } from "./index247.js";
4
- import { getAction as g } from "./index278.js";
4
+ import { getAction as g } from "./index273.js";
5
5
  import { estimateGas as G } from "./index99.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 "./index162.js";
2
- import { getAction as l } from "./index278.js";
2
+ import { getAction as l } from "./index273.js";
3
3
  import { internal_estimateMaxPriorityFeePerGas as u } from "./index100.js";
4
4
  import { getBlock as G } from "./index103.js";
5
5
  import { getGasPrice as b } from "./index113.js";
@@ -1,11 +1,11 @@
1
1
  import { parseAccount as R } from "./index78.js";
2
2
  import { BaseError as _ } from "./index149.js";
3
- import { recoverAuthorizationAddress as A } from "./index292.js";
3
+ import { recoverAuthorizationAddress as A } from "./index287.js";
4
4
  import { numberToHex as x } from "./index176.js";
5
- import { getEstimateGasError as E } from "./index293.js";
6
- import { extract as N } from "./index290.js";
5
+ import { getEstimateGasError as E } from "./index288.js";
6
+ import { extract as N } from "./index285.js";
7
7
  import { formatTransactionRequest as S } from "./index211.js";
8
- import { serializeStateOverride as I } from "./index291.js";
8
+ import { serializeStateOverride as I } from "./index286.js";
9
9
  import { assertRequest as V } from "./index224.js";
10
10
  import { prepareTransactionRequest as C } from "./index136.js";
11
11
  import { getBalance as j } from "./index101.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-hooks",
3
- "version": "0.0.90",
3
+ "version": "0.0.91",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "peerDependencies": {
17
17
  "react": ">=18.2.0",
18
- "@coinbase/cdp-core": "^0.0.90"
18
+ "@coinbase/cdp-core": "^0.0.91"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@testing-library/jest-dom": "^6.6.3",
@@ -30,7 +30,7 @@
30
30
  "@size-limit/webpack": "^11.2.0",
31
31
  "@size-limit/webpack-why": "^11.2.0",
32
32
  "size-limit": "^11.2.0",
33
- "@coinbase/cdp-core": "^0.0.90"
33
+ "@coinbase/cdp-core": "^0.0.91"
34
34
  },
35
35
  "size-limit": [
36
36
  {