@coinbase/cdp-core 0.0.87 → 0.0.88

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 (295) hide show
  1. package/dist/esm/index.native10.js +1 -1
  2. package/dist/esm/index.native101.js +2 -2
  3. package/dist/esm/index.native105.js +3 -3
  4. package/dist/esm/index.native106.js +31 -2
  5. package/dist/esm/index.native107.js +28 -65
  6. package/dist/esm/index.native108.js +2 -367
  7. package/dist/esm/index.native109.js +65 -28
  8. package/dist/esm/index.native110.js +364 -28
  9. package/dist/esm/index.native122.js +5 -35
  10. package/dist/esm/index.native123.js +40 -60
  11. package/dist/esm/index.native124.js +35 -5
  12. package/dist/esm/index.native125.js +60 -40
  13. package/dist/esm/index.native197.js +37 -107
  14. package/dist/esm/index.native199.js +69 -7
  15. package/dist/esm/index.native2.js +35 -30
  16. package/dist/esm/index.native200.js +35 -2
  17. package/dist/esm/index.native201.js +17 -374
  18. package/dist/esm/index.native202.js +7 -835
  19. package/dist/esm/index.native203.js +2 -39
  20. package/dist/esm/index.native204.js +378 -2
  21. package/dist/esm/index.native205.js +835 -69
  22. package/dist/esm/index.native206.js +106 -32
  23. package/dist/esm/index.native207.js +2 -21
  24. package/dist/esm/index.native222.js +2 -2
  25. package/dist/esm/index.native223.js +2 -2
  26. package/dist/esm/index.native224.js +2 -2
  27. package/dist/esm/index.native225.js +1 -1
  28. package/dist/esm/index.native3.js +1 -1
  29. package/dist/esm/index.native67.js +97 -60
  30. package/dist/esm/index.native9.js +1 -1
  31. package/dist/esm/index.native90.js +2 -2
  32. package/dist/esm/index.web102.js +12 -12
  33. package/dist/esm/index.web106.js +3 -3
  34. package/dist/esm/index.web107.js +2 -31
  35. package/dist/esm/index.web108.js +65 -28
  36. package/dist/esm/index.web109.js +367 -2
  37. package/dist/esm/index.web110.js +28 -65
  38. package/dist/esm/index.web111.js +28 -364
  39. package/dist/esm/index.web116.js +1 -1
  40. package/dist/esm/index.web117.js +2 -2
  41. package/dist/esm/index.web123.js +1 -1
  42. package/dist/esm/index.web127.js +4 -17
  43. package/dist/esm/index.web128.js +16 -44
  44. package/dist/esm/index.web129.js +45 -13
  45. package/dist/esm/index.web130.js +13 -55
  46. package/dist/esm/index.web131.js +55 -6
  47. package/dist/esm/index.web132.js +6 -21
  48. package/dist/esm/index.web133.js +21 -3
  49. package/dist/esm/index.web134.js +3 -3
  50. package/dist/esm/index.web135.js +3 -34
  51. package/dist/esm/index.web136.js +32 -10
  52. package/dist/esm/index.web137.js +12 -4
  53. package/dist/esm/index.web138.js +4 -28
  54. package/dist/esm/index.web139.js +28 -6
  55. package/dist/esm/index.web140.js +6 -42
  56. package/dist/esm/index.web141.js +41 -54
  57. package/dist/esm/index.web142.js +54 -126
  58. package/dist/esm/index.web143.js +127 -23
  59. package/dist/esm/index.web144.js +22 -11
  60. package/dist/esm/index.web145.js +9 -101
  61. package/dist/esm/index.web146.js +104 -6
  62. package/dist/esm/index.web147.js +7 -3
  63. package/dist/esm/index.web148.js +3 -15
  64. package/dist/esm/index.web149.js +14 -34
  65. package/dist/esm/index.web150.js +31 -75
  66. package/dist/esm/index.web151.js +79 -2
  67. package/dist/esm/index.web152.js +2 -2
  68. package/dist/esm/index.web153.js +2 -38
  69. package/dist/esm/index.web154.js +36 -5
  70. package/dist/esm/index.web155.js +5 -33
  71. package/dist/esm/index.web156.js +34 -8
  72. package/dist/esm/index.web157.js +8 -10
  73. package/dist/esm/index.web158.js +10 -11
  74. package/dist/esm/index.web159.js +11 -13
  75. package/dist/esm/index.web160.js +13 -18
  76. package/dist/esm/index.web161.js +18 -5
  77. package/dist/esm/index.web162.js +6 -5
  78. package/dist/esm/index.web163.js +5 -11
  79. package/dist/esm/index.web164.js +10 -4
  80. package/dist/esm/index.web165.js +14 -103
  81. package/dist/esm/index.web166.js +27 -77
  82. package/dist/esm/index.web167.js +7 -79
  83. package/dist/esm/index.web168.js +3 -14
  84. package/dist/esm/index.web169.js +16 -16
  85. package/dist/esm/index.web170.js +8 -7
  86. package/dist/esm/index.web171.js +7 -3
  87. package/dist/esm/index.web172.js +70 -18
  88. package/dist/esm/index.web173.js +28 -8
  89. package/dist/esm/index.web174.js +3 -7
  90. package/dist/esm/index.web175.js +7 -72
  91. package/dist/esm/index.web176.js +4 -28
  92. package/dist/esm/index.web177.js +14 -3
  93. package/dist/esm/index.web178.js +19 -15
  94. package/dist/esm/index.web179.js +61 -4
  95. package/dist/esm/index.web180.js +16 -13
  96. package/dist/esm/index.web181.js +19 -15
  97. package/dist/esm/index.web182.js +8 -61
  98. package/dist/esm/index.web183.js +41 -16
  99. package/dist/esm/index.web184.js +7 -23
  100. package/dist/esm/index.web185.js +20 -8
  101. package/dist/esm/index.web186.js +102 -41
  102. package/dist/esm/index.web187.js +78 -7
  103. package/dist/esm/index.web188.js +79 -20
  104. package/dist/esm/index.web189.js +1 -1
  105. package/dist/esm/index.web190.js +3 -3
  106. package/dist/esm/index.web192.js +3 -3
  107. package/dist/esm/index.web194.js +3 -3
  108. package/dist/esm/index.web195.js +2 -8
  109. package/dist/esm/index.web196.js +109 -2
  110. package/dist/esm/index.web197.js +2 -378
  111. package/dist/esm/index.web198.js +7 -835
  112. package/dist/esm/index.web199.js +2 -39
  113. package/dist/esm/index.web2.js +34 -29
  114. package/dist/esm/index.web200.js +378 -2
  115. package/dist/esm/index.web201.js +835 -69
  116. package/dist/esm/index.web202.js +37 -33
  117. package/dist/esm/index.web203.js +2 -21
  118. package/dist/esm/index.web204.js +70 -2
  119. package/dist/esm/index.web205.js +34 -20
  120. package/dist/esm/index.web206.js +19 -18
  121. package/dist/esm/index.web207.js +2 -33
  122. package/dist/esm/index.web208.js +20 -6
  123. package/dist/esm/index.web209.js +20 -2
  124. package/dist/esm/index.web210.js +31 -107
  125. package/dist/esm/index.web211.js +7 -2
  126. package/dist/esm/index.web213.js +47 -2
  127. package/dist/esm/index.web214.js +18 -2
  128. package/dist/esm/index.web215.js +28 -2
  129. package/dist/esm/index.web216.js +8 -18
  130. package/dist/esm/index.web217.js +9 -26
  131. package/dist/esm/index.web218.js +13 -8
  132. package/dist/esm/index.web219.js +10 -11
  133. package/dist/esm/index.web220.js +15 -11
  134. package/dist/esm/index.web221.js +80 -9
  135. package/dist/esm/index.web222.js +2 -17
  136. package/dist/esm/index.web223.js +2 -81
  137. package/dist/esm/index.web224.js +2 -47
  138. package/dist/esm/index.web226.js +14 -78
  139. package/dist/esm/index.web227.js +78 -14
  140. package/dist/esm/index.web3.js +1 -1
  141. package/dist/esm/index.web66.js +97 -60
  142. package/dist/esm/index.web8.js +1 -1
  143. package/dist/esm/index.web9.js +1 -1
  144. package/dist/esm/index.web92.js +2 -2
  145. package/dist/native/index.native10.js +1 -1
  146. package/dist/native/index.native101.js +2 -2
  147. package/dist/native/index.native105.js +3 -3
  148. package/dist/native/index.native106.js +31 -2
  149. package/dist/native/index.native107.js +28 -65
  150. package/dist/native/index.native108.js +2 -367
  151. package/dist/native/index.native109.js +65 -28
  152. package/dist/native/index.native110.js +364 -28
  153. package/dist/native/index.native122.js +5 -35
  154. package/dist/native/index.native123.js +40 -60
  155. package/dist/native/index.native124.js +35 -5
  156. package/dist/native/index.native125.js +60 -40
  157. package/dist/native/index.native197.js +37 -107
  158. package/dist/native/index.native199.js +69 -7
  159. package/dist/native/index.native2.js +35 -30
  160. package/dist/native/index.native200.js +35 -2
  161. package/dist/native/index.native201.js +17 -374
  162. package/dist/native/index.native202.js +7 -835
  163. package/dist/native/index.native203.js +2 -39
  164. package/dist/native/index.native204.js +378 -2
  165. package/dist/native/index.native205.js +835 -69
  166. package/dist/native/index.native206.js +106 -32
  167. package/dist/native/index.native207.js +2 -21
  168. package/dist/native/index.native222.js +2 -2
  169. package/dist/native/index.native223.js +2 -2
  170. package/dist/native/index.native224.js +2 -2
  171. package/dist/native/index.native225.js +1 -1
  172. package/dist/native/index.native3.js +1 -1
  173. package/dist/native/index.native67.js +97 -60
  174. package/dist/native/index.native9.js +1 -1
  175. package/dist/native/index.native90.js +2 -2
  176. package/dist/native-types/auth/authManager.d.ts +1 -1
  177. package/dist/native-types/version.d.ts +1 -1
  178. package/dist/types/auth/authManager.d.ts +1 -1
  179. package/dist/types/version.d.ts +1 -1
  180. package/dist/web/index.web102.js +12 -12
  181. package/dist/web/index.web106.js +3 -3
  182. package/dist/web/index.web107.js +2 -31
  183. package/dist/web/index.web108.js +65 -28
  184. package/dist/web/index.web109.js +367 -2
  185. package/dist/web/index.web110.js +28 -65
  186. package/dist/web/index.web111.js +28 -364
  187. package/dist/web/index.web116.js +1 -1
  188. package/dist/web/index.web117.js +2 -2
  189. package/dist/web/index.web123.js +1 -1
  190. package/dist/web/index.web127.js +4 -17
  191. package/dist/web/index.web128.js +16 -44
  192. package/dist/web/index.web129.js +45 -13
  193. package/dist/web/index.web130.js +13 -55
  194. package/dist/web/index.web131.js +55 -6
  195. package/dist/web/index.web132.js +6 -21
  196. package/dist/web/index.web133.js +21 -3
  197. package/dist/web/index.web134.js +3 -3
  198. package/dist/web/index.web135.js +3 -34
  199. package/dist/web/index.web136.js +32 -10
  200. package/dist/web/index.web137.js +12 -4
  201. package/dist/web/index.web138.js +4 -28
  202. package/dist/web/index.web139.js +28 -6
  203. package/dist/web/index.web140.js +6 -42
  204. package/dist/web/index.web141.js +41 -54
  205. package/dist/web/index.web142.js +54 -126
  206. package/dist/web/index.web143.js +127 -23
  207. package/dist/web/index.web144.js +22 -11
  208. package/dist/web/index.web145.js +9 -101
  209. package/dist/web/index.web146.js +104 -6
  210. package/dist/web/index.web147.js +7 -3
  211. package/dist/web/index.web148.js +3 -15
  212. package/dist/web/index.web149.js +14 -34
  213. package/dist/web/index.web150.js +31 -75
  214. package/dist/web/index.web151.js +79 -2
  215. package/dist/web/index.web152.js +2 -2
  216. package/dist/web/index.web153.js +2 -38
  217. package/dist/web/index.web154.js +36 -5
  218. package/dist/web/index.web155.js +5 -33
  219. package/dist/web/index.web156.js +34 -8
  220. package/dist/web/index.web157.js +8 -10
  221. package/dist/web/index.web158.js +10 -11
  222. package/dist/web/index.web159.js +11 -13
  223. package/dist/web/index.web160.js +13 -18
  224. package/dist/web/index.web161.js +18 -5
  225. package/dist/web/index.web162.js +6 -5
  226. package/dist/web/index.web163.js +5 -11
  227. package/dist/web/index.web164.js +10 -4
  228. package/dist/web/index.web165.js +14 -103
  229. package/dist/web/index.web166.js +27 -77
  230. package/dist/web/index.web167.js +7 -79
  231. package/dist/web/index.web168.js +3 -14
  232. package/dist/web/index.web169.js +16 -16
  233. package/dist/web/index.web170.js +8 -7
  234. package/dist/web/index.web171.js +7 -3
  235. package/dist/web/index.web172.js +70 -18
  236. package/dist/web/index.web173.js +28 -8
  237. package/dist/web/index.web174.js +3 -7
  238. package/dist/web/index.web175.js +7 -72
  239. package/dist/web/index.web176.js +4 -28
  240. package/dist/web/index.web177.js +14 -3
  241. package/dist/web/index.web178.js +19 -15
  242. package/dist/web/index.web179.js +61 -4
  243. package/dist/web/index.web180.js +16 -13
  244. package/dist/web/index.web181.js +19 -15
  245. package/dist/web/index.web182.js +8 -61
  246. package/dist/web/index.web183.js +41 -16
  247. package/dist/web/index.web184.js +7 -23
  248. package/dist/web/index.web185.js +20 -8
  249. package/dist/web/index.web186.js +102 -41
  250. package/dist/web/index.web187.js +78 -7
  251. package/dist/web/index.web188.js +79 -20
  252. package/dist/web/index.web189.js +1 -1
  253. package/dist/web/index.web190.js +3 -3
  254. package/dist/web/index.web192.js +3 -3
  255. package/dist/web/index.web194.js +3 -3
  256. package/dist/web/index.web195.js +2 -8
  257. package/dist/web/index.web196.js +109 -2
  258. package/dist/web/index.web197.js +2 -378
  259. package/dist/web/index.web198.js +7 -835
  260. package/dist/web/index.web199.js +2 -39
  261. package/dist/web/index.web2.js +34 -29
  262. package/dist/web/index.web200.js +378 -2
  263. package/dist/web/index.web201.js +835 -69
  264. package/dist/web/index.web202.js +37 -33
  265. package/dist/web/index.web203.js +2 -21
  266. package/dist/web/index.web204.js +70 -2
  267. package/dist/web/index.web205.js +34 -20
  268. package/dist/web/index.web206.js +19 -18
  269. package/dist/web/index.web207.js +2 -33
  270. package/dist/web/index.web208.js +20 -6
  271. package/dist/web/index.web209.js +20 -2
  272. package/dist/web/index.web210.js +31 -107
  273. package/dist/web/index.web211.js +7 -2
  274. package/dist/web/index.web213.js +47 -2
  275. package/dist/web/index.web214.js +18 -2
  276. package/dist/web/index.web215.js +28 -2
  277. package/dist/web/index.web216.js +8 -18
  278. package/dist/web/index.web217.js +9 -26
  279. package/dist/web/index.web218.js +13 -8
  280. package/dist/web/index.web219.js +10 -11
  281. package/dist/web/index.web220.js +15 -11
  282. package/dist/web/index.web221.js +80 -9
  283. package/dist/web/index.web222.js +2 -17
  284. package/dist/web/index.web223.js +2 -81
  285. package/dist/web/index.web224.js +2 -47
  286. package/dist/web/index.web226.js +14 -78
  287. package/dist/web/index.web227.js +78 -14
  288. package/dist/web/index.web3.js +1 -1
  289. package/dist/web/index.web66.js +97 -60
  290. package/dist/web/index.web8.js +1 -1
  291. package/dist/web/index.web9.js +1 -1
  292. package/dist/web/index.web92.js +2 -2
  293. package/dist/web-types/auth/authManager.d.ts +1 -1
  294. package/dist/web-types/version.d.ts +1 -1
  295. package/package.json +2 -2
