@coinbase/cdp-core 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 (334) hide show
  1. package/dist/esm/index.native10.js +15 -13
  2. package/dist/esm/index.native104.js +1 -1
  3. package/dist/esm/index.native106.js +4 -4
  4. package/dist/esm/index.native107.js +3 -3
  5. package/dist/esm/index.native108.js +31 -2
  6. package/dist/esm/index.native109.js +28 -65
  7. package/dist/esm/index.native110.js +2 -367
  8. package/dist/esm/index.native111.js +65 -28
  9. package/dist/esm/index.native112.js +364 -28
  10. package/dist/esm/index.native117.js +53 -11
  11. package/dist/esm/index.native118.js +10 -11
  12. package/dist/esm/index.native119.js +2 -55
  13. package/dist/esm/index.native120.js +45 -11
  14. package/dist/esm/index.native121.js +14 -2
  15. package/dist/esm/index.native122.js +12 -44
  16. package/dist/esm/index.native123.js +11 -13
  17. package/dist/esm/index.native124.js +2 -2
  18. package/dist/esm/index.native130.js +1 -1
  19. package/dist/esm/index.native149.js +1 -1
  20. package/dist/esm/index.native151.js +1 -1
  21. package/dist/esm/index.native154.js +2 -2
  22. package/dist/esm/index.native162.js +1 -1
  23. package/dist/esm/index.native163.js +1 -1
  24. package/dist/esm/index.native164.js +2 -2
  25. package/dist/esm/index.native168.js +19 -102
  26. package/dist/esm/index.native169.js +10 -79
  27. package/dist/esm/index.native170.js +20 -80
  28. package/dist/esm/index.native171.js +94 -14
  29. package/dist/esm/index.native172.js +20 -27
  30. package/dist/esm/index.native173.js +118 -8
  31. package/dist/esm/index.native174.js +103 -3
  32. package/dist/esm/index.native175.js +77 -26
  33. package/dist/esm/index.native176.js +79 -8
  34. package/dist/esm/index.native177.js +13 -7
  35. package/dist/esm/index.native178.js +19 -71
  36. package/dist/esm/index.native179.js +7 -27
  37. package/dist/esm/index.native180.js +3 -3
  38. package/dist/esm/index.native181.js +19 -6
  39. package/dist/esm/index.native182.js +8 -4
  40. package/dist/esm/index.native183.js +7 -13
  41. package/dist/esm/index.native184.js +78 -18
  42. package/dist/esm/index.native185.js +14 -47
  43. package/dist/esm/index.native186.js +3 -17
  44. package/dist/esm/index.native187.js +14 -23
  45. package/dist/esm/index.native188.js +4 -8
  46. package/dist/esm/index.native189.js +5 -33
  47. package/dist/esm/index.native190.js +19 -7
  48. package/dist/esm/index.native191.js +55 -15
  49. package/dist/esm/index.native192.js +17 -20
  50. package/dist/esm/index.native193.js +24 -10
  51. package/dist/esm/index.native194.js +9 -20
  52. package/dist/esm/index.native195.js +41 -93
  53. package/dist/esm/index.native196.js +8 -21
  54. package/dist/esm/index.native197.js +20 -117
  55. package/dist/esm/index.native198.js +8 -2
  56. package/dist/esm/index.native199.js +2 -39
  57. package/dist/esm/index.native200.js +378 -2
  58. package/dist/esm/index.native201.js +835 -69
  59. package/dist/esm/index.native202.js +37 -33
  60. package/dist/esm/index.native203.js +2 -21
  61. package/dist/esm/index.native204.js +69 -7
  62. package/dist/esm/index.native205.js +35 -2
  63. package/dist/esm/index.native206.js +17 -374
  64. package/dist/esm/index.native207.js +2 -836
  65. package/dist/esm/index.native213.js +6 -32
  66. package/dist/esm/index.native214.js +32 -6
  67. package/dist/esm/index.native215.js +17 -3
  68. package/dist/esm/index.native216.js +28 -18
  69. package/dist/esm/index.native217.js +6 -26
  70. package/dist/esm/index.native218.js +9 -6
  71. package/dist/esm/index.native219.js +13 -11
  72. package/dist/esm/index.native220.js +8 -11
  73. package/dist/esm/index.native221.js +14 -7
  74. package/dist/esm/index.native222.js +80 -16
  75. package/dist/esm/index.native223.js +3 -80
  76. package/dist/esm/index.native224.js +2 -2
  77. package/dist/esm/index.native225.js +2 -2
  78. package/dist/esm/index.native226.js +2 -2
  79. package/dist/esm/index.native227.js +1 -1
  80. package/dist/esm/index.native3.js +1 -1
  81. package/dist/esm/index.native88.js +2 -2
  82. package/dist/esm/index.native9.js +1 -1
  83. package/dist/esm/index.native92.js +2 -2
  84. package/dist/esm/index.web105.js +1 -1
  85. package/dist/esm/index.web107.js +4 -4
  86. package/dist/esm/index.web108.js +3 -3
  87. package/dist/esm/index.web109.js +2 -31
  88. package/dist/esm/index.web110.js +65 -28
  89. package/dist/esm/index.web111.js +367 -2
  90. package/dist/esm/index.web112.js +28 -65
  91. package/dist/esm/index.web113.js +28 -364
  92. package/dist/esm/index.web118.js +11 -53
  93. package/dist/esm/index.web119.js +11 -10
  94. package/dist/esm/index.web120.js +55 -2
  95. package/dist/esm/index.web121.js +11 -45
  96. package/dist/esm/index.web122.js +2 -14
  97. package/dist/esm/index.web123.js +44 -12
  98. package/dist/esm/index.web124.js +13 -11
  99. package/dist/esm/index.web125.js +2 -2
  100. package/dist/esm/index.web129.js +1 -1
  101. package/dist/esm/index.web148.js +1 -1
  102. package/dist/esm/index.web150.js +1 -1
  103. package/dist/esm/index.web153.js +2 -2
  104. package/dist/esm/index.web161.js +1 -1
  105. package/dist/esm/index.web162.js +1 -1
  106. package/dist/esm/index.web163.js +2 -2
  107. package/dist/esm/index.web167.js +102 -19
  108. package/dist/esm/index.web168.js +79 -10
  109. package/dist/esm/index.web169.js +80 -20
  110. package/dist/esm/index.web170.js +15 -94
  111. package/dist/esm/index.web171.js +28 -20
  112. package/dist/esm/index.web172.js +8 -118
  113. package/dist/esm/index.web173.js +3 -103
  114. package/dist/esm/index.web174.js +27 -77
  115. package/dist/esm/index.web175.js +8 -79
  116. package/dist/esm/index.web176.js +7 -14
  117. package/dist/esm/index.web177.js +70 -18
  118. package/dist/esm/index.web178.js +28 -7
  119. package/dist/esm/index.web179.js +3 -3
  120. package/dist/esm/index.web180.js +6 -19
  121. package/dist/esm/index.web181.js +4 -8
  122. package/dist/esm/index.web182.js +14 -7
  123. package/dist/esm/index.web183.js +18 -79
  124. package/dist/esm/index.web184.js +48 -15
  125. package/dist/esm/index.web185.js +17 -3
  126. package/dist/esm/index.web186.js +23 -15
  127. package/dist/esm/index.web187.js +8 -4
  128. package/dist/esm/index.web188.js +33 -5
  129. package/dist/esm/index.web189.js +7 -19
  130. package/dist/esm/index.web190.js +16 -57
  131. package/dist/esm/index.web191.js +20 -17
  132. package/dist/esm/index.web192.js +10 -24
  133. package/dist/esm/index.web193.js +20 -9
  134. package/dist/esm/index.web194.js +93 -42
  135. package/dist/esm/index.web195.js +21 -8
  136. package/dist/esm/index.web196.js +117 -20
  137. package/dist/esm/index.web197.js +2 -39
  138. package/dist/esm/index.web198.js +8 -2
  139. package/dist/esm/index.web199.js +2 -70
  140. package/dist/esm/index.web200.js +373 -30
  141. package/dist/esm/index.web201.js +835 -20
  142. package/dist/esm/index.web202.js +38 -7
  143. package/dist/esm/index.web204.js +67 -375
  144. package/dist/esm/index.web205.js +34 -835
  145. package/dist/esm/index.web206.js +21 -2
  146. package/dist/esm/index.web212.js +6 -32
  147. package/dist/esm/index.web213.js +32 -6
  148. package/dist/esm/index.web214.js +3 -17
  149. package/dist/esm/index.web215.js +2 -28
  150. package/dist/esm/index.web216.js +2 -8
  151. package/dist/esm/index.web217.js +2 -11
  152. package/dist/esm/index.web218.js +16 -11
  153. package/dist/esm/index.web219.js +28 -10
  154. package/dist/esm/index.web220.js +8 -17
  155. package/dist/esm/index.web221.js +9 -79
  156. package/dist/esm/index.web222.js +12 -3
  157. package/dist/esm/index.web223.js +10 -2
  158. package/dist/esm/index.web224.js +17 -2
  159. package/dist/esm/index.web225.js +81 -2
  160. package/dist/esm/index.web226.js +1 -1
  161. package/dist/esm/index.web3.js +1 -1
  162. package/dist/esm/index.web8.js +1 -1
  163. package/dist/esm/index.web9.js +15 -13
  164. package/dist/esm/index.web90.js +2 -2
  165. package/dist/esm/index.web94.js +2 -2
  166. package/dist/native/index.native10.js +15 -13
  167. package/dist/native/index.native104.js +1 -1
  168. package/dist/native/index.native106.js +4 -4
  169. package/dist/native/index.native107.js +3 -3
  170. package/dist/native/index.native108.js +31 -2
  171. package/dist/native/index.native109.js +28 -65
  172. package/dist/native/index.native110.js +2 -367
  173. package/dist/native/index.native111.js +65 -28
  174. package/dist/native/index.native112.js +364 -28
  175. package/dist/native/index.native117.js +53 -11
  176. package/dist/native/index.native118.js +10 -11
  177. package/dist/native/index.native119.js +2 -55
  178. package/dist/native/index.native120.js +45 -11
  179. package/dist/native/index.native121.js +14 -2
  180. package/dist/native/index.native122.js +12 -44
  181. package/dist/native/index.native123.js +11 -13
  182. package/dist/native/index.native124.js +2 -2
  183. package/dist/native/index.native130.js +1 -1
  184. package/dist/native/index.native149.js +1 -1
  185. package/dist/native/index.native151.js +1 -1
  186. package/dist/native/index.native154.js +2 -2
  187. package/dist/native/index.native162.js +1 -1
  188. package/dist/native/index.native163.js +1 -1
  189. package/dist/native/index.native164.js +2 -2
  190. package/dist/native/index.native168.js +19 -102
  191. package/dist/native/index.native169.js +10 -79
  192. package/dist/native/index.native170.js +20 -80
  193. package/dist/native/index.native171.js +94 -14
  194. package/dist/native/index.native172.js +20 -27
  195. package/dist/native/index.native173.js +118 -8
  196. package/dist/native/index.native174.js +103 -3
  197. package/dist/native/index.native175.js +77 -26
  198. package/dist/native/index.native176.js +79 -8
  199. package/dist/native/index.native177.js +13 -7
  200. package/dist/native/index.native178.js +19 -71
  201. package/dist/native/index.native179.js +7 -27
  202. package/dist/native/index.native180.js +3 -3
  203. package/dist/native/index.native181.js +19 -6
  204. package/dist/native/index.native182.js +8 -4
  205. package/dist/native/index.native183.js +7 -13
  206. package/dist/native/index.native184.js +78 -18
  207. package/dist/native/index.native185.js +14 -47
  208. package/dist/native/index.native186.js +3 -17
  209. package/dist/native/index.native187.js +14 -23
  210. package/dist/native/index.native188.js +4 -8
  211. package/dist/native/index.native189.js +5 -33
  212. package/dist/native/index.native190.js +19 -7
  213. package/dist/native/index.native191.js +55 -15
  214. package/dist/native/index.native192.js +17 -20
  215. package/dist/native/index.native193.js +24 -10
  216. package/dist/native/index.native194.js +9 -20
  217. package/dist/native/index.native195.js +41 -93
  218. package/dist/native/index.native196.js +8 -21
  219. package/dist/native/index.native197.js +20 -117
  220. package/dist/native/index.native198.js +8 -2
  221. package/dist/native/index.native199.js +2 -39
  222. package/dist/native/index.native200.js +378 -2
  223. package/dist/native/index.native201.js +835 -69
  224. package/dist/native/index.native202.js +37 -33
  225. package/dist/native/index.native203.js +2 -21
  226. package/dist/native/index.native204.js +69 -7
  227. package/dist/native/index.native205.js +35 -2
  228. package/dist/native/index.native206.js +17 -374
  229. package/dist/native/index.native207.js +2 -836
  230. package/dist/native/index.native213.js +6 -32
  231. package/dist/native/index.native214.js +32 -6
  232. package/dist/native/index.native215.js +17 -3
  233. package/dist/native/index.native216.js +28 -18
  234. package/dist/native/index.native217.js +6 -26
  235. package/dist/native/index.native218.js +9 -6
  236. package/dist/native/index.native219.js +13 -11
  237. package/dist/native/index.native220.js +8 -11
  238. package/dist/native/index.native221.js +14 -7
  239. package/dist/native/index.native222.js +80 -16
  240. package/dist/native/index.native223.js +3 -80
  241. package/dist/native/index.native224.js +2 -2
  242. package/dist/native/index.native225.js +2 -2
  243. package/dist/native/index.native226.js +2 -2
  244. package/dist/native/index.native227.js +1 -1
  245. package/dist/native/index.native3.js +1 -1
  246. package/dist/native/index.native88.js +2 -2
  247. package/dist/native/index.native9.js +1 -1
  248. package/dist/native/index.native92.js +2 -2
  249. package/dist/native-types/version.d.ts +1 -1
  250. package/dist/types/version.d.ts +1 -1
  251. package/dist/web/index.web105.js +1 -1
  252. package/dist/web/index.web107.js +4 -4
  253. package/dist/web/index.web108.js +3 -3
  254. package/dist/web/index.web109.js +2 -31
  255. package/dist/web/index.web110.js +65 -28
  256. package/dist/web/index.web111.js +367 -2
  257. package/dist/web/index.web112.js +28 -65
  258. package/dist/web/index.web113.js +28 -364
  259. package/dist/web/index.web118.js +11 -53
  260. package/dist/web/index.web119.js +11 -10
  261. package/dist/web/index.web120.js +55 -2
  262. package/dist/web/index.web121.js +11 -45
  263. package/dist/web/index.web122.js +2 -14
  264. package/dist/web/index.web123.js +44 -12
  265. package/dist/web/index.web124.js +13 -11
  266. package/dist/web/index.web125.js +2 -2
  267. package/dist/web/index.web129.js +1 -1
  268. package/dist/web/index.web148.js +1 -1
  269. package/dist/web/index.web150.js +1 -1
  270. package/dist/web/index.web153.js +2 -2
  271. package/dist/web/index.web161.js +1 -1
  272. package/dist/web/index.web162.js +1 -1
  273. package/dist/web/index.web163.js +2 -2
  274. package/dist/web/index.web167.js +102 -19
  275. package/dist/web/index.web168.js +79 -10
  276. package/dist/web/index.web169.js +80 -20
  277. package/dist/web/index.web170.js +15 -94
  278. package/dist/web/index.web171.js +28 -20
  279. package/dist/web/index.web172.js +8 -118
  280. package/dist/web/index.web173.js +3 -103
  281. package/dist/web/index.web174.js +27 -77
  282. package/dist/web/index.web175.js +8 -79
  283. package/dist/web/index.web176.js +7 -14
  284. package/dist/web/index.web177.js +70 -18
  285. package/dist/web/index.web178.js +28 -7
  286. package/dist/web/index.web179.js +3 -3
  287. package/dist/web/index.web180.js +6 -19
  288. package/dist/web/index.web181.js +4 -8
  289. package/dist/web/index.web182.js +14 -7
  290. package/dist/web/index.web183.js +18 -79
  291. package/dist/web/index.web184.js +48 -15
  292. package/dist/web/index.web185.js +17 -3
  293. package/dist/web/index.web186.js +23 -15
  294. package/dist/web/index.web187.js +8 -4
  295. package/dist/web/index.web188.js +33 -5
  296. package/dist/web/index.web189.js +7 -19
  297. package/dist/web/index.web190.js +16 -57
  298. package/dist/web/index.web191.js +20 -17
  299. package/dist/web/index.web192.js +10 -24
  300. package/dist/web/index.web193.js +20 -9
  301. package/dist/web/index.web194.js +93 -42
  302. package/dist/web/index.web195.js +21 -8
  303. package/dist/web/index.web196.js +117 -20
  304. package/dist/web/index.web197.js +2 -39
  305. package/dist/web/index.web198.js +8 -2
  306. package/dist/web/index.web199.js +2 -70
  307. package/dist/web/index.web200.js +373 -30
  308. package/dist/web/index.web201.js +835 -20
  309. package/dist/web/index.web202.js +38 -7
  310. package/dist/web/index.web204.js +67 -375
  311. package/dist/web/index.web205.js +34 -835
  312. package/dist/web/index.web206.js +21 -2
  313. package/dist/web/index.web212.js +6 -32
  314. package/dist/web/index.web213.js +32 -6
  315. package/dist/web/index.web214.js +3 -17
  316. package/dist/web/index.web215.js +2 -28
  317. package/dist/web/index.web216.js +2 -8
  318. package/dist/web/index.web217.js +2 -11
  319. package/dist/web/index.web218.js +16 -11
  320. package/dist/web/index.web219.js +28 -10
  321. package/dist/web/index.web220.js +8 -17
  322. package/dist/web/index.web221.js +9 -79
  323. package/dist/web/index.web222.js +12 -3
  324. package/dist/web/index.web223.js +10 -2
  325. package/dist/web/index.web224.js +17 -2
  326. package/dist/web/index.web225.js +81 -2
  327. package/dist/web/index.web226.js +1 -1
  328. package/dist/web/index.web3.js +1 -1
  329. package/dist/web/index.web8.js +1 -1
  330. package/dist/web/index.web9.js +15 -13
  331. package/dist/web/index.web90.js +2 -2
  332. package/dist/web/index.web94.js +2 -2
  333. package/dist/web-types/version.d.ts +1 -1
  334. package/package.json +2 -2
