@coinbase/cdp-core 0.0.112 → 0.0.114

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 (413) hide show
  1. package/dist/esm/index.web107.js +3 -3
  2. package/dist/esm/index.web110.js +2 -2
  3. package/dist/esm/index.web126.js +11 -11
  4. package/dist/esm/index.web127.js +3 -3
  5. package/dist/esm/index.web128.js +12 -12
  6. package/dist/esm/index.web129.js +12 -12
  7. package/dist/esm/index.web130.js +2 -19
  8. package/dist/esm/index.web131.js +63 -20
  9. package/dist/esm/index.web132.js +351 -37
  10. package/dist/esm/index.web133.js +19 -2
  11. package/dist/esm/index.web134.js +20 -63
  12. package/dist/esm/index.web135.js +37 -351
  13. package/dist/esm/index.web136.js +11 -943
  14. package/dist/esm/index.web137.js +12 -2
  15. package/dist/esm/index.web138.js +944 -49
  16. package/dist/esm/index.web139.js +2 -27
  17. package/dist/esm/index.web140.js +45 -50
  18. package/dist/esm/index.web141.js +26 -10
  19. package/dist/esm/index.web142.js +15 -2
  20. package/dist/esm/index.web143.js +28 -44
  21. package/dist/esm/index.web144.js +7 -13
  22. package/dist/esm/index.web145.js +3 -12
  23. package/dist/esm/index.web146.js +28 -11
  24. package/dist/esm/index.web147.js +8 -4
  25. package/dist/esm/index.web148.js +8 -5
  26. package/dist/esm/index.web149.js +78 -45
  27. package/dist/esm/index.web150.js +18 -4
  28. package/dist/esm/index.web151.js +3 -28
  29. package/dist/esm/index.web152.js +15 -7
  30. package/dist/esm/index.web153.js +4 -3
  31. package/dist/esm/index.web154.js +5 -19
  32. package/dist/esm/index.web155.js +19 -8
  33. package/dist/esm/index.web156.js +61 -7
  34. package/dist/esm/index.web157.js +16 -79
  35. package/dist/esm/index.web158.js +19 -24
  36. package/dist/esm/index.web159.js +8 -3
  37. package/dist/esm/index.web160.js +33 -6
  38. package/dist/esm/index.web161.js +7 -4
  39. package/dist/esm/index.web162.js +20 -14
  40. package/dist/esm/index.web163.js +5 -20
  41. package/dist/esm/index.web164.js +42 -56
  42. package/dist/esm/index.web165.js +4 -17
  43. package/dist/esm/index.web166.js +53 -22
  44. package/dist/esm/index.web167.js +10 -8
  45. package/dist/esm/index.web168.js +2 -43
  46. package/dist/esm/index.web169.js +45 -8
  47. package/dist/esm/index.web170.js +13 -20
  48. package/dist/esm/index.web171.js +104 -2
  49. package/dist/esm/index.web172.js +79 -2
  50. package/dist/esm/index.web173.js +78 -13
  51. package/dist/esm/index.web174.js +20 -54
  52. package/dist/esm/index.web175.js +32 -6
  53. package/dist/esm/index.web176.js +10 -19
  54. package/dist/esm/index.web177.js +4 -17
  55. package/dist/esm/index.web178.js +49 -39
  56. package/dist/esm/index.web179.js +55 -3
  57. package/dist/esm/index.web181.js +1 -1
  58. package/dist/esm/index.web182.js +43 -10
  59. package/dist/esm/index.web183.js +13 -4
  60. package/dist/esm/index.web184.js +6 -28
  61. package/dist/esm/index.web185.js +104 -6
  62. package/dist/esm/index.web186.js +17 -32
  63. package/dist/esm/index.web187.js +8 -12
  64. package/dist/esm/index.web188.js +9 -54
  65. package/dist/esm/index.web189.js +11 -42
  66. package/dist/esm/index.web190.js +13 -127
  67. package/dist/esm/index.web191.js +3 -104
  68. package/dist/esm/index.web192.js +6 -6
  69. package/dist/esm/index.web193.js +43 -3
  70. package/dist/esm/index.web194.js +11 -11
  71. package/dist/esm/index.web195.js +15 -2
  72. package/dist/esm/index.web196.js +19 -2
  73. package/dist/esm/index.web197.js +9 -34
  74. package/dist/esm/index.web198.js +28 -6
  75. package/dist/esm/index.web199.js +126 -33
  76. package/dist/esm/index.web2.js +2 -2
  77. package/dist/esm/index.web200.js +6 -14
  78. package/dist/esm/index.web201.js +3 -35
  79. package/dist/esm/index.web202.js +2 -19
  80. package/dist/esm/index.web203.js +2 -9
  81. package/dist/esm/index.web204.js +36 -9
  82. package/dist/esm/index.web205.js +6 -11
  83. package/dist/esm/index.web206.js +33 -12
  84. package/dist/esm/index.web207.js +34 -5
  85. package/dist/esm/index.web208.js +6 -5
  86. package/dist/esm/index.web209.js +5 -11
  87. package/dist/esm/index.web210.js +10 -20
  88. package/dist/esm/index.web211.js +2 -10
  89. package/dist/esm/index.web212.js +2 -20
  90. package/dist/esm/index.web213.js +2 -94
  91. package/dist/esm/index.web214.js +109 -21
  92. package/dist/esm/index.web215.js +2 -118
  93. package/dist/esm/index.web216.js +43 -100
  94. package/dist/esm/index.web217.js +7 -78
  95. package/dist/esm/index.web218.js +2 -79
  96. package/dist/esm/index.web219.js +361 -2
  97. package/dist/esm/index.web220.js +849 -105
  98. package/dist/esm/index.web221.js +39 -2
  99. package/dist/esm/index.web222.js +2 -8
  100. package/dist/esm/index.web223.js +70 -2
  101. package/dist/esm/index.web224.js +30 -364
  102. package/dist/esm/index.web225.js +14 -826
  103. package/dist/esm/index.web226.js +20 -38
  104. package/dist/esm/index.web227.js +10 -2
  105. package/dist/esm/index.web228.js +20 -70
  106. package/dist/esm/index.web229.js +93 -34
  107. package/dist/esm/index.web230.js +20 -14
  108. package/dist/esm/index.web231.js +115 -18
  109. package/dist/esm/index.web232.js +20 -2
  110. package/dist/esm/index.web233.js +2 -20
  111. package/dist/esm/index.web234.js +6 -32
  112. package/dist/esm/index.web235.js +32 -6
  113. package/dist/esm/index.web236.js +14 -40
  114. package/dist/esm/index.web238.js +2 -18
  115. package/dist/esm/index.web239.js +2 -28
  116. package/dist/esm/index.web240.js +2 -8
  117. package/dist/esm/index.web241.js +18 -11
  118. package/dist/esm/index.web242.js +28 -13
  119. package/dist/esm/index.web243.js +8 -10
  120. package/dist/esm/index.web244.js +11 -17
  121. package/dist/esm/index.web245.js +12 -80
  122. package/dist/esm/index.web246.js +10 -2
  123. package/dist/esm/index.web247.js +17 -2
  124. package/dist/esm/index.web248.js +81 -2
  125. package/dist/esm/index.web250.js +14 -78
  126. package/dist/esm/index.web251.js +78 -14
  127. package/dist/esm/index.web3.js +1 -1
  128. package/dist/esm/index.web36.js +8 -7
  129. package/dist/esm/index.web53.js +40 -35
  130. package/dist/esm/index.web69.js +52 -48
  131. package/dist/esm/index.web87.js +21 -21
  132. package/dist/esm/index.web9.js +1 -1
  133. package/dist/esm/index.web91.js +55 -49
  134. package/dist/esm/index.web97.js +19 -11
  135. package/dist/esm/index.web99.js +1 -1
  136. package/dist/native/index.native101.js +1 -1
  137. package/dist/native/index.native109.js +3 -3
  138. package/dist/native/index.native11.js +1 -1
  139. package/dist/native/index.native112.js +2 -2
  140. package/dist/native/index.native116.js +1 -1
  141. package/dist/native/index.native128.js +12 -12
  142. package/dist/native/index.native129.js +16 -89
  143. package/dist/native/index.native130.js +21 -15
  144. package/dist/native/index.native131.js +49 -21
  145. package/dist/native/index.native132.js +363 -37
  146. package/dist/native/index.native133.js +2 -379
  147. package/dist/native/index.native134.js +68 -2
  148. package/dist/native/index.native135.js +336 -37
  149. package/dist/native/index.native136.js +87 -362
  150. package/dist/native/index.native137.js +12 -12
  151. package/dist/native/index.native138.js +12 -12
  152. package/dist/native/index.native139.js +944 -54
  153. package/dist/native/index.native140.js +2 -11
  154. package/dist/native/index.native141.js +50 -2
  155. package/dist/native/index.native142.js +27 -45
  156. package/dist/native/index.native143.js +54 -13
  157. package/dist/native/index.native144.js +10 -4
  158. package/dist/native/index.native145.js +2 -945
  159. package/dist/native/index.native146.js +45 -2
  160. package/dist/native/index.native147.js +13 -49
  161. package/dist/native/index.native148.js +4 -26
  162. package/dist/native/index.native149.js +5 -35
  163. package/dist/native/index.native150.js +40 -60
  164. package/dist/native/index.native151.js +35 -13
  165. package/dist/native/index.native152.js +67 -11
  166. package/dist/native/index.native153.js +14 -5
  167. package/dist/native/index.native154.js +24 -44
  168. package/dist/native/index.native155.js +7 -13
  169. package/dist/native/index.native156.js +3 -55
  170. package/dist/native/index.native157.js +27 -6
  171. package/dist/native/index.native158.js +8 -21
  172. package/dist/native/index.native159.js +7 -17
  173. package/dist/native/index.native160.js +78 -44
  174. package/dist/native/index.native161.js +27 -3
  175. package/dist/native/index.native162.js +3 -3
  176. package/dist/native/index.native163.js +14 -34
  177. package/dist/native/index.native164.js +4 -12
  178. package/dist/native/index.native165.js +13 -4
  179. package/dist/native/index.native166.js +18 -27
  180. package/dist/native/index.native167.js +60 -6
  181. package/dist/native/index.native168.js +17 -32
  182. package/dist/native/index.native169.js +21 -10
  183. package/dist/native/index.native170.js +8 -55
  184. package/dist/native/index.native171.js +40 -41
  185. package/dist/native/index.native172.js +7 -127
  186. package/dist/native/index.native173.js +19 -103
  187. package/dist/native/index.native174.js +12 -6
  188. package/dist/native/index.native175.js +12 -3
  189. package/dist/native/index.native176.js +13 -78
  190. package/dist/native/index.native177.js +56 -2
  191. package/dist/native/index.native178.js +7 -2
  192. package/dist/native/index.native179.js +18 -34
  193. package/dist/native/index.native180.js +16 -5
  194. package/dist/native/index.native181.js +42 -31
  195. package/dist/native/index.native182.js +3 -14
  196. package/dist/native/index.native183.js +3 -34
  197. package/dist/native/index.native184.js +33 -17
  198. package/dist/native/index.native185.js +12 -8
  199. package/dist/native/index.native186.js +4 -10
  200. package/dist/native/index.native187.js +28 -11
  201. package/dist/native/index.native188.js +6 -13
  202. package/dist/native/index.native189.js +32 -5
  203. package/dist/native/index.native190.js +13 -5
  204. package/dist/native/index.native191.js +55 -10
  205. package/dist/native/index.native192.js +43 -2
  206. package/dist/native/index.native193.js +128 -2
  207. package/dist/native/index.native194.js +104 -13
  208. package/dist/native/index.native195.js +6 -27
  209. package/dist/native/index.native196.js +3 -8
  210. package/dist/native/index.native197.js +78 -3
  211. package/dist/native/index.native198.js +2 -28
  212. package/dist/native/index.native199.js +2 -9
  213. package/dist/native/index.native2.js +2 -2
  214. package/dist/native/index.native200.js +37 -7
  215. package/dist/native/index.native201.js +6 -79
  216. package/dist/native/index.native202.js +32 -25
  217. package/dist/native/index.native203.js +14 -3
  218. package/dist/native/index.native204.js +34 -14
  219. package/dist/native/index.native205.js +18 -4
  220. package/dist/native/index.native206.js +8 -13
  221. package/dist/native/index.native207.js +9 -18
  222. package/dist/native/index.native208.js +11 -60
  223. package/dist/native/index.native209.js +13 -17
  224. package/dist/native/index.native210.js +5 -23
  225. package/dist/native/index.native211.js +5 -9
  226. package/dist/native/index.native212.js +10 -41
  227. package/dist/native/index.native213.js +2 -8
  228. package/dist/native/index.native214.js +2 -21
  229. package/dist/native/index.native215.js +2 -2
  230. package/dist/native/index.native216.js +3 -3
  231. package/dist/native/index.native218.js +3 -3
  232. package/dist/native/index.native219.js +1 -1
  233. package/dist/native/index.native220.js +3 -3
  234. package/dist/native/index.native224.js +38 -103
  235. package/dist/native/index.native225.js +2 -79
  236. package/dist/native/index.native226.js +69 -78
  237. package/dist/native/index.native227.js +34 -7
  238. package/dist/native/index.native228.js +15 -2
  239. package/dist/native/index.native229.js +7 -368
  240. package/dist/native/index.native230.js +2 -827
  241. package/dist/native/index.native231.js +357 -35
  242. package/dist/native/index.native232.js +853 -2
  243. package/dist/native/index.native233.js +103 -69
  244. package/dist/native/index.native234.js +76 -32
  245. package/dist/native/index.native235.js +78 -14
  246. package/dist/native/index.native236.js +1 -1
  247. package/dist/native/index.native239.js +5 -5
  248. package/dist/native/index.native240.js +2 -2
  249. package/dist/native/index.native241.js +45 -16
  250. package/dist/native/index.native242.js +18 -28
  251. package/dist/native/index.native243.js +26 -6
  252. package/dist/native/index.native244.js +6 -9
  253. package/dist/native/index.native245.js +11 -13
  254. package/dist/native/index.native246.js +11 -8
  255. package/dist/native/index.native247.js +7 -14
  256. package/dist/native/index.native248.js +16 -80
  257. package/dist/native/index.native249.js +80 -3
  258. package/dist/native/index.native250.js +2 -47
  259. package/dist/native/index.native253.js +4 -2
  260. package/dist/native/index.native256.js +1 -1
  261. package/dist/native/index.native3.js +1 -1
  262. package/dist/native/index.native38.js +8 -7
  263. package/dist/native/index.native55.js +40 -35
  264. package/dist/native/index.native71.js +52 -48
  265. package/dist/native/index.native86.js +1 -1
  266. package/dist/native/index.native89.js +23 -23
  267. package/dist/native/index.native93.js +55 -49
  268. package/dist/native/index.native99.js +19 -11
  269. package/dist/native-types/actions/sendUserOperation.d.ts +1 -0
  270. package/dist/native-types/types.d.ts +4 -2
  271. package/dist/native-types/version.d.ts +1 -1
  272. package/dist/types/actions/sendUserOperation.d.ts +1 -0
  273. package/dist/types/types.d.ts +4 -2
  274. package/dist/types/version.d.ts +1 -1
  275. package/dist/web/index.web107.js +3 -3
  276. package/dist/web/index.web110.js +2 -2
  277. package/dist/web/index.web126.js +11 -11
  278. package/dist/web/index.web127.js +3 -3
  279. package/dist/web/index.web128.js +12 -12
  280. package/dist/web/index.web129.js +12 -12
  281. package/dist/web/index.web130.js +2 -19
  282. package/dist/web/index.web131.js +63 -20
  283. package/dist/web/index.web132.js +351 -37
  284. package/dist/web/index.web133.js +19 -2
  285. package/dist/web/index.web134.js +20 -63
  286. package/dist/web/index.web135.js +37 -351
  287. package/dist/web/index.web136.js +11 -943
  288. package/dist/web/index.web137.js +12 -2
  289. package/dist/web/index.web138.js +944 -49
  290. package/dist/web/index.web139.js +2 -27
  291. package/dist/web/index.web140.js +45 -50
  292. package/dist/web/index.web141.js +26 -10
  293. package/dist/web/index.web142.js +15 -2
  294. package/dist/web/index.web143.js +28 -44
  295. package/dist/web/index.web144.js +7 -13
  296. package/dist/web/index.web145.js +3 -12
  297. package/dist/web/index.web146.js +28 -11
  298. package/dist/web/index.web147.js +8 -4
  299. package/dist/web/index.web148.js +8 -5
  300. package/dist/web/index.web149.js +78 -45
  301. package/dist/web/index.web150.js +18 -4
  302. package/dist/web/index.web151.js +3 -28
  303. package/dist/web/index.web152.js +15 -7
  304. package/dist/web/index.web153.js +4 -3
  305. package/dist/web/index.web154.js +5 -19
  306. package/dist/web/index.web155.js +19 -8
  307. package/dist/web/index.web156.js +61 -7
  308. package/dist/web/index.web157.js +16 -79
  309. package/dist/web/index.web158.js +19 -24
  310. package/dist/web/index.web159.js +8 -3
  311. package/dist/web/index.web160.js +33 -6
  312. package/dist/web/index.web161.js +7 -4
  313. package/dist/web/index.web162.js +20 -14
  314. package/dist/web/index.web163.js +5 -20
  315. package/dist/web/index.web164.js +42 -56
  316. package/dist/web/index.web165.js +4 -17
  317. package/dist/web/index.web166.js +53 -22
  318. package/dist/web/index.web167.js +10 -8
  319. package/dist/web/index.web168.js +2 -43
  320. package/dist/web/index.web169.js +45 -8
  321. package/dist/web/index.web170.js +13 -20
  322. package/dist/web/index.web171.js +104 -2
  323. package/dist/web/index.web172.js +79 -2
  324. package/dist/web/index.web173.js +78 -13
  325. package/dist/web/index.web174.js +20 -54
  326. package/dist/web/index.web175.js +32 -6
  327. package/dist/web/index.web176.js +10 -19
  328. package/dist/web/index.web177.js +4 -17
  329. package/dist/web/index.web178.js +49 -39
  330. package/dist/web/index.web179.js +55 -3
  331. package/dist/web/index.web181.js +1 -1
  332. package/dist/web/index.web182.js +43 -10
  333. package/dist/web/index.web183.js +13 -4
  334. package/dist/web/index.web184.js +6 -28
  335. package/dist/web/index.web185.js +104 -6
  336. package/dist/web/index.web186.js +17 -32
  337. package/dist/web/index.web187.js +8 -12
  338. package/dist/web/index.web188.js +9 -54
  339. package/dist/web/index.web189.js +11 -42
  340. package/dist/web/index.web190.js +13 -127
  341. package/dist/web/index.web191.js +3 -104
  342. package/dist/web/index.web192.js +6 -6
  343. package/dist/web/index.web193.js +43 -3
  344. package/dist/web/index.web194.js +11 -11
  345. package/dist/web/index.web195.js +15 -2
  346. package/dist/web/index.web196.js +19 -2
  347. package/dist/web/index.web197.js +9 -34
  348. package/dist/web/index.web198.js +28 -6
  349. package/dist/web/index.web199.js +126 -33
  350. package/dist/web/index.web2.js +2 -2
  351. package/dist/web/index.web200.js +6 -14
  352. package/dist/web/index.web201.js +3 -35
  353. package/dist/web/index.web202.js +2 -19
  354. package/dist/web/index.web203.js +2 -9
  355. package/dist/web/index.web204.js +36 -9
  356. package/dist/web/index.web205.js +6 -11
  357. package/dist/web/index.web206.js +33 -12
  358. package/dist/web/index.web207.js +34 -5
  359. package/dist/web/index.web208.js +6 -5
  360. package/dist/web/index.web209.js +5 -11
  361. package/dist/web/index.web210.js +10 -20
  362. package/dist/web/index.web211.js +2 -10
  363. package/dist/web/index.web212.js +2 -20
  364. package/dist/web/index.web213.js +2 -94
  365. package/dist/web/index.web214.js +109 -21
  366. package/dist/web/index.web215.js +2 -118
  367. package/dist/web/index.web216.js +43 -100
  368. package/dist/web/index.web217.js +7 -78
  369. package/dist/web/index.web218.js +2 -79
  370. package/dist/web/index.web219.js +361 -2
  371. package/dist/web/index.web220.js +849 -105
  372. package/dist/web/index.web221.js +39 -2
  373. package/dist/web/index.web222.js +2 -8
  374. package/dist/web/index.web223.js +70 -2
  375. package/dist/web/index.web224.js +30 -364
  376. package/dist/web/index.web225.js +14 -826
  377. package/dist/web/index.web226.js +20 -38
  378. package/dist/web/index.web227.js +10 -2
  379. package/dist/web/index.web228.js +20 -70
  380. package/dist/web/index.web229.js +93 -34
  381. package/dist/web/index.web230.js +20 -14
  382. package/dist/web/index.web231.js +115 -18
  383. package/dist/web/index.web232.js +20 -2
  384. package/dist/web/index.web233.js +2 -20
  385. package/dist/web/index.web234.js +6 -32
  386. package/dist/web/index.web235.js +32 -6
  387. package/dist/web/index.web236.js +14 -40
  388. package/dist/web/index.web238.js +2 -18
  389. package/dist/web/index.web239.js +2 -28
  390. package/dist/web/index.web240.js +2 -8
  391. package/dist/web/index.web241.js +18 -11
  392. package/dist/web/index.web242.js +28 -13
  393. package/dist/web/index.web243.js +8 -10
  394. package/dist/web/index.web244.js +11 -17
  395. package/dist/web/index.web245.js +12 -80
  396. package/dist/web/index.web246.js +10 -2
  397. package/dist/web/index.web247.js +17 -2
  398. package/dist/web/index.web248.js +81 -2
  399. package/dist/web/index.web250.js +14 -78
  400. package/dist/web/index.web251.js +78 -14
  401. package/dist/web/index.web3.js +1 -1
  402. package/dist/web/index.web36.js +8 -7
  403. package/dist/web/index.web53.js +40 -35
  404. package/dist/web/index.web69.js +52 -48
  405. package/dist/web/index.web87.js +21 -21
  406. package/dist/web/index.web9.js +1 -1
  407. package/dist/web/index.web91.js +55 -49
  408. package/dist/web/index.web97.js +19 -11
  409. package/dist/web/index.web99.js +1 -1
  410. package/dist/web-types/actions/sendUserOperation.d.ts +1 -0
  411. package/dist/web-types/types.d.ts +4 -2
  412. package/dist/web-types/version.d.ts +1 -1
  413. package/package.json +2 -2