@@ -1,4 +1,81 @@
1
- const e = 1;
1
+ import { versionedHashVersionKzg as c } from "./index.web152.js";
2
+ import { maxUint256 as m } from "./index.web153.js";
3
+ import { InvalidAddressError as s } from "./index.web116.js";
4
+ import { BaseError as h } from "./index.web142.js";
5
+ import { EmptyBlobError as P, InvalidVersionedHashSizeError as p, InvalidVersionedHashVersionError as x } from "./index.web154.js";
6
+ import { InvalidChainIdError as n } from "./index.web155.js";
7
+ import { FeeCapTooHighError as w, TipAboveFeeCapError as E } from "./index.web156.js";
8
+ import { isAddress as f } from "./index.web117.js";
9
+ import { size as F } from "./index.web138.js";
10
+ import { slice as I } from "./index.web139.js";
11
+ import { hexToNumber as G } from "./index.web144.js";
12
+ function C(t) {
13
+ const { authorizationList: e } = t;
14
+ if (e)
15
+ for (const o of e) {
16
+ const { chainId: r } = o, i = o.address;
17
+ if (!f(i))
18
+ throw new s({ address: i });
19
+ if (r < 0)
20
+ throw new n({ chainId: r });
21
+ }
22
+ d(t);
23
+ }
24
+ function L(t) {
25
+ const { blobVersionedHashes: e } = t;
26
+ if (e) {
27
+ if (e.length === 0)
28
+ throw new P();
29
+ for (const o of e) {
30
+ const r = F(o), i = G(I(o, 0, 1));
31
+ if (r !== 32)
32
+ throw new p({ hash: o, size: r });
33
+ if (i !== c)
34
+ throw new x({
35
+ hash: o,
36
+ version: i
37
+ });
38
+ }
39
+ }
40
+ d(t);
41
+ }
42
+ function d(t) {
43
+ const { chainId: e, maxPriorityFeePerGas: o, maxFeePerGas: r, to: i } = t;
44
+ if (e <= 0)
45
+ throw new n({ chainId: e });
46
+ if (i && !f(i))
47
+ throw new s({ address: i });
48
+ if (r && r > m)
49
+ throw new w({ maxFeePerGas: r });
50
+ if (o && r && o > r)
51
+ throw new E({ maxFeePerGas: r, maxPriorityFeePerGas: o });
52
+ }
53
+ function B(t) {
54
+ const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
55
+ if (e <= 0)
56
+ throw new n({ chainId: e });
57
+ if (a && !f(a))
58
+ throw new s({ address: a });
59
+ if (o || i)
60
+ throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
61
+ if (r && r > m)
62
+ throw new w({ maxFeePerGas: r });
63
+ }
64
+ function K(t) {
65
+ const { chainId: e, maxPriorityFeePerGas: o, gasPrice: r, maxFeePerGas: i, to: a } = t;
66
+ if (a && !f(a))
67
+ throw new s({ address: a });
68
+ if (typeof e < "u" && e <= 0)
69
+ throw new n({ chainId: e });
70
+ if (o || i)
71
+ throw new h("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
72
+ if (r && r > m)
73
+ throw new w({ maxFeePerGas: r });
74
+ }
2
75
  export {
3
- e as versionedHashVersionKzg
76
+ d as assertTransactionEIP1559,
77
+ B as assertTransactionEIP2930,
78
+ L as assertTransactionEIP4844,
79
+ C as assertTransactionEIP7702,
80
+ K as assertTransactionLegacy
4
81
  };
@@ -1,4 +1,4 @@
1
- const n = 2n ** 256n - 1n;
1
+ const e = 1;
2
2
  export {
3
- n as maxUint256
3
+ e as versionedHashVersionKzg
4
4
  };
@@ -1,40 +1,4 @@
1
- import { versionedHashVersionKzg as a } from "./index.web151.js";
2
- import { BaseError as s } from "./index.web141.js";
3
- class t extends s {
4
- constructor({ maxSize: e, size: r }) {
5
- super("Blob size is too large.", {
6
- metaMessages: [`Max: ${e} bytes`, `Given: ${r} bytes`],
7
- name: "BlobSizeTooLargeError"
8
- });
9
- }
10
- }
11
- class d extends s {
12
- constructor() {
13
- super("Blob data must not be empty.", { name: "EmptyBlobError" });
14
- }
15
- }
16
- class l extends s {
17
- constructor({ hash: e, size: r }) {
18
- super(`Versioned hash "${e}" size is invalid.`, {
19
- metaMessages: ["Expected: 32", `Received: ${r}`],
20
- name: "InvalidVersionedHashSizeError"
21
- });
22
- }
23
- }
24
- class c extends s {
25
- constructor({ hash: e, version: r }) {
26
- super(`Versioned hash "${e}" version is invalid.`, {
27
- metaMessages: [
28
- `Expected: ${a}`,
29
- `Received: ${r}`
30
- ],
31
- name: "InvalidVersionedHashVersionError"
32
- });
33
- }
34
- }
1
+ const n = 2n ** 256n - 1n;
35
2
  export {
36
- t as BlobSizeTooLargeError,
37
- d as EmptyBlobError,
38
- l as InvalidVersionedHashSizeError,
39
- c as InvalidVersionedHashVersionError
3
+ n as maxUint256
40
4
  };
@@ -1,9 +1,40 @@
1
- import { BaseError as i } from "./index.web141.js";
2
- class o extends i {
3
- constructor({ chainId: r }) {
4
- super(typeof r == "number" ? `Chain ID "${r}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
1
+ import { versionedHashVersionKzg as a } from "./index.web152.js";
2
+ import { BaseError as s } from "./index.web142.js";
3
+ class t extends s {
4
+ constructor({ maxSize: e, size: r }) {
5
+ super("Blob size is too large.", {
6
+ metaMessages: [`Max: ${e} bytes`, `Given: ${r} bytes`],
7
+ name: "BlobSizeTooLargeError"
8
+ });
9
+ }
10
+ }
11
+ class d extends s {
12
+ constructor() {
13
+ super("Blob data must not be empty.", { name: "EmptyBlobError" });
14
+ }
15
+ }
16
+ class l extends s {
17
+ constructor({ hash: e, size: r }) {
18
+ super(`Versioned hash "${e}" size is invalid.`, {
19
+ metaMessages: ["Expected: 32", `Received: ${r}`],
20
+ name: "InvalidVersionedHashSizeError"
21
+ });
22
+ }
23
+ }
24
+ class c extends s {
25
+ constructor({ hash: e, version: r }) {
26
+ super(`Versioned hash "${e}" version is invalid.`, {
27
+ metaMessages: [
28
+ `Expected: ${a}`,
29
+ `Received: ${r}`
30
+ ],
31
+ name: "InvalidVersionedHashVersionError"
32
+ });
5
33
  }
6
34
  }
7
35
  export {
8
- o as InvalidChainIdError
36
+ t as BlobSizeTooLargeError,
37
+ d as EmptyBlobError,
38
+ l as InvalidVersionedHashSizeError,
39
+ c as InvalidVersionedHashVersionError
9
40
  };
@@ -1,37 +1,9 @@
1
- import { formatGwei as a } from "./index.web161.js";
2
- import { BaseError as o } from "./index.web141.js";
3
- class n extends o {
4
- constructor({ cause: r, maxFeePerGas: e } = {}) {
5
- super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
6
- cause: r,
7
- name: "FeeCapTooHighError"
8
- });
1
+ import { BaseError as i } from "./index.web142.js";
2
+ class o extends i {
3
+ constructor({ chainId: r }) {
4
+ super(typeof r == "number" ? `Chain ID "${r}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
9
5
  }
10
6
  }
11
- Object.defineProperty(n, "nodeMessage", {
12
- enumerable: !0,
13
- configurable: !0,
14
- writable: !0,
15
- value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
16
- });
17
- class h extends o {
18
- constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: t } = {}) {
19
- super([
20
- `The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t ? ` = ${a(t)} gwei` : ""}).`
21
- ].join(`
22
- `), {
23
- cause: r,
24
- name: "TipAboveFeeCapError"
25
- });
26
- }
27
- }
28
- Object.defineProperty(h, "nodeMessage", {
29
- enumerable: !0,
30
- configurable: !0,
31
- writable: !0,
32
- value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
33
- });
34
7
  export {
35
- n as FeeCapTooHighError,
36
- h as TipAboveFeeCapError
8
+ o as InvalidChainIdError
37
9
  };