@@ -1,4 +1,23 @@
1
- const o = "0.1.1";
1
+ /*!
2
+ * Determine if an object is a Buffer
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */
7
+ var f, e;
8
+ function t() {
9
+ if (e) return f;
10
+ e = 1, f = function(r) {
11
+ return r != null && (u(r) || n(r) || !!r._isBuffer);
12
+ };
13
+ function u(r) {
14
+ return !!r.constructor && typeof r.constructor.isBuffer == "function" && r.constructor.isBuffer(r);
15
+ }
16
+ function n(r) {
17
+ return typeof r.readFloatLE == "function" && typeof r.slice == "function" && u(r.slice(0, 0));
18
+ }
19
+ return f;
20
+ }
2
21
  export {
3
- o as version
22
+ t as __require
4
23
  };
@@ -1,35 +1,9 @@
1
- import { maxBytesPerTransaction as y, bytesPerBlob as a, fieldElementsPerBlob as f, bytesPerFieldElement as p } from "./index.web227.js";
2
- import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index.web156.js";
3
- import { createCursor as B } from "./index.web145.js";
4
- import { size as u } from "./index.web140.js";
5
- import { hexToBytes as x } from "./index.web133.js";
6
- import { bytesToHex as d } from "./index.web131.js";
7
- function S(e) {
8
- const m = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), i = typeof e.data == "string" ? x(e.data) : e.data, o = u(i);
9
- if (!o)
10
- throw new c();
11
- if (o > y)
12
- throw new h({
13
- maxSize: y,
14
- size: o
15
- });
16
- const s = [];
17
- let n = !0, r = 0;
18
- for (; n; ) {
19
- const t = B(new Uint8Array(a));
20
- let l = 0;
21
- for (; l < f; ) {
22
- const b = i.slice(r, r + (p - 1));
23
- if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
24
- t.pushByte(128), n = !1;
25
- break;
26
- }
27
- l++, r += 31;
28
- }
29
- s.push(t);
30
- }
31
- return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
1
+ import { bytesToHex as i } from "./index.web131.js";
2
+ import { sha256 as m } from "./index.web149.js";
3
+ function f(t) {
4
+ const { commitment: e, version: s = 1 } = t, n = t.to ?? (typeof e == "string" ? "hex" : "bytes"), o = m(e);
5
+ return o.set([s], 0), n === "bytes" ? o : i(o);
32
6
  }