@@ -1,28 +1,28 @@
1
- import { hashTypedData as c, serializeErc6492Signature as m, encodeFunctionData as u, pad as g, getTypesForEIP712Domain as p, hashMessage as A } from "viem";
2
- import { getCurrentUserSync as d } from "./index.native46.js";
1
+ import { hashTypedData as m, serializeErc6492Signature as u, encodeFunctionData as g, pad as d, getTypesForEIP712Domain as A, hashMessage as p } from "viem";
2
+ import { getCurrentUserSync as l } from "./index.native46.js";
3
3
  import "@coinbase/cdp-api-client";
4
4
  import "./index.native2.js";
5
5
  import "./index.native3.js";
6
6
  import "jose";
7
7
  import "./index.native100.js";
8
- import { signEvmHash as s } from "./index.native30.js";
8
+ import { signEvmHash as i } from "./index.native30.js";
9
9
  import { signEvmTransaction as h } from "./index.native31.js";
10
- import { signEvmMessage as l } from "./index.native32.js";
11
- import { signEvmTypedData as f } from "./index.native33.js";
10
+ import { signEvmMessage as f } from "./index.native32.js";
11
+ import { signEvmTypedData as y } from "./index.native33.js";
12
12
  import "./index.native101.js";
13
13
  import "@solana/web3.js";