@@ -1,11 +1,37 @@
1
- import { hexToBytes as i } from "./index.web130.js";
2
- import { bytesToHex as f } from "./index.web128.js";
3
- function y(o) {
4
- const { kzg: s } = o, n = o.to ?? (typeof o.blobs[0] == "string" ? "hex" : "bytes"), m = typeof o.blobs[0] == "string" ? o.blobs.map((t) => i(t)) : o.blobs, b = [];
5
- for (const t of m)
6
- b.push(Uint8Array.from(s.blobToKzgCommitment(t)));
7
- return n === "bytes" ? b : b.map((t) => f(t));
1
+ import { formatGwei as a } from "./index.web162.js";
2
+ import { BaseError as o } from "./index.web142.js";
3
+ class n extends o {
4
+ constructor({ cause: r, maxFeePerGas: e } = {}) {
5
+ super(`The fee cap (\`maxFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
6
+ cause: r,
7
+ name: "FeeCapTooHighError"
8
+ });
9
+ }
8
10
  }
11
+ Object.defineProperty(n, "nodeMessage", {
12
+ enumerable: !0,
13
+ configurable: !0,
14
+ writable: !0,
15
+ value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
16
+ });
17
+ class h extends o {
18
+ constructor({ cause: r, maxPriorityFeePerGas: e, maxFeePerGas: t } = {}) {
19
+ super([
20
+ `The provided tip (\`maxPriorityFeePerGas\`${e ? ` = ${a(e)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${t ? ` = ${a(t)} gwei` : ""}).`
21
+ ].join(`
22
+ `), {
23
+ cause: r,
24
+ name: "TipAboveFeeCapError"
25
+ });
26
+ }
27
+ }
28
+ Object.defineProperty(h, "nodeMessage", {
29
+ enumerable: !0,
30
+ configurable: !0,
31
+ writable: !0,
32
+ value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
33
+ });
9
34
  export {
10
- y as blobsToCommitments
35
+ n as FeeCapTooHighError,
36
+ h as TipAboveFeeCapError
11
37
  };
@@ -1,13 +1,11 @@
1
- import { hexToBytes as b } from "./index.web130.js";
2
- import { bytesToHex as y } from "./index.web128.js";
3
- function h(t) {
4
- const { kzg: m } = t, c = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), s = typeof t.blobs[0] == "string" ? t.blobs.map((o) => b(o)) : t.blobs, i = typeof t.commitments[0] == "string" ? t.commitments.map((o) => b(o)) : t.commitments, n = [];
5
- for (let o = 0; o < s.length; o++) {
6
- const f = s[o], l = i[o];
7
- n.push(Uint8Array.from(m.computeBlobKzgProof(f, l)));
8
- }
9
- return c === "bytes" ? n : n.map((o) => y(o));
1
+ import { hexToBytes as i } from "./index.web131.js";
2
+ import { bytesToHex as f } from "./index.web129.js";
3
+ function y(o) {
4
+ const { kzg: s } = o, n = o.to ?? (typeof o.blobs[0] == "string" ? "hex" : "bytes"), m = typeof o.blobs[0] == "string" ? o.blobs.map((t) => i(t)) : o.blobs, b = [];
5
+ for (const t of m)
6
+ b.push(Uint8Array.from(s.blobToKzgCommitment(t)));
7
+ return n === "bytes" ? b : b.map((t) => f(t));
10
8
  }
11
9
  export {
12
- h as blobsToProofs
10
+ y as blobsToCommitments
13
11
  };
@@ -1,14 +1,13 @@
1
- import { commitmentToVersionedHash as i } from "./index.web208.js";
2
- function r(o) {
3
- const { commitments: t, version: n } = o, e = o.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), s = [];
4
- for (const m of t)
5
- s.push(i({
6
- commitment: m,
7
- to: e,
8
- version: n
9
- }));
10
- return s;
1
+ import { hexToBytes as b } from "./index.web131.js";
2
+ import { bytesToHex as y } from "./index.web129.js";
3
+ function h(t) {
4
+ const { kzg: m } = t, c = t.to ?? (typeof t.blobs[0] == "string" ? "hex" : "bytes"), s = typeof t.blobs[0] == "string" ? t.blobs.map((o) => b(o)) : t.blobs, i = typeof t.commitments[0] == "string" ? t.commitments.map((o) => b(o)) : t.commitments, n = [];
5
+ for (let o = 0; o < s.length; o++) {
6
+ const f = s[o], l = i[o];
7
+ n.push(Uint8Array.from(m.computeBlobKzgProof(f, l)));
8
+ }
9
+ return c === "bytes" ? n : n.map((o) => y(o));
11
10
  }
12
11
  export {
13
- r as commitmentsToVersionedHashes
12
+ h as blobsToProofs
14
13
  };
@@ -1,16 +1,14 @@
1
- import { blobsToCommitments as f } from "./index.web156.js";
2
- import { blobsToProofs as l } from "./index.web157.js";
3
- import { toBlobs as p } from "./index.web207.js";
4
- function k(t) {
5
- const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
6
- for (let o = 0; o < s.length; o++)
7
- c.push({
8
- blob: s[o],
9
- commitment: b[o],
10
- proof: r[o]
11
- });
12
- return c;
1
+ import { commitmentToVersionedHash as i } from "./index.web211.js";
2
+ function r(o) {
3
+ const { commitments: t, version: n } = o, e = o.to ?? (typeof t[0] == "string" ? "hex" : "bytes"), s = [];
4
+ for (const m of t)
5
+ s.push(i({
6
+ commitment: m,
7
+ to: e,
8
+ version: n
9
+ }));
10
+ return s;
13
11
  }
14
12
  export {
15
- k as toBlobSidecars
13
+ r as commitmentsToVersionedHashes
16
14
  };
@@ -1,21 +1,16 @@
1
- import { InvalidAddressError as s } from "./index.web116.js";
2
- import { InvalidStorageKeySizeError as l } from "./index.web149.js";
3
- import { isAddress as f } from "./index.web117.js";
4
- function a(r) {
5
- if (!r || r.length === 0)
6
- return [];
7
- const n = [];
8
- for (let o = 0; o < r.length; o++) {
9
- const { address: i, storageKeys: e } = r[o];
10
- for (let t = 0; t < e.length; t++)
11
- if (e[t].length - 2 !== 64)
12
- throw new l({ storageKey: e[t] });
13
- if (!f(i, { strict: !1 }))
14
- throw new s({ address: i });
15
- n.push([i, e]);
16
- }
17
- return n;
1
+ import { blobsToCommitments as f } from "./index.web157.js";
2
+ import { blobsToProofs as l } from "./index.web158.js";
3
+ import { toBlobs as p } from "./index.web210.js";
4
+ function k(t) {
5
+ const { data: i, kzg: n, to: m } = t, s = t.blobs ?? p({ data: i, to: m }), b = t.commitments ?? f({ blobs: s, kzg: n, to: m }), r = t.proofs ?? l({ blobs: s, commitments: b, kzg: n, to: m }), c = [];
6
+ for (let o = 0; o < s.length; o++)
7
+ c.push({
8
+ blob: s[o],
9
+ commitment: b[o],
10
+ proof: r[o]
11
+ });
12
+ return c;
18
13
  }
19
14
  export {
20
- a as serializeAccessList
15
+ k as toBlobSidecars
21
16
  };
@@ -1,8 +1,21 @@
1
- import { gweiUnits as i } from "./index.web162.js";
2
- import { formatUnits as o } from "./index.web163.js";
3
- function f(r, t = "wei") {
4
- return o(r, i[t]);
1
+ import { InvalidAddressError as s } from "./index.web116.js";
2
+ import { InvalidStorageKeySizeError as l } from "./index.web150.js";
3
+ import { isAddress as f } from "./index.web117.js";
4
+ function a(r) {
5
+ if (!r || r.length === 0)
6
+ return [];
7
+ const n = [];
8
+ for (let o = 0; o < r.length; o++) {
9
+ const { address: i, storageKeys: e } = r[o];
10
+ for (let t = 0; t < e.length; t++)
11
+ if (e[t].length - 2 !== 64)
12
+ throw new l({ storageKey: e[t] });
13
+ if (!f(i, { strict: !1 }))
14
+ throw new s({ address: i });
15
+ n.push([i, e]);
16
+ }
17
+ return n;
5
18
  }
6
19
  export {
7
- f as formatGwei
20
+ a as serializeAccessList
8
21
  };
@@ -1,7 +1,8 @@
1
- const e = {
2
- ether: -9,
3
- wei: 9
4
- };
1
+ import { gweiUnits as i } from "./index.web163.js";
2
+ import { formatUnits as o } from "./index.web164.js";
3
+ function f(r, t = "wei") {
4
+ return o(r, i[t]);
5
+ }
5
6
  export {
6
- e as gweiUnits
7
+ f as formatGwei
7
8
  };
@@ -1,13 +1,7 @@
1
- function a(r, n) {
2
- let t = r.toString();
3
- const i = t.startsWith("-");
4
- i && (t = t.slice(1)), t = t.padStart(n, "0");
5
- let [l, e] = [
6
- t.slice(0, t.length - n),
7
- t.slice(t.length - n)
8
- ];
9
- return e = e.replace(/(0+)$/, ""), `${i ? "-" : ""}${l || "0"}${e ? `.${e}` : ""}`;
10
- }
1
+ const e = {
2
+ ether: -9,
3
+ wei: 9
4
+ };
11
5
  export {
12
- a as formatUnits
6
+ e as gweiUnits
13
7
  };
@@ -1,7 +1,13 @@
1
- import { version as r } from "./index.web209.js";
2
- function e() {
3
- return r;
1
+ function a(r, n) {
2
+ let t = r.toString();
3
+ const i = t.startsWith("-");
4
+ i && (t = t.slice(1)), t = t.padStart(n, "0");
5
+ let [l, e] = [
6
+ t.slice(0, t.length - n),
7
+ t.slice(t.length - n)
8
+ ];
9
+ return e = e.replace(/(0+)$/, ""), `${i ? "-" : ""}${l || "0"}${e ? `.${e}` : ""}`;
4
10
  }
5
11
  export {
6
- e as getVersion
12
+ a as formatUnits
7
13
  };
@@ -1,106 +1,17 @@
1
- import { HashMD as D, SHA256_IV as b, Chi as g, Maj as p } from "./index.web166.js";
2
- import { createHasher as u, clean as C, rotr as i } from "./index.web167.js";
3
- const B = /* @__PURE__ */ Uint32Array.from([
4
- 1116352408,
5
- 1899447441,
6
- 3049323471,
7
- 3921009573,
8
- 961987163,
9
- 1508970993,
10
- 2453635748,
11
- 2870763221,
12
- 3624381080,
13
- 310598401,
14
- 607225278,
15
- 1426881987,
16
- 1925078388,
17
- 2162078206,
18
- 2614888103,
19
- 3248222580,
20
- 3835390401,
21
- 4022224774,
22
- 264347078,
23
- 604807628,
24
- 770255983,
25
- 1249150122,
26
- 1555081692,
27
- 1996064986,
28
- 2554220882,
29
- 2821834349,
30
- 2952996808,
31
- 3210313671,
32
- 3336571891,
33
- 3584528711,
34
- 113926993,
35
- 338241895,
36
- 666307205,
37
- 773529912,
38
- 1294757372,
39
- 1396182291,
40
- 1695183700,
41
- 1986661051,
42
- 2177026350,
43
- 2456956037,
44
- 2730485921,
45
- 2820302411,
46
- 3259730800,
47
- 3345764771,
48
- 3516065817,
49
- 3600352804,
50
- 4094571909,
51
- 275423344,
52
- 430227734,
53
- 506948616,
54
- 659060556,
55
- 883997877,
56
- 958139571,
57
- 1322822218,
58
- 1537002063,
59
- 1747873779,
60
- 1955562222,
61
- 2024104815,
62
- 2227730452,
63
- 2361852424,
64
- 2428436474,
65
- 2756734187,
66
- 3204031479,
67
- 3329325298
68
- ]), h = /* @__PURE__ */ new Uint32Array(64);
69
- class E extends D {
70
- constructor(o = 32) {
71
- super(64, o, 8, !1), this.A = b[0] | 0, this.B = b[1] | 0, this.C = b[2] | 0, this.D = b[3] | 0, this.E = b[4] | 0, this.F = b[5] | 0, this.G = b[6] | 0, this.H = b[7] | 0;
72
- }
73
- get() {
74
- const { A: o, B: r, C: t, D: s, E: a, F: f, G: c, H: e } = this;
75
- return [o, r, t, s, a, f, c, e];
76
- }
77
- // prettier-ignore
78
- set(o, r, t, s, a, f, c, e) {
79
- this.A = o | 0, this.B = r | 0, this.C = t | 0, this.D = s | 0, this.E = a | 0, this.F = f | 0, this.G = c | 0, this.H = e | 0;
80
- }
81
- process(o, r) {
82
- for (let x = 0; x < 16; x++, r += 4)
83
- h[x] = o.getUint32(r, !1);
84
- for (let x = 16; x < 64; x++) {
85
- const H = h[x - 15], d = h[x - 2], m = i(H, 7) ^ i(H, 18) ^ H >>> 3, l = i(d, 17) ^ i(d, 19) ^ d >>> 10;
86
- h[x] = l + h[x - 7] + m + h[x - 16] | 0;
87
- }
88
- let { A: t, B: s, C: a, D: f, E: c, F: e, G: n, H: A } = this;
89
- for (let x = 0; x < 64; x++) {
90
- const H = i(c, 6) ^ i(c, 11) ^ i(c, 25), d = A + H + g(c, e, n) + B[x] + h[x] | 0, l = (i(t, 2) ^ i(t, 13) ^ i(t, 22)) + p(t, s, a) | 0;
91
- A = n, n = e, e = c, c = f + d | 0, f = a, a = s, s = t, t = d + l | 0;
92
- }
93
- t = t + this.A | 0, s = s + this.B | 0, a = a + this.C | 0, f = f + this.D | 0, c = c + this.E | 0, e = e + this.F | 0, n = n + this.G | 0, A = A + this.H | 0, this.set(t, s, a, f, c, e, n, A);
94
- }
95
- roundClean() {
96
- C(h);
97
- }
98
- destroy() {
99
- this.set(0, 0, 0, 0, 0, 0, 0, 0), C(this.buffer);
100
- }
1
+ import "@coinbase/cdp-api-client";
2
+ import "./index.web2.js";
3
+ import "./index.web3.js";
4
+ import "jose";
5
+ import "viem";
6
+ import "./index.web84.js";
7
+ import { getCurrentUser as t } from "./index.web17.js";
8
+ import "./index.web74.js";
9
+ import "./index.web85.js";
10
+ import "@solana/web3.js";
11
+ import "bs58";
12
+ async function A() {
13
+ return (await t())?.evmAccountObjects?.map((r) => r.address) || [];
101
14
  }
102
- const y = /* @__PURE__ */ u(() => new E());
103
15
  export {
104
- E as SHA256,
105
- y as sha256
16
+ A as handleAccounts
106
17
  };