33
7
  export {
34
- S as toBlobs
8
+ f as commitmentToVersionedHash
35
9
  };
@@ -1,9 +1,35 @@
1
- import { bytesToHex as i } from "./index.web131.js";
2
- import { sha256 as m } from "./index.web149.js";
3
- function f(t) {
4
- const { commitment: e, version: s = 1 } = t, n = t.to ?? (typeof e == "string" ? "hex" : "bytes"), o = m(e);
5
- return o.set([s], 0), n === "bytes" ? o : i(o);
1
+ import { maxBytesPerTransaction as y, bytesPerBlob as a, fieldElementsPerBlob as f, bytesPerFieldElement as p } from "./index.web227.js";
2
+ import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index.web156.js";
3
+ import { createCursor as B } from "./index.web145.js";
4
+ import { size as u } from "./index.web140.js";
5
+ import { hexToBytes as x } from "./index.web133.js";
6
+ import { bytesToHex as d } from "./index.web131.js";
7
+ function S(e) {
8
+ const m = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), i = typeof e.data == "string" ? x(e.data) : e.data, o = u(i);
9
+ if (!o)
10
+ throw new c();
11
+ if (o > y)
12
+ throw new h({
13
+ maxSize: y,
14
+ size: o
15
+ });
16
+ const s = [];
17
+ let n = !0, r = 0;
18
+ for (; n; ) {
19
+ const t = B(new Uint8Array(a));
20
+ let l = 0;
21
+ for (; l < f; ) {
22
+ const b = i.slice(r, r + (p - 1));
23
+ if (t.pushByte(0), t.pushBytes(b), b.length < 31) {
24
+ t.pushByte(128), n = !1;
25
+ break;
26
+ }
27
+ l++, r += 31;
28
+ }
29
+ s.push(t);
30
+ }
31
+ return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
6
32
  }