14
14
  import "bs58";
15
- import { COINBASE_SMART_WALLET_FACTORY_ADDRESS as y, COINBASE_SMART_WALLET_FACTORY_ABI as v } from "./index.native110.js";
15
+ import { COINBASE_SMART_WALLET_FACTORY_ADDRESS as v, COINBASE_SMART_WALLET_FACTORY_ABI as w } from "./index.native110.js";
16
16
  import { signAndWrapTypedDataForSmartAccount as E } from "./index.native111.js";
17
17
  import { toAccount as T } from "./index.native112.js";
18
- function B(r) {
19
- const o = d();
18
+ function W(r) {
19
+ const o = l();
20
20
  if (!o || !o.evmAccountObjects?.length && !o.evmSmartAccountObjects?.length)
21
21
  throw new Error(
22
22
  "No accounts found - user must be authenticated and have at least one EVM account or smart account"
23
23
  );
24
- const i = o.evmAccountObjects?.some((e) => e.address === r) ?? !1, a = o.evmSmartAccountObjects?.some((e) => e.address === r) ?? !1;
25
- if (!i && !a)
24
+ const s = r.toLowerCase(), c = o.evmAccountObjects?.some((e) => e.address.toLowerCase() === s) ?? !1, a = o.evmSmartAccountObjects?.some((e) => e.address.toLowerCase() === s) ?? !1;
25
+ if (!c && !a)
26
26
  throw new Error(`Cannot sign for address ${r} - not authorized for this account`);
27
27
  return T({
28
28
  address: r,
@@ -37,13 +37,13 @@ function B(r) {
37
37
  async signMessage({ message: e }) {
38
38
  let t;
39
39
  if (typeof e == "string")
40
- t = (await l({
40
+ t = (await f({
41
41
  evmAccount: r,
42
42
  message: e
43
43
  })).signature;
44
44
  else if ("raw" in e) {
45
- const n = A(e);
46
- t = (await s({
45
+ const n = p(e);
46
+ t = (await i({
47
47
  evmAccount: r,
48
48
  hash: n
49
49
  })).signature;
@@ -85,15 +85,15 @@ function B(r) {
85
85
  const t = await E({
86
86
  smartAccount: r,
87
87
  ownerAddress: o.evmAccountObjects?.[0]?.address,
88
- hash: c(e),
88
+ hash: m(e),
89
89
  chainId: Number(e.domain.chainId)
90
90
  });
91
- return m({
92
- address: y,
93
- data: u({
94
- abi: v,
91
+ return u({
92
+ address: v,
93
+ data: g({
94
+ abi: w,
95
95
  functionName: "createAccount",
96
- args: [[g(o.evmAccountObjects?.[0]?.address)], 0n]
96
+ args: [[d(o.evmAccountObjects?.[0]?.address)], 0n]
97
97
  }),
98
98
  signature: t.signature
99
99
  });
@@ -101,7 +101,7 @@ function B(r) {
101
101
  const t = {
102
102
  domain: e.domain,
103
103
  types: {
104
- EIP712Domain: p({
104
+ EIP712Domain: A({
105
105
  domain: e.domain
106
106
  }),
107
107
  ...e.types
@@ -109,7 +109,7 @@ function B(r) {
109
109
  primaryType: e.primaryType,
110
110
  message: e.message
111
111
  };
112
- return (await f({
112
+ return (await y({
113
113
  evmAccount: r,
114
114
  typedData: t
115
115
  })).signature;
@@ -122,7 +122,7 @@ function B(r) {
122
122
  * @returns The signature as a hex string
123
123
  */
124
124
  async sign(e) {
125
- return (await s({
125
+ return (await i({
126
126
  evmAccount: r,
127
127
  hash: e.hash
128
128
  })).signature;
@@ -130,5 +130,5 @@ function B(r) {
130
130
  });
131
131
  }
132
132
  export {
133
- B as toViemAccount
133
+ W as toViemAccount
134
134
  };
@@ -9,7 +9,7 @@ import { getCurrentUser as u } from "./index.native23.js";
9
9
  import "./index.native101.js";
10
10
  import "@solana/web3.js";
11
11
  import "bs58";
12
- const r = {
12
+ const n = {
13
13
  rpc: {
14
14
  invalidInput: -32e3,
15
15
  resourceNotFound: -32001,
@@ -32,7 +32,7 @@ const r = {
32
32
  unsupportedChain: 4902
33
33
  }
34
34
  };
35
- class o extends Error {
35
+ class s extends Error {
36
36
  /**
37
37
  * The error code from EIP1193ErrorCode enum.
38
38
  */
@@ -43,8 +43,8 @@ class o extends Error {
43
43
  * @param code - The error code from EIP1193ErrorCode enum.
44
44
  * @param message - The error message.
45
45
  */
46
- constructor(t, n) {
47
- super(n), this.code = t;
46
+ constructor(t, r) {
47
+ super(r), this.code = t;
48
48
  }
49
49
  }
50
50
  class c extends Error {
@@ -58,8 +58,8 @@ class c extends Error {
58
58
  * @param code - The error code from RPCErrorCode type.
59
59
  * @param message - The error message.
60
60
  */
61
- constructor(t, n) {
62
- super(n), this.code = t;
61
+ constructor(t, r) {
62
+ super(r), this.code = t;
63
63
  }
64
64
  }
65
65
  const p = /* @__PURE__ */ new Set([
@@ -76,83 +76,89 @@ const p = /* @__PURE__ */ new Set([
76
76
  "wallet_getCallsStatus",
77
77
  "wallet_getCapabilities"
78
78
  ]);
79
- function R(e, { chains: t }) {
80
- const { method: n, params: i } = e;
81
- if (typeof n != "string" || n.length === 0)
79
+ function b(e, { chains: t }) {
80
+ const { method: r, params: o } = e;
81
+ if (typeof r != "string" || r.length === 0)
82
82
  throw new c(
83
- r.rpc.invalidParams,
83
+ n.rpc.invalidParams,
84
84
  "'method' must be a non-empty string."
85
85
  );
86
- const a = (i ?? [])[0]?.chainId;
87
- if (typeof a == "string" && !t.some((d) => d.id === Number.parseInt(a, 16)))
88
- throw new o(
89
- r.provider.unsupportedChain,
86
+ const a = (o ?? [])[0]?.chainId;
87
+ if (typeof a == "string" && !t.some((i) => i.id === Number.parseInt(a, 16)))
88
+ throw new s(
89
+ n.provider.unsupportedChain,
90
90
  `Chain ${a} not supported - make sure the provider is configured with the correct chains.`
91
91
  );
92
- if (i !== void 0 && !Array.isArray(i))
92
+ if (o !== void 0 && !Array.isArray(o))
93
93
  throw new c(
94
- r.rpc.invalidParams,
94
+ n.rpc.invalidParams,
95
95
  "'params' must be an array if provided."
96
96
  );
97
- if (!p.has(n))
98
- throw new o(
99
- r.provider.unsupportedMethod,
97
+ if (!p.has(r))
98
+ throw new s(
99
+ n.provider.unsupportedMethod,
100
100
  `Method ${e.method} not supported`
101
101
  );
102
102
  }
103
- async function s() {
103
+ async function d() {
104
104
  const e = await u();
105
105
  if (!e)
106
- throw new o(
107
- r.provider.unauthorized,
106
+ throw new s(
107
+ n.provider.unauthorized,
108
108
  "User not connected"
109
109
  );
110
110
  return e;
111
111
  }
112
- async function g(e) {
113
- const t = await s();
114
- if (!t.evmAccounts?.includes(e) && !t.evmSmartAccounts?.includes(e))
115
- throw new o(
116
- r.provider.unauthorized,
112
+ async function O(e) {
113
+ const t = await d(), r = e.toLowerCase(), o = t.evmAccountObjects?.some(
114
+ (i) => i.address.toLowerCase() === r
115
+ ), a = t.evmSmartAccountObjects?.some(
116
+ (i) => i.address.toLowerCase() === r
117
+ );
118
+ if (!o && !a)
119
+ throw new s(
120
+ n.provider.unauthorized,
117
121
  "Address not owned by user"
118
122
  );
119
123
  return t;
120
124
  }
121
- async function C(e) {
122
- const t = await s();
123
- if (!t.evmAccounts?.includes(e))
124
- throw new o(
125
- r.provider.unauthorized,
125
+ async function S(e) {
126
+ const t = await d(), r = e.toLowerCase();
127
+ if (!t.evmAccountObjects?.some((o) => o.address.toLowerCase() === r))
128
+ throw new s(
129
+ n.provider.unauthorized,
126
130
  "EOA not owned by user"
127
131
  );
128
132
  return t;
129
133
  }
130
- async function b(e) {
131
- const t = await s();
132
- if (!t.evmSmartAccounts?.includes(e))
133
- throw new o(
134
- r.provider.unauthorized,
134
+ async function R(e) {
135
+ const t = await d(), r = e.toLowerCase();
136
+ if (!t.evmSmartAccountObjects?.some(
137
+ (o) => o.address.toLowerCase() === r
138
+ ))
139
+ throw new s(
140
+ n.provider.unauthorized,
135
141
  "Smart account not owned by user"
136
142
  );
137
143
  return t;
138
144
  }
139
- async function O() {
140
- const e = await s();
145
+ async function g() {
146
+ const e = await d();
141
147
  if (!e.evmSmartAccountObjects?.[0])
142
- throw new o(
143
- r.provider.unauthorized,
148
+ throw new s(
149
+ n.provider.unauthorized,
144
150
  "No EVM smart accounts available"
145
151
  );
146
152
  return e;
147
153
  }
148
154
  export {
149
- o as EIP1193ProviderError,
155
+ s as EIP1193ProviderError,
150
156
  c as RPCRequestError,
151
- r as STANDARD_ERROR_CODES,
152
- R as validateRequest,
153
- s as validateUserConnected,
154
- O as validateUserHasEvmSmartAccount,
155
- g as validateUserOwnsAddress,
156
- C as validateUserOwnsEOA,
157
- b as validateUserOwnsSmartAccount
157
+ n as STANDARD_ERROR_CODES,
158
+ b as validateRequest,
159
+ d as validateUserConnected,
160
+ g as validateUserHasEvmSmartAccount,
161
+ O as validateUserOwnsAddress,
162
+ S as validateUserOwnsEOA,
163
+ R as validateUserOwnsSmartAccount
158
164
  };
@@ -1,20 +1,28 @@
1
1
  import "@coinbase/cdp-api-client";
2
2
  import "viem";
3
- const u = async (c) => await c.isSignedIn();
4
- async function A(c, a, r) {
3
+ const u = async (t) => await t.isSignedIn();
4
+ async function i(t, a, r) {
5
5
  if (!await u(a))
6
6
  throw new Error("User not signed in");
7
- const t = a.getUser();
8
- if ("evmAccount" in c && !(t.evmAccounts?.find((n) => n === c.evmAccount) || t.evmAccountObjects?.find((n) => n.address === c.evmAccount)))
9
- throw new Error("EVM account not found");
10
- if ("evmSmartAccount" in c && !(t.evmSmartAccounts?.find((n) => n === c.evmSmartAccount) || t.evmSmartAccountObjects?.find((n) => n.address === c.evmSmartAccount)))
11
- throw new Error("EVM Smart Account not found");
12
- if ("solanaAccount" in c && !(t.solanaAccounts?.find((n) => n === c.solanaAccount) || t.solanaAccountObjects?.find((n) => n.address === c.solanaAccount)))
7
+ const c = a.getUser();
8
+ if ("evmAccount" in t) {
9
+ const o = t.evmAccount.toLowerCase();
10
+ if (!(c.evmAccounts?.find((n) => n.toLowerCase() === o) || c.evmAccountObjects?.find((n) => n.address.toLowerCase() === o)))
11
+ throw new Error("EVM account not found");
12
+ }
13
+ if ("evmSmartAccount" in t) {
14
+ const o = t.evmSmartAccount.toLowerCase();
15
+ if (!(c.evmSmartAccounts?.find((n) => n.toLowerCase() === o) || c.evmSmartAccountObjects?.find(
16
+ (n) => n.address.toLowerCase() === o
17
+ )))
18
+ throw new Error("EVM Smart Account not found");
19
+ }
20
+ if ("solanaAccount" in t && !(c.solanaAccounts?.find((e) => e === t.solanaAccount) || c.solanaAccountObjects?.find((e) => e.address === t.solanaAccount)))
13
21
  throw new Error("Solana account not found");
14
- const e = await a.getWalletSecretId();
15
- return r({ ...c, user: t, walletSecretId: e });
22
+ const s = await a.getWalletSecretId();
23
+ return r({ ...t, user: c, walletSecretId: s });
16
24
  }
17
25
  export {
18
26
  u as isSignedIn,
19
- A as withAuth
27
+ i as withAuth
20
28
  };
@@ -8,6 +8,7 @@ import { SendUserOperationOptions, SendUserOperationResult } from '../types.js';
8
8
  * @param options.calls - The calls to make from the user operation.
9
9
  * @param options.paymasterUrl - The URL of the paymaster to use for the user operation.
10
10
  * Get your free Base paymaster URL [from the CDP Portal](https://portal.cdp.coinbase.com/products/node).
11
+ * @param options.paymasterContext - ERC-7677 paymaster context forwarded to the paymaster service. Requires `useCdpPaymaster` or `paymasterUrl`.
11
12
  * @param options.dataSuffix - Optional hex-encoded data suffix to append to the user operation callData for attribution (ERC-8021).
12
13
  * @returns Promise that resolves to the user operation hash.
13
14
  * @example
@@ -1,4 +1,4 @@
1
- import { SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, APIError, APIErrorType, ErrorType, HttpErrorType, EvmUserOperation, EvmCall as EvmUserOperationCall, EvmUserOperationNetwork, EvmUserOperationStatus, OAuth2ProviderType, OAuth2Authentication, TelegramAuthentication, SiweAuthentication, MFAMethods, MfaMethod, EndUserEvmAccount, EndUserSolanaAccount, EndUserEvmSmartAccount, EndUserBtcAccount, CreateEndUserBtcAccountBodyNetwork, UserOperationReceipt, TokenFee, GetEndUserEvmSwapPrice200IssuesAllowance, GetEndUserEvmSwapPrice200IssuesBalance } from '@coinbase/cdp-api-client';
1
+ import { SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, APIError, APIErrorType, ErrorType, HttpErrorType, EvmUserOperation, EvmCall as EvmUserOperationCall, EvmUserOperationNetwork, EvmUserOperationStatus, OAuth2ProviderType, OAuth2Authentication, TelegramAuthentication, SiweAuthentication, MFAMethods, MfaMethod, EndUserEvmAccount, EndUserSolanaAccount, EndUserEvmSmartAccount, EndUserBtcAccount, CreateEndUserBtcAccountBodyNetwork, UserOperationReceipt, TokenFee, GetEndUserEvmSwapPrice200IssuesAllowance, GetEndUserEvmSwapPrice200IssuesBalance, PaymasterContext } from '@coinbase/cdp-api-client';
2
2
  import { TransactionSerializableEIP1559 } from 'viem';
3
3
  export {
4
4
  /** The API error class */
@@ -30,7 +30,7 @@ type CreateEndUserBtcAccountBodyNetwork,
30
30
  /** EVM smart account object with address, ownerAddresses, and createdAt */
31
31
  type EndUserEvmSmartAccount,
32
32
  /** User operation receipt from ERC-4337 */
33
- type UserOperationReceipt, type TokenFee, type EvmUserOperation, type EvmUserOperationNetwork, type EvmUserOperationStatus, type EvmUserOperationCall, };
33
+ type UserOperationReceipt, type TokenFee, type EvmUserOperation, type EvmUserOperationNetwork, type EvmUserOperationStatus, type EvmUserOperationCall, type PaymasterContext, };
34
34
  /**
35
35
  * Error thrown when custom authentication fails.
36
36
  */
@@ -520,6 +520,8 @@ export type SendUserOperationOptions = {
520
520
  useCdpPaymaster?: boolean;
521
521
  /** The URL of the paymaster to use for the user operation. Get your free Base paymaster URL [from the CDP Portal](https://portal.cdp.coinbase.com/products/node). */
522
522
  paymasterUrl?: string;
523
+ /** ERC-7677 paymaster context forwarded to the paymaster service. Requires `useCdpPaymaster` or `paymasterUrl`. */
524
+ paymasterContext?: PaymasterContext;
523
525
  /** Optional hex-encoded data suffix to append to the user operation callData for attribution (ERC-8021). The suffix will be appended to the callData of the user operation. */
524
526
  dataSuffix?: string;
525
527
  /** Optional idempotency key for safe retries. */
@@ -2,4 +2,4 @@
2
2
  * Current version of @coinbase/cdp-core package.
3
3
  * This file is auto-generated by scripts/sync-versions.js
4
4
  */
5
- export declare const VERSION = "0.0.112";
5
+ export declare const VERSION = "0.0.114";
@@ -8,6 +8,7 @@ import { SendUserOperationOptions, SendUserOperationResult } from '../types.js';
8
8
  * @param options.calls - The calls to make from the user operation.
9
9
  * @param options.paymasterUrl - The URL of the paymaster to use for the user operation.
10
10
  * Get your free Base paymaster URL [from the CDP Portal](https://portal.cdp.coinbase.com/products/node).
11
+ * @param options.paymasterContext - ERC-7677 paymaster context forwarded to the paymaster service. Requires `useCdpPaymaster` or `paymasterUrl`.
11
12
  * @param options.dataSuffix - Optional hex-encoded data suffix to append to the user operation callData for attribution (ERC-8021).
12
13
  * @returns Promise that resolves to the user operation hash.
13
14
  * @example
@@ -1,4 +1,4 @@
1
- import { SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, APIError, APIErrorType, ErrorType, HttpErrorType, EvmUserOperation, EvmCall as EvmUserOperationCall, EvmUserOperationNetwork, EvmUserOperationStatus, OAuth2ProviderType, OAuth2Authentication, TelegramAuthentication, SiweAuthentication, MFAMethods, MfaMethod, EndUserEvmAccount, EndUserSolanaAccount, EndUserEvmSmartAccount, EndUserBtcAccount, CreateEndUserBtcAccountBodyNetwork, UserOperationReceipt, TokenFee, GetEndUserEvmSwapPrice200IssuesAllowance, GetEndUserEvmSwapPrice200IssuesBalance } from '@coinbase/cdp-api-client';
1
+ import { SendEvmTransactionWithEndUserAccountBodyNetwork, SendSolanaTransactionWithEndUserAccountBodyNetwork, APIError, APIErrorType, ErrorType, HttpErrorType, EvmUserOperation, EvmCall as EvmUserOperationCall, EvmUserOperationNetwork, EvmUserOperationStatus, OAuth2ProviderType, OAuth2Authentication, TelegramAuthentication, SiweAuthentication, MFAMethods, MfaMethod, EndUserEvmAccount, EndUserSolanaAccount, EndUserEvmSmartAccount, EndUserBtcAccount, CreateEndUserBtcAccountBodyNetwork, UserOperationReceipt, TokenFee, GetEndUserEvmSwapPrice200IssuesAllowance, GetEndUserEvmSwapPrice200IssuesBalance, PaymasterContext } from '@coinbase/cdp-api-client';
2
2
  import { TransactionSerializableEIP1559 } from 'viem';
3
3
  export {
4
4
  /** The API error class */
@@ -30,7 +30,7 @@ type CreateEndUserBtcAccountBodyNetwork,
30
30
  /** EVM smart account object with address, ownerAddresses, and createdAt */
31
31
  type EndUserEvmSmartAccount,
32
32
  /** User operation receipt from ERC-4337 */
33
- type UserOperationReceipt, type TokenFee, type EvmUserOperation, type EvmUserOperationNetwork, type EvmUserOperationStatus, type EvmUserOperationCall, };
33
+ type UserOperationReceipt, type TokenFee, type EvmUserOperation, type EvmUserOperationNetwork, type EvmUserOperationStatus, type EvmUserOperationCall, type PaymasterContext, };
34
34
  /**
35
35
  * Error thrown when custom authentication fails.
36
36
  */
@@ -520,6 +520,8 @@ export type SendUserOperationOptions = {
520
520
  useCdpPaymaster?: boolean;
521
521
  /** The URL of the paymaster to use for the user operation. Get your free Base paymaster URL [from the CDP Portal](https://portal.cdp.coinbase.com/products/node). */
522
522
  paymasterUrl?: string;
523
+ /** ERC-7677 paymaster context forwarded to the paymaster service. Requires `useCdpPaymaster` or `paymasterUrl`. */
524
+ paymasterContext?: PaymasterContext;
523
525
  /** Optional hex-encoded data suffix to append to the user operation callData for attribution (ERC-8021). The suffix will be appended to the callData of the user operation. */
524
526
  dataSuffix?: string;
525
527
  /** Optional idempotency key for safe retries. */
@@ -2,4 +2,4 @@
2
2
  * Current version of @coinbase/cdp-core package.
3
3
  * This file is auto-generated by scripts/sync-versions.js
4
4
  */
5
- export declare const VERSION = "0.0.112";
5
+ export declare const VERSION = "0.0.114";
@@ -1,6 +1,6 @@
1
- import { CompactSign as i } from "./index.web130.js";
2
- import { JWTInvalid as r } from "./index.web131.js";
3
- import { JWTClaimsBuilder as n } from "./index.web132.js";
1
+ import { CompactSign as i } from "./index.web133.js";
2
+ import { JWTInvalid as r } from "./index.web134.js";
3
+ import { JWTClaimsBuilder as n } from "./index.web135.js";
4
4
  class d {
5
5
  #s;
6
6
  #t;
@@ -1,5 +1,5 @@
1
- import { InvalidAddressError as s } from "./index.web145.js";
2
- import { isAddress as a } from "./index.web146.js";
1
+ import { InvalidAddressError as s } from "./index.web136.js";
2
+ import { isAddress as a } from "./index.web137.js";
3
3
  function r(n) {
4
4
  if (typeof n == "string") {
5
5
  if (!a(n, { strict: !1 }))
@@ -1,15 +1,15 @@
1
- import { serializeAuthorizationList as v } from "./index.web177.js";
2
- import { blobsToCommitments as H } from "./index.web203.js";
3
- import { blobsToProofs as V } from "./index.web204.js";
4
- import { commitmentsToVersionedHashes as k } from "./index.web205.js";
5
- import { toBlobSidecars as B } from "./index.web206.js";
6
- import { concatHex as T } from "./index.web179.js";
7
- import { trim as F } from "./index.web185.js";
8
- import { numberToHex as s, bytesToHex as S } from "./index.web178.js";
9
- import { toRlp as b } from "./index.web189.js";
1
+ import { serializeAuthorizationList as v } from "./index.web186.js";
2
+ import { blobsToCommitments as H } from "./index.web187.js";
3
+ import { blobsToProofs as V } from "./index.web188.js";
4
+ import { commitmentsToVersionedHashes as k } from "./index.web189.js";
5
+ import { toBlobSidecars as B } from "./index.web190.js";
6
+ import { concatHex as T } from "./index.web191.js";
7
+ import { trim as F } from "./index.web192.js";
8
+ import { numberToHex as s, bytesToHex as S } from "./index.web182.js";
9
+ import { toRlp as b } from "./index.web193.js";
10
10
  import { assertTransactionEIP1559 as _, assertTransactionEIP2930 as C, assertTransactionEIP4844 as R, assertTransactionEIP7702 as Y, assertTransactionLegacy as j } from "./index.web194.js";
11
- import { getTransactionType as q } from "./index.web200.js";
12
- import { serializeAccessList as h } from "./index.web202.js";
11
+ import { getTransactionType as q } from "./index.web195.js";
12
+ import { serializeAccessList as h } from "./index.web196.js";
13
13
  function re(e, t) {
14
14
  const i = q(e);
15
15
  return i === "eip1559" ? J(e, t) : i === "eip2930" ? K(e, t) : i === "eip4844" ? D(e, t) : i === "eip7702" ? w(e, t) : M(e);
@@ -1,6 +1,6 @@
1
- import "./index.web133.js";
2
- import { BaseError as P } from "./index.web134.js";
3
- import { parse as y, parseError as j, InternalError as g } from "./index.web135.js";
1
+ import "./index.web130.js";
2
+ import { BaseError as P } from "./index.web131.js";
3
+ import { parse as y, parseError as j, InternalError as g } from "./index.web132.js";
4
4
  class u extends Error {
5
5
  constructor(e, t) {
6
6
  super(t), Object.defineProperty(this, "name", {
@@ -1,15 +1,15 @@
1
- import { handleAccounts as t } from "./index.web150.js";
2
- import { handleEthSign as e } from "./index.web151.js";
3
- import { handleGetCallsStatus as a } from "./index.web152.js";
4
- import { handleGetCapabilities as n } from "./index.web153.js";
5
- import { handlePersonalSign as o } from "./index.web154.js";
6
- import { handleRequestAccounts as r } from "./index.web155.js";
7
- import { handleSendCalls as i } from "./index.web156.js";
8
- import { handleSendTransaction as l } from "./index.web157.js";
9
- import { handleSignTypedData as h } from "./index.web158.js";
10
- import { handleChainId as s } from "./index.web159.js";
11
- import { handleDisconnect as m } from "./index.web160.js";
12
- import { handleSwitchEthereumChain as d } from "./index.web161.js";
1
+ import { handleAccounts as t } from "./index.web142.js";
2
+ import { handleEthSign as e } from "./index.web143.js";
3
+ import { handleGetCallsStatus as a } from "./index.web144.js";
4
+ import { handleGetCapabilities as n } from "./index.web145.js";
5
+ import { handlePersonalSign as o } from "./index.web146.js";
6
+ import { handleRequestAccounts as r } from "./index.web147.js";
7
+ import { handleSendCalls as i } from "./index.web148.js";
8
+ import { handleSendTransaction as l } from "./index.web149.js";
9
+ import { handleSignTypedData as h } from "./index.web150.js";
10
+ import { handleChainId as s } from "./index.web151.js";
11
+ import { handleDisconnect as m } from "./index.web152.js";
12
+ import { handleSwitchEthereumChain as d } from "./index.web153.js";
13
13
  function D() {
14
14
  return {
15
15
  eth_accounts: t,
@@ -1,15 +1,15 @@
1
- import { handleChainId as t } from "./index.web159.js";
2
- import { handleDisconnect as e } from "./index.web160.js";
3
- import { handleSwitchEthereumChain as a } from "./index.web161.js";
4
- import { handleAccounts as n } from "./index.web162.js";
5
- import { handleEthSign as o } from "./index.web163.js";
6
- import { handleGetCallsStatus as r } from "./index.web164.js";
7
- import { handleGetCapabilities as i } from "./index.web165.js";
8
- import { handlePersonalSign as l } from "./index.web166.js";
9
- import { handleRequestAccounts as h } from "./index.web167.js";
10
- import { handleSendCalls as m } from "./index.web168.js";
11
- import { handleSendTransaction as s } from "./index.web169.js";
12
- import { handleSignTypedData as d } from "./index.web170.js";
1
+ import { handleChainId as t } from "./index.web151.js";
2
+ import { handleDisconnect as e } from "./index.web152.js";
3
+ import { handleSwitchEthereumChain as a } from "./index.web153.js";
4
+ import { handleAccounts as n } from "./index.web154.js";
5
+ import { handleEthSign as o } from "./index.web155.js";
6
+ import { handleGetCallsStatus as r } from "./index.web156.js";
7
+ import { handleGetCapabilities as i } from "./index.web157.js";
8
+ import { handlePersonalSign as l } from "./index.web158.js";
9
+ import { handleRequestAccounts as h } from "./index.web159.js";
10
+ import { handleSendCalls as m } from "./index.web160.js";
11
+ import { handleSendTransaction as s } from "./index.web161.js";
12
+ import { handleSignTypedData as d } from "./index.web162.js";
13
13
  function E() {
14
14
  return {
15
15
  eth_accounts: n,
@@ -1,19 +1,2 @@
1
- import { FlattenedSign as n } from "./index.web140.js";
2
- class o {
3
- #e;
4
- constructor(e) {
5
- this.#e = new n(e);
6
- }
7
- setProtectedHeader(e) {
8
- return this.#e.setProtectedHeader(e), this;
9
- }
10
- async sign(e, r) {
11
- const t = await this.#e.sign(e, r);
12
- if (t.payload === void 0)
13
- throw new TypeError("use the flattened module for creating JWS with b64: false");
14
- return `${t.protected}.${t.payload}.${t.signature}`;
15
- }
16
- }
17
- export {
18
- o as CompactSign
19
- };
1
+ import { __require as e } from "./index.web214.js";
2
+ e();
@@ -1,25 +1,68 @@
1
- class c extends Error {
2
- static code = "ERR_JOSE_GENERIC";
3
- code = "ERR_JOSE_GENERIC";
4
- constructor(s, e) {
5
- super(s, e), this.name = this.constructor.name, Error.captureStackTrace?.(this, this.constructor);
1
+ import { getVersion as n } from "./index.web165.js";
2
+ class s extends Error {
3
+ constructor(r, e = {}) {
4
+ const a = (() => {
5
+ if (e.cause instanceof s) {
6
+ if (e.cause.details)
7
+ return e.cause.details;
8
+ if (e.cause.shortMessage)
9
+ return e.cause.shortMessage;
10
+ }
11
+ return e.cause && "details" in e.cause && typeof e.cause.details == "string" ? e.cause.details : e.cause?.message ? e.cause.message : e.details;
12
+ })(), u = e.cause instanceof s && e.cause.docsPath || e.docsPath, c = `https://oxlib.sh${u ?? ""}`, l = [
13
+ r || "An error occurred.",
14
+ ...e.metaMessages ? ["", ...e.metaMessages] : [],
15
+ ...a || u ? [
16
+ "",
17
+ a ? `Details: ${a}` : void 0,
18
+ u ? `See: ${c}` : void 0
19
+ ] : []
20
+ ].filter((d) => typeof d == "string").join(`
21
+ `);
22
+ super(l, e.cause ? { cause: e.cause } : void 0), Object.defineProperty(this, "details", {
23
+ enumerable: !0,
24
+ configurable: !0,
25
+ writable: !0,
26
+ value: void 0
27
+ }), Object.defineProperty(this, "docs", {
28
+ enumerable: !0,
29
+ configurable: !0,
30
+ writable: !0,
31
+ value: void 0
32
+ }), Object.defineProperty(this, "docsPath", {
33
+ enumerable: !0,
34
+ configurable: !0,
35
+ writable: !0,
36
+ value: void 0
37
+ }), Object.defineProperty(this, "shortMessage", {
38
+ enumerable: !0,
39
+ configurable: !0,
40
+ writable: !0,
41
+ value: void 0
42
+ }), Object.defineProperty(this, "cause", {
43
+ enumerable: !0,
44
+ configurable: !0,
45
+ writable: !0,
46
+ value: void 0
47
+ }), Object.defineProperty(this, "name", {
48
+ enumerable: !0,
49
+ configurable: !0,
50
+ writable: !0,
51
+ value: "BaseError"
52
+ }), Object.defineProperty(this, "version", {
53
+ enumerable: !0,
54
+ configurable: !0,
55
+ writable: !0,
56
+ value: `ox@${n()}`
57
+ }), this.cause = e.cause, this.details = a, this.docs = c, this.docsPath = u, this.shortMessage = r;
58
+ }
59
+ walk(r) {
60
+ return i(this, r);
6
61
  }
7
62
  }
8
- class E extends c {
9
- static code = "ERR_JOSE_NOT_SUPPORTED";
10
- code = "ERR_JOSE_NOT_SUPPORTED";
11
- }
12
- class o extends c {
13
- static code = "ERR_JWS_INVALID";
14
- code = "ERR_JWS_INVALID";
15
- }
16
- class r extends c {
17
- static code = "ERR_JWT_INVALID";
18
- code = "ERR_JWT_INVALID";
63
+ function i(t, r) {
64
+ return r?.(t) ? t : t && typeof t == "object" && "cause" in t && t.cause ? i(t.cause, r) : r ? null : t;
19
65
  }
20
66
  export {
21
- c as JOSEError,
22
- E as JOSENotSupported,
23
- o as JWSInvalid,
24
- r as JWTInvalid
67
+ s as BaseError
25
68
  };