7
33
  export {
8
- f as commitmentToVersionedHash
34
+ S as toBlobs
9
35
  };
@@ -1,20 +1,6 @@
1
- function o(t) {
2
- if (Uint8Array.prototype.toBase64)
3
- return t.toBase64();
4
- const e = 32768, n = [];
5
- for (let r = 0; r < t.length; r += e)
6
- n.push(String.fromCharCode.apply(null, t.subarray(r, r + e)));
7
- return btoa(n.join(""));
8
- }
9
- function a(t) {
10
- if (Uint8Array.fromBase64)
11
- return Uint8Array.fromBase64(t);
12
- const e = atob(t), n = new Uint8Array(e.length);
13
- for (let r = 0; r < e.length; r++)
14
- n[r] = e.charCodeAt(r);
15
- return n;
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
16
3
  }
17
4
  export {
18
- a as decodeBase64,
19
- o as encodeBase64
5
+ e as getDefaultExportFromCjs
20
6
  };
@@ -1,30 +1,4 @@
1
- import { JOSENotSupported as r } from "./index.web106.js";
2
- const S = (e, s) => {
3
- const a = `SHA-${e.slice(-3)}`;
4
- switch (e) {
5
- case "HS256":
6
- case "HS384":
7
- case "HS512":
8
- return { hash: a, name: "HMAC" };
9
- case "PS256":
10
- case "PS384":
11
- case "PS512":
12
- return { hash: a, name: "RSA-PSS", saltLength: parseInt(e.slice(-3), 10) >> 3 };
13
- case "RS256":
14
- case "RS384":
15
- case "RS512":
16
- return { hash: a, name: "RSASSA-PKCS1-v1_5" };
17
- case "ES256":
18
- case "ES384":
19
- case "ES512":
20
- return { hash: a, name: "ECDSA", namedCurve: s.namedCurve };
21
- case "Ed25519":
22
- case "EdDSA":
23
- return { name: "Ed25519" };
24
- default:
25
- throw new r(`alg ${e} is not supported either by JOSE or your javascript runtime`);
26
- }
27
- };
1
+ var r = {};
28
2
  export {
29
- S as default
3
+ r as __exports
30
4
  };
@@ -1,10 +1,4 @@
1
- const o = (t, r) => {
2
- if (t.startsWith("RS") || t.startsWith("PS")) {
3
- const { modulusLength: e } = r.algorithm;
4
- if (typeof e != "number" || e < 2048)
5
- throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`);
6
- }
7
- };
1
+ var e = { exports: {} };
8
2
  export {
9
- o as default
3
+ e as __module
10
4
  };
@@ -1,13 +1,4 @@
1
- import { checkSigCryptoKey as i } from "./index.web228.js";
2
- import o from "./index.web218.js";
3
- const s = async (t, r, e) => {
4
- if (r instanceof Uint8Array) {
5
- if (!t.startsWith("HS"))
6
- throw new TypeError(o(r, "CryptoKey", "KeyObject", "JSON Web Key"));
7
- return crypto.subtle.importKey("raw", r, { hash: `SHA-${t.slice(-3)}`, name: "HMAC" }, !1, [e]);
8
- }
9
- return i(r, t, e), r;
10
- };
1
+ var r = { exports: {} };
11
2
  export {
12
- s as default
3
+ r as __module
13
4
  };
@@ -1,15 +1,20 @@
1
- function i(n, e, ...o) {
2
- if (o = o.filter(Boolean), o.length > 2) {
3
- const f = o.pop();
4
- n += `one of type ${o.join(", ")}, or ${f}.`;
5
- } else o.length === 2 ? n += `one of type ${o[0]} or ${o[1]}.` : n += `of type ${o[0]}.`;
6
- return e == null ? n += ` Received ${e}` : typeof e == "function" && e.name ? n += ` Received function ${e.name}` : typeof e == "object" && e != null && e.constructor?.name && (n += ` Received an instance of ${e.constructor.name}`), n;
1
+ function o(t) {
2
+ if (Uint8Array.prototype.toBase64)
3
+ return t.toBase64();
4
+ const e = 32768, n = [];
5
+ for (let r = 0; r < t.length; r += e)
6
+ n.push(String.fromCharCode.apply(null, t.subarray(r, r + e)));
7
+ return btoa(n.join(""));
7
8
  }
8
- const r = (n, ...e) => i("Key must be ", n, ...e);
9
- function t(n, e, ...o) {
10
- return i(`Key for the ${n} algorithm must be `, e, ...o);
9
+ function a(t) {
10
+ if (Uint8Array.fromBase64)
11
+ return Uint8Array.fromBase64(t);
12
+ const e = atob(t), n = new Uint8Array(e.length);
13
+ for (let r = 0; r < e.length; r++)
14
+ n[r] = e.charCodeAt(r);
15
+ return n;
11
16
  }
12
17
  export {
13
- r as default,
14
- t as withAlg
18
+ a as decodeBase64,
19
+ o as encodeBase64
15
20
  };
@@ -1,12 +1,30 @@
1
- function e(t) {
2
- return t?.[Symbol.toStringTag] === "CryptoKey";
3
- }
4
- function r(t) {
5
- return t?.[Symbol.toStringTag] === "KeyObject";
6
- }
7
- const n = (t) => e(t) || r(t);
1
+ import { JOSENotSupported as r } from "./index.web106.js";
2
+ const S = (e, s) => {
3
+ const a = `SHA-${e.slice(-3)}`;
4
+ switch (e) {
5
+ case "HS256":
6
+ case "HS384":
7
+ case "HS512":
8
+ return { hash: a, name: "HMAC" };
9
+ case "PS256":
10
+ case "PS384":
11
+ case "PS512":
12
+ return { hash: a, name: "RSA-PSS", saltLength: parseInt(e.slice(-3), 10) >> 3 };
13
+ case "RS256":
14
+ case "RS384":
15
+ case "RS512":
16
+ return { hash: a, name: "RSASSA-PKCS1-v1_5" };
17
+ case "ES256":
18
+ case "ES384":
19
+ case "ES512":
20
+ return { hash: a, name: "ECDSA", namedCurve: s.namedCurve };
21
+ case "Ed25519":
22
+ case "EdDSA":
23
+ return { name: "Ed25519" };
24
+ default:
25
+ throw new r(`alg ${e} is not supported either by JOSE or your javascript runtime`);
26
+ }
27
+ };
8
28
  export {
9
- n as default,
10
- e as isCryptoKey,
11
- r as isKeyObject
29
+ S as default
12
30
  };
@@ -1,19 +1,10 @@
1
- import n from "./index.web122.js";
2
- function r(t) {
3
- return n(t) && typeof t.kty == "string";
4
- }
5
- function o(t) {
6
- return t.kty !== "oct" && typeof t.d == "string";
7
- }
8
- function e(t) {
9
- return t.kty !== "oct" && typeof t.d > "u";
10
- }
11
- function c(t) {
12
- return t.kty === "oct" && typeof t.k == "string";
13
- }
1
+ const o = (t, r) => {
2
+ if (t.startsWith("RS") || t.startsWith("PS")) {
3
+ const { modulusLength: e } = r.algorithm;
4
+ if (typeof e != "number" || e < 2048)
5
+ throw new TypeError(`${t} requires key modulusLength to be 2048 bits or larger`);
6
+ }
7
+ };
14
8
  export {
15
- r as isJWK,
16
- o as isPrivateJWK,
17
- e as isPublicJWK,
18
- c as isSecretJWK
9
+ o as default
19
10
  };
@@ -1,83 +1,13 @@
1
- import { JOSENotSupported as s } from "./index.web106.js";
2
- function n(e) {
3
- let a, r;
4
- switch (e.kty) {
5
- case "RSA": {
6
- switch (e.alg) {
7
- case "PS256":
8
- case "PS384":
9
- case "PS512":
10
- a = { name: "RSA-PSS", hash: `SHA-${e.alg.slice(-3)}` }, r = e.d ? ["sign"] : ["verify"];
11
- break;
12
- case "RS256":
13
- case "RS384":
14
- case "RS512":
15
- a = { name: "RSASSA-PKCS1-v1_5", hash: `SHA-${e.alg.slice(-3)}` }, r = e.d ? ["sign"] : ["verify"];
16
- break;
17
- case "RSA-OAEP":
18
- case "RSA-OAEP-256":
19
- case "RSA-OAEP-384":
20
- case "RSA-OAEP-512":
21
- a = {
22
- name: "RSA-OAEP",
23
- hash: `SHA-${parseInt(e.alg.slice(-3), 10) || 1}`
24
- }, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
25
- break;
26
- default:
27
- throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
28
- }
29
- break;
30
- }
31
- case "EC": {
32
- switch (e.alg) {
33
- case "ES256":
34
- a = { name: "ECDSA", namedCurve: "P-256" }, r = e.d ? ["sign"] : ["verify"];
35
- break;
36
- case "ES384":
37
- a = { name: "ECDSA", namedCurve: "P-384" }, r = e.d ? ["sign"] : ["verify"];
38
- break;
39
- case "ES512":
40
- a = { name: "ECDSA", namedCurve: "P-521" }, r = e.d ? ["sign"] : ["verify"];
41
- break;
42
- case "ECDH-ES":
43
- case "ECDH-ES+A128KW":
44
- case "ECDH-ES+A192KW":
45
- case "ECDH-ES+A256KW":
46
- a = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
47
- break;
48
- default:
49
- throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
50
- }
51
- break;
52
- }
53
- case "OKP": {
54
- switch (e.alg) {
55
- case "Ed25519":
56
- case "EdDSA":
57
- a = { name: "Ed25519" }, r = e.d ? ["sign"] : ["verify"];
58
- break;
59
- case "ECDH-ES":
60
- case "ECDH-ES+A128KW":
61
- case "ECDH-ES+A192KW":
62
- case "ECDH-ES+A256KW":
63
- a = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
64
- break;
65
- default:
66
- throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
67
- }
68
- break;
69
- }
70
- default:
71
- throw new s('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
1
+ import { checkSigCryptoKey as i } from "./index.web228.js";
2
+ import o from "./index.web222.js";
3
+ const s = async (t, r, e) => {
4
+ if (r instanceof Uint8Array) {
5
+ if (!t.startsWith("HS"))
6
+ throw new TypeError(o(r, "CryptoKey", "KeyObject", "JSON Web Key"));
7
+ return crypto.subtle.importKey("raw", r, { hash: `SHA-${t.slice(-3)}`, name: "HMAC" }, !1, [e]);
72
8
  }
73
- return { algorithm: a, keyUsages: r };
74
- }
75
- const i = async (e) => {
76
- if (!e.alg)
77
- throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
78
- const { algorithm: a, keyUsages: r } = n(e), t = { ...e };
79
- return delete t.alg, delete t.use, crypto.subtle.importKey("jwk", t, a, e.ext ?? !e.d, e.key_ops ?? r);
9
+ return i(r, t, e), r;
80
10
  };
81
11
  export {
82
- i as default
12
+ s as default
83
13
  };
@@ -1,6 +1,15 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ function i(n, e, ...o) {
2
+ if (o = o.filter(Boolean), o.length > 2) {
3
+ const f = o.pop();
4
+ n += `one of type ${o.join(", ")}, or ${f}.`;
5
+ } else o.length === 2 ? n += `one of type ${o[0]} or ${o[1]}.` : n += `of type ${o[0]}.`;
6
+ return e == null ? n += ` Received ${e}` : typeof e == "function" && e.name ? n += ` Received function ${e.name}` : typeof e == "object" && e != null && e.constructor?.name && (n += ` Received an instance of ${e.constructor.name}`), n;
7
+ }
8
+ const r = (n, ...e) => i("Key must be ", n, ...e);
9
+ function t(n, e, ...o) {
10
+ return i(`Key for the ${n} algorithm must be `, e, ...o);
3
11
  }
4
12
  export {
5
- e as getDefaultExportFromCjs
13
+ r as default,
14
+ t as withAlg
6
15
  };
@@ -1,4 +1,12 @@
1
- var r = { exports: {} };
1
+ function e(t) {
2
+ return t?.[Symbol.toStringTag] === "CryptoKey";
3
+ }
4
+ function r(t) {
5
+ return t?.[Symbol.toStringTag] === "KeyObject";
6
+ }
7
+ const n = (t) => e(t) || r(t);
2
8
  export {
3
- r as __module
9
+ n as default,
10
+ e as isCryptoKey,
11
+ r as isKeyObject
4
12
  };
@@ -1,4 +1,19 @@
1
- var r = {};
1
+ import n from "./index.web124.js";
2
+ function r(t) {
3
+ return n(t) && typeof t.kty == "string";
4
+ }
5
+ function o(t) {
6
+ return t.kty !== "oct" && typeof t.d == "string";
7
+ }
8
+ function e(t) {
9
+ return t.kty !== "oct" && typeof t.d > "u";
10
+ }
11
+ function c(t) {
12
+ return t.kty === "oct" && typeof t.k == "string";
13
+ }
2
14
  export {
3
- r as __exports
15
+ r as isJWK,
16
+ o as isPrivateJWK,
17
+ e as isPublicJWK,
18
+ c as isSecretJWK
4
19
  };
@@ -1,4 +1,83 @@
1
- var e = { exports: {} };
1
+ import { JOSENotSupported as s } from "./index.web106.js";
2
+ function n(e) {
3
+ let a, r;
4
+ switch (e.kty) {
5
+ case "RSA": {
6
+ switch (e.alg) {
7
+ case "PS256":
8
+ case "PS384":
9
+ case "PS512":
10
+ a = { name: "RSA-PSS", hash: `SHA-${e.alg.slice(-3)}` }, r = e.d ? ["sign"] : ["verify"];
11
+ break;
12
+ case "RS256":
13
+ case "RS384":
14
+ case "RS512":
15
+ a = { name: "RSASSA-PKCS1-v1_5", hash: `SHA-${e.alg.slice(-3)}` }, r = e.d ? ["sign"] : ["verify"];
16
+ break;
17
+ case "RSA-OAEP":
18
+ case "RSA-OAEP-256":
19
+ case "RSA-OAEP-384":
20
+ case "RSA-OAEP-512":
21
+ a = {
22
+ name: "RSA-OAEP",
23
+ hash: `SHA-${parseInt(e.alg.slice(-3), 10) || 1}`
24
+ }, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
25
+ break;
26
+ default:
27
+ throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
28
+ }
29
+ break;
30
+ }
31
+ case "EC": {
32
+ switch (e.alg) {
33
+ case "ES256":
34
+ a = { name: "ECDSA", namedCurve: "P-256" }, r = e.d ? ["sign"] : ["verify"];
35
+ break;
36
+ case "ES384":
37
+ a = { name: "ECDSA", namedCurve: "P-384" }, r = e.d ? ["sign"] : ["verify"];
38
+ break;
39
+ case "ES512":
40
+ a = { name: "ECDSA", namedCurve: "P-521" }, r = e.d ? ["sign"] : ["verify"];
41
+ break;
42
+ case "ECDH-ES":
43
+ case "ECDH-ES+A128KW":
44
+ case "ECDH-ES+A192KW":
45
+ case "ECDH-ES+A256KW":
46
+ a = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
47
+ break;
48
+ default:
49
+ throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
50
+ }
51
+ break;
52
+ }
53
+ case "OKP": {
54
+ switch (e.alg) {
55
+ case "Ed25519":
56
+ case "EdDSA":
57
+ a = { name: "Ed25519" }, r = e.d ? ["sign"] : ["verify"];
58
+ break;
59
+ case "ECDH-ES":
60
+ case "ECDH-ES+A128KW":
61
+ case "ECDH-ES+A192KW":
62
+ case "ECDH-ES+A256KW":
63
+ a = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
64
+ break;
65
+ default:
66
+ throw new s('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
67
+ }
68
+ break;
69
+ }
70
+ default:
71
+ throw new s('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
72
+ }
73
+ return { algorithm: a, keyUsages: r };
74
+ }
75
+ const i = async (e) => {
76
+ if (!e.alg)
77
+ throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
78
+ const { algorithm: a, keyUsages: r } = n(e), t = { ...e };
79
+ return delete t.alg, delete t.use, crypto.subtle.importKey("jwk", t, a, e.ext ?? !e.d, e.key_ops ?? r);
80
+ };
2
81
  export {
3
- e as __module
82
+ i as default
4
83
  };
@@ -1,4 +1,4 @@
1
- import { BaseError as f } from "./index.web112.js";
1
+ import { BaseError as f } from "./index.web110.js";
2
2
  import { pad as g } from "./index.web229.js";
3
3
  function m(t, i = {}) {
4
4
  const { signed: r, size: e } = i, o = BigInt(t);
@@ -1,2 +1,2 @@
1
- import { __require as r } from "./index.web202.js";
1
+ import { __require as r } from "./index.web198.js";
2
2
  r();
@@ -1,4 +1,4 @@
1
- const o = "0.0.90";
1
+ const o = "0.0.91";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -1,14 +1,14 @@
1
1
  import { configureCdpApiClient as p, setAuthManager as m, getMfaConfig as h, APIError as f, getProjectConfig as I } from "@coinbase/cdp-api-client";
2
2
  import { Analytics as a } from "./index.web2.js";
3
3
  import "./index.web3.js";
4
- import { createAuthManager as A } from "./index.web95.js";
5
- import { OAuthManager as C } from "./index.web96.js";
6
- import { MockAuthManager as j } from "./index.web97.js";
7
- import { MockOAuthManager as k } from "./index.web98.js";
4
+ import { createAuthManager as k } from "./index.web95.js";
5
+ import { OAuthManager as A } from "./index.web96.js";
6
+ import { MockAuthManager as C } from "./index.web97.js";
7
+ import { MockOAuthManager as j } from "./index.web98.js";
8
8
  import { getPlatformServices as M } from "./index.web4.js";
9
- import { getConfig as r, setCoreAuthManager as d, setCoreOAuthManager as l, setMfaConfig as g, setProjectConfig as u, getCoreAuthManager as w, setConfig as S } from "./index.web57.js";
9
+ import { getConfig as r, setCoreAuthManager as d, setCoreOAuthManager as l, setMfaConfig as g, setProjectConfig as u, getCoreAuthManager as S, setConfig as w } from "./index.web57.js";
10
10
  import "viem";
11
- const F = async (t) => {
11
+ const z = async (t) => {
12
12
  if (!t.projectId)
13
13
  throw new Error("Project ID is required");
14
14
  t.disableAnalytics === void 0 || t.disableAnalytics === !1 ? (a.developerIdentifier = t.projectId, a.isUsingMocks = t.useMock === !0, a.isProduction = !t.basePath || t.basePath === "https://api.cdp.coinbase.com/platform") : a.enabled = !1;
@@ -18,8 +18,8 @@ const F = async (t) => {
18
18
  } catch {
19
19
  n = !0;
20
20
  }
21
- if (S(t), r().useMock) {
22
- d(new j(r().projectId)), l(new k()), g({
21
+ if (w(t), r().useMock) {
22
+ d(new C(r().projectId)), l(new j()), g({
23
23
  projectId: r().projectId,
24
24
  enabled: !1,
25
25
  totpConfig: { enabled: !1 },
@@ -53,20 +53,22 @@ const F = async (t) => {
53
53
  }
54
54
  );
55
55
  } catch {
56
- s = void 0;
56
+ a.sendSessionRefreshEvent({
57
+ name: "refresh_token_storage_not_initialized"
58
+ }), s = void 0;
57
59
  }
58
60
  if (p({
59
61
  debugging: r().debugging,
60
62
  basePath: r().basePath,
61
63
  refreshTokenStorage: s
62
64
  }), n) {
63
- const e = new C();
65
+ const e = new A();
64
66
  l(e);
65
- const o = A(r().projectId);
67
+ const o = k(r().projectId);
66
68
  d(o), m(o);
67
69
  }
68
70
  const [, i, c] = await Promise.allSettled([
69
- w().ensureInitialized(),
71
+ S().ensureInitialized(),
70
72
  (async () => {
71
73
  try {
72
74
  return await h(t.projectId);
@@ -85,5 +87,5 @@ const F = async (t) => {
85
87
  i.status === "fulfilled" && i.value && g(i.value), c.status === "fulfilled" && c.value && u(c.value);
86
88
  };
87
89
  export {
88
- F as initialize
90
+ z as initialize
89
91
  };
@@ -1,5 +1,5 @@
1
- import { InvalidAddressError as s } from "./index.web123.js";
2
- import { isAddress as a } from "./index.web124.js";
1
+ import { InvalidAddressError as s } from "./index.web118.js";
2
+ import { isAddress as a } from "./index.web119.js";
3
3
  function r(n) {
4
4
  if (typeof n == "string") {
5
5
  if (!a(n, { strict: !1 }))
@@ -1,7 +1,7 @@
1
1
  import { DisconnectedError as l, from as d } from "./index.web108.js";
2
2
  import { validateRequest as h, EIP1193ProviderError as m, STANDARD_ERROR_CODES as _ } from "./index.web74.js";
3
- import { createEOAHandlers as p } from "./index.web109.js";
4
- import { createSmartAccountHandlers as g } from "./index.web110.js";
3
+ import { createEOAHandlers as p } from "./index.web112.js";
4
+ import { createSmartAccountHandlers as g } from "./index.web113.js";
5
5
  import "viem";
6
6
  import "zustand";
7
7
  import "@coinbase/cdp-api-client";