@coinbase/cdp-core 0.0.62 → 0.0.64

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 (717) hide show
  1. package/README.md +95 -0
  2. package/dist/esm/index.native.js +46 -42
  3. package/dist/esm/index.native10.js +4 -4
  4. package/dist/esm/index.native100.js +364 -10
  5. package/dist/esm/index.native101.js +2 -55
  6. package/dist/esm/index.native102.js +28 -10
  7. package/dist/esm/index.native103.js +29 -2
  8. package/dist/esm/index.native104.js +54 -44
  9. package/dist/esm/index.native105.js +10 -13
  10. package/dist/esm/index.native106.js +2 -5
  11. package/dist/esm/index.native107.js +45 -2
  12. package/dist/esm/index.native108.js +13 -4
  13. package/dist/esm/index.native109.js +2 -19
  14. package/dist/esm/index.native11.js +7 -17
  15. package/dist/esm/index.native110.js +20 -7
  16. package/dist/esm/index.native111.js +5 -4
  17. package/dist/esm/index.native112.js +44 -16
  18. package/dist/esm/index.native113.js +19 -8
  19. package/dist/esm/index.native114.js +79 -7
  20. package/dist/esm/index.native115.js +101 -69
  21. package/dist/esm/index.native116.js +30 -16
  22. package/dist/esm/index.native117.js +6 -3
  23. package/dist/esm/index.native118.js +4 -4
  24. package/dist/esm/index.native119.js +78 -4
  25. package/dist/esm/index.native12.js +24 -16
  26. package/dist/esm/index.native120.js +3 -4
  27. package/dist/esm/index.native121.js +18 -17
  28. package/dist/esm/index.native122.js +10 -53
  29. package/dist/esm/index.native123.js +20 -18
  30. package/dist/esm/index.native124.js +93 -20
  31. package/dist/esm/index.native125.js +21 -9
  32. package/dist/esm/index.native126.js +117 -30
  33. package/dist/esm/index.native127.js +4 -7
  34. package/dist/esm/index.native128.js +11 -13
  35. package/dist/esm/index.native129.js +7 -20
  36. package/dist/esm/index.native13.js +15 -15
  37. package/dist/esm/index.native130.js +4 -5
  38. package/dist/esm/index.native131.js +16 -44
  39. package/dist/esm/index.native132.js +8 -19
  40. package/dist/esm/index.native133.js +7 -79
  41. package/dist/esm/index.native134.js +69 -101
  42. package/dist/esm/index.native135.js +16 -30
  43. package/dist/esm/index.native136.js +3 -6
  44. package/dist/esm/index.native137.js +4 -78
  45. package/dist/esm/index.native138.js +4 -3
  46. package/dist/esm/index.native139.js +4 -20
  47. package/dist/esm/index.native14.js +15 -15
  48. package/dist/esm/index.native140.js +20 -10
  49. package/dist/esm/index.native141.js +52 -19
  50. package/dist/esm/index.native142.js +18 -94
  51. package/dist/esm/index.native143.js +20 -20
  52. package/dist/esm/index.native144.js +9 -118
  53. package/dist/esm/index.native145.js +31 -2
  54. package/dist/esm/index.native146.js +7 -108
  55. package/dist/esm/index.native147.js +21 -2
  56. package/dist/esm/index.native148.js +7 -46
  57. package/dist/esm/index.native149.js +2 -8
  58. package/dist/esm/index.native15.js +15 -15
  59. package/dist/esm/index.native150.js +378 -2
  60. package/dist/esm/index.native151.js +809 -354
  61. package/dist/esm/index.native152.js +38 -832
  62. package/dist/esm/index.native153.js +2 -39
  63. package/dist/esm/index.native154.js +70 -2
  64. package/dist/esm/index.native155.js +31 -66
  65. package/dist/esm/index.native156.js +19 -33
  66. package/dist/esm/index.native157.js +5 -21
  67. package/dist/esm/index.native158.js +2 -5
  68. package/dist/esm/index.native159.js +108 -17
  69. package/dist/esm/index.native16.js +16 -226
  70. package/dist/esm/index.native160.js +2 -28
  71. package/dist/esm/index.native161.js +18 -8
  72. package/dist/esm/index.native162.js +26 -9
  73. package/dist/esm/index.native163.js +8 -13
  74. package/dist/esm/index.native164.js +11 -10
  75. package/dist/esm/index.native165.js +11 -15
  76. package/dist/esm/index.native166.js +9 -80
  77. package/dist/esm/index.native167.js +16 -14
  78. package/dist/esm/index.native168.js +81 -2
  79. package/dist/esm/index.native169.js +47 -2
  80. package/dist/esm/index.native17.js +16 -18
  81. package/dist/esm/index.native170.js +15 -2
  82. package/dist/esm/index.native171.js +2 -79
  83. package/dist/esm/index.native172.js +4 -0
  84. package/dist/esm/index.native173.js +4 -0
  85. package/dist/esm/index.native174.js +81 -0
  86. package/dist/esm/index.native18.js +225 -115
  87. package/dist/esm/index.native19.js +14 -28
  88. package/dist/esm/index.native2.js +2 -2
  89. package/dist/esm/index.native20.js +116 -46
  90. package/dist/esm/index.native21.js +21 -137
  91. package/dist/esm/index.native22.js +47 -31
  92. package/dist/esm/index.native23.js +146 -25
  93. package/dist/esm/index.native24.js +32 -3
  94. package/dist/esm/index.native25.js +28 -58
  95. package/dist/esm/index.native26.js +5 -2
  96. package/dist/esm/index.native27.js +57 -8
  97. package/dist/esm/index.native28.js +2 -59
  98. package/dist/esm/index.native29.js +6 -85
  99. package/dist/esm/index.native3.js +1 -1
  100. package/dist/esm/index.native30.js +65 -16
  101. package/dist/esm/index.native31.js +85 -15
  102. package/dist/esm/index.native32.js +15 -126
  103. package/dist/esm/index.native33.js +15 -58
  104. package/dist/esm/index.native34.js +124 -12
  105. package/dist/esm/index.native35.js +61 -42
  106. package/dist/esm/index.native36.js +13 -151
  107. package/dist/esm/index.native37.js +42 -44
  108. package/dist/esm/index.native38.js +151 -39
  109. package/dist/esm/index.native39.js +42 -47
  110. package/dist/esm/index.native40.js +29 -69
  111. package/dist/esm/index.native41.js +40 -25
  112. package/dist/esm/index.native42.js +47 -158
  113. package/dist/esm/index.native43.js +71 -46
  114. package/dist/esm/index.native44.js +26 -18
  115. package/dist/esm/index.native45.js +155 -68
  116. package/dist/esm/index.native46.js +44 -947
  117. package/dist/esm/index.native47.js +20 -2
  118. package/dist/esm/index.native48.js +72 -49
  119. package/dist/esm/index.native49.js +950 -27
  120. package/dist/esm/index.native50.js +2 -2
  121. package/dist/esm/index.native51.js +49 -376
  122. package/dist/esm/index.native52.js +27 -28
  123. package/dist/esm/index.native53.js +16 -28
  124. package/dist/esm/index.native54.js +21 -15
  125. package/dist/esm/index.native55.js +49 -21
  126. package/dist/esm/index.native56.js +2 -51
  127. package/dist/esm/index.native57.js +4 -2
  128. package/dist/esm/index.native58.js +16 -64
  129. package/dist/esm/index.native59.js +45 -364
  130. package/dist/esm/index.native60.js +14 -2
  131. package/dist/esm/index.native61.js +56 -2
  132. package/dist/esm/index.native62.js +6 -17
  133. package/dist/esm/index.native63.js +20 -44
  134. package/dist/esm/index.native64.js +11 -13
  135. package/dist/esm/index.native65.js +3 -55
  136. package/dist/esm/index.native66.js +3 -6
  137. package/dist/esm/index.native67.js +33 -20
  138. package/dist/esm/index.native68.js +12 -11
  139. package/dist/esm/index.native69.js +4 -3
  140. package/dist/esm/index.native7.js +17 -17
  141. package/dist/esm/index.native70.js +28 -3
  142. package/dist/esm/index.native71.js +6 -34
  143. package/dist/esm/index.native72.js +41 -11
  144. package/dist/esm/index.native73.js +55 -4
  145. package/dist/esm/index.native74.js +127 -28
  146. package/dist/esm/index.native75.js +23 -6
  147. package/dist/esm/index.native76.js +11 -41
  148. package/dist/esm/index.native77.js +102 -53
  149. package/dist/esm/index.native78.js +6 -127
  150. package/dist/esm/index.native79.js +3 -24
  151. package/dist/esm/index.native8.js +5 -5
  152. package/dist/esm/index.native80.js +14 -12
  153. package/dist/esm/index.native81.js +30 -100
  154. package/dist/esm/index.native82.js +78 -6
  155. package/dist/esm/index.native83.js +2 -3
  156. package/dist/esm/index.native84.js +2 -15
  157. package/dist/esm/index.native85.js +8 -30
  158. package/dist/esm/index.native86.js +33 -74
  159. package/dist/esm/index.native87.js +7 -2
  160. package/dist/esm/index.native88.js +35 -2
  161. package/dist/esm/index.native89.js +8 -12
  162. package/dist/esm/index.native9.js +4 -4
  163. package/dist/esm/index.native90.js +9 -36
  164. package/dist/esm/index.native91.js +11 -6
  165. package/dist/esm/index.native92.js +12 -33
  166. package/dist/esm/index.native93.js +18 -8
  167. package/dist/esm/index.native94.js +5 -10
  168. package/dist/esm/index.native95.js +5 -12
  169. package/dist/esm/index.native96.js +10 -13
  170. package/dist/esm/index.native97.js +376 -18
  171. package/dist/esm/index.native98.js +2 -8
  172. package/dist/esm/index.native99.js +66 -5
  173. package/dist/esm/index.web.js +46 -42
  174. package/dist/esm/index.web10.js +7 -17
  175. package/dist/esm/index.web100.js +2 -57
  176. package/dist/esm/index.web101.js +65 -10
  177. package/dist/esm/index.web102.js +365 -2
  178. package/dist/esm/index.web103.js +54 -44
  179. package/dist/esm/index.web104.js +10 -13
  180. package/dist/esm/index.web105.js +2 -5
  181. package/dist/esm/index.web106.js +45 -2
  182. package/dist/esm/index.web107.js +13 -4
  183. package/dist/esm/index.web108.js +2 -19
  184. package/dist/esm/index.web109.js +20 -7
  185. package/dist/esm/index.web11.js +24 -16
  186. package/dist/esm/index.web110.js +5 -4
  187. package/dist/esm/index.web111.js +44 -16
  188. package/dist/esm/index.web112.js +19 -8
  189. package/dist/esm/index.web113.js +79 -7
  190. package/dist/esm/index.web114.js +101 -69
  191. package/dist/esm/index.web115.js +30 -16
  192. package/dist/esm/index.web116.js +6 -3
  193. package/dist/esm/index.web117.js +4 -4
  194. package/dist/esm/index.web118.js +20 -4
  195. package/dist/esm/index.web119.js +10 -5
  196. package/dist/esm/index.web12.js +15 -15
  197. package/dist/esm/index.web120.js +19 -19
  198. package/dist/esm/index.web121.js +92 -51
  199. package/dist/esm/index.web122.js +21 -18
  200. package/dist/esm/index.web123.js +117 -20
  201. package/dist/esm/index.web124.js +78 -8
  202. package/dist/esm/index.web125.js +4 -30
  203. package/dist/esm/index.web126.js +18 -7
  204. package/dist/esm/index.web127.js +7 -20
  205. package/dist/esm/index.web128.js +3 -20
  206. package/dist/esm/index.web129.js +20 -5
  207. package/dist/esm/index.web13.js +15 -15
  208. package/dist/esm/index.web130.js +8 -47
  209. package/dist/esm/index.web131.js +7 -19
  210. package/dist/esm/index.web132.js +69 -77
  211. package/dist/esm/index.web133.js +17 -102
  212. package/dist/esm/index.web134.js +3 -6
  213. package/dist/esm/index.web135.js +4 -32
  214. package/dist/esm/index.web136.js +4 -78
  215. package/dist/esm/index.web137.js +4 -20
  216. package/dist/esm/index.web138.js +20 -10
  217. package/dist/esm/index.web139.js +52 -19
  218. package/dist/esm/index.web14.js +15 -15
  219. package/dist/esm/index.web140.js +18 -94
  220. package/dist/esm/index.web141.js +20 -20
  221. package/dist/esm/index.web142.js +9 -118
  222. package/dist/esm/index.web143.js +30 -3
  223. package/dist/esm/index.web144.js +8 -2
  224. package/dist/esm/index.web145.js +20 -108
  225. package/dist/esm/index.web146.js +4 -2
  226. package/dist/esm/index.web147.js +7 -46
  227. package/dist/esm/index.web148.js +2 -8
  228. package/dist/esm/index.web149.js +378 -2
  229. package/dist/esm/index.web15.js +16 -226
  230. package/dist/esm/index.web150.js +809 -354
  231. package/dist/esm/index.web151.js +38 -832
  232. package/dist/esm/index.web152.js +2 -39
  233. package/dist/esm/index.web153.js +70 -2
  234. package/dist/esm/index.web154.js +31 -66
  235. package/dist/esm/index.web155.js +19 -33
  236. package/dist/esm/index.web156.js +5 -21
  237. package/dist/esm/index.web157.js +2 -5
  238. package/dist/esm/index.web158.js +108 -17
  239. package/dist/esm/index.web159.js +2 -28
  240. package/dist/esm/index.web16.js +16 -18
  241. package/dist/esm/index.web160.js +18 -8
  242. package/dist/esm/index.web161.js +26 -9
  243. package/dist/esm/index.web162.js +8 -13
  244. package/dist/esm/index.web163.js +11 -10
  245. package/dist/esm/index.web164.js +11 -15
  246. package/dist/esm/index.web165.js +9 -80
  247. package/dist/esm/index.web166.js +16 -14
  248. package/dist/esm/index.web167.js +81 -2
  249. package/dist/esm/index.web168.js +47 -2
  250. package/dist/esm/index.web169.js +15 -2
  251. package/dist/esm/index.web17.js +225 -115
  252. package/dist/esm/index.web170.js +2 -79
  253. package/dist/esm/index.web171.js +4 -0
  254. package/dist/esm/index.web172.js +4 -0
  255. package/dist/esm/index.web173.js +81 -0
  256. package/dist/esm/index.web18.js +14 -28
  257. package/dist/esm/index.web19.js +116 -46
  258. package/dist/esm/index.web20.js +21 -137
  259. package/dist/esm/index.web21.js +47 -31
  260. package/dist/esm/index.web22.js +149 -3
  261. package/dist/esm/index.web23.js +30 -56
  262. package/dist/esm/index.web24.js +5 -2
  263. package/dist/esm/index.web25.js +57 -8
  264. package/dist/esm/index.web26.js +2 -59
  265. package/dist/esm/index.web27.js +6 -85
  266. package/dist/esm/index.web28.js +65 -16
  267. package/dist/esm/index.web29.js +85 -15
  268. package/dist/esm/index.web3.js +1 -1
  269. package/dist/esm/index.web30.js +15 -126
  270. package/dist/esm/index.web31.js +15 -58
  271. package/dist/esm/index.web32.js +124 -12
  272. package/dist/esm/index.web33.js +61 -42
  273. package/dist/esm/index.web34.js +12 -25
  274. package/dist/esm/index.web35.js +42 -153
  275. package/dist/esm/index.web36.js +26 -42
  276. package/dist/esm/index.web37.js +151 -39
  277. package/dist/esm/index.web38.js +42 -47
  278. package/dist/esm/index.web39.js +29 -69
  279. package/dist/esm/index.web40.js +40 -25
  280. package/dist/esm/index.web41.js +47 -158
  281. package/dist/esm/index.web42.js +71 -46
  282. package/dist/esm/index.web43.js +26 -18
  283. package/dist/esm/index.web44.js +155 -68
  284. package/dist/esm/index.web45.js +44 -947
  285. package/dist/esm/index.web46.js +20 -2
  286. package/dist/esm/index.web47.js +72 -49
  287. package/dist/esm/index.web48.js +950 -27
  288. package/dist/esm/index.web49.js +2 -2
  289. package/dist/esm/index.web50.js +49 -376
  290. package/dist/esm/index.web51.js +27 -28
  291. package/dist/esm/index.web52.js +16 -28
  292. package/dist/esm/index.web53.js +21 -15
  293. package/dist/esm/index.web54.js +49 -21
  294. package/dist/esm/index.web55.js +2 -51
  295. package/dist/esm/index.web56.js +4 -2
  296. package/dist/esm/index.web57.js +16 -64
  297. package/dist/esm/index.web58.js +45 -364
  298. package/dist/esm/index.web59.js +14 -2
  299. package/dist/esm/index.web6.js +17 -17
  300. package/dist/esm/index.web60.js +56 -2
  301. package/dist/esm/index.web61.js +6 -17
  302. package/dist/esm/index.web62.js +20 -44
  303. package/dist/esm/index.web63.js +11 -13
  304. package/dist/esm/index.web64.js +3 -55
  305. package/dist/esm/index.web65.js +3 -6
  306. package/dist/esm/index.web66.js +33 -20
  307. package/dist/esm/index.web67.js +12 -11
  308. package/dist/esm/index.web68.js +4 -3
  309. package/dist/esm/index.web69.js +28 -3
  310. package/dist/esm/index.web7.js +5 -5
  311. package/dist/esm/index.web70.js +6 -34
  312. package/dist/esm/index.web71.js +41 -11
  313. package/dist/esm/index.web72.js +55 -4
  314. package/dist/esm/index.web73.js +127 -28
  315. package/dist/esm/index.web74.js +23 -6
  316. package/dist/esm/index.web75.js +11 -41
  317. package/dist/esm/index.web76.js +102 -53
  318. package/dist/esm/index.web77.js +6 -127
  319. package/dist/esm/index.web78.js +3 -24
  320. package/dist/esm/index.web79.js +14 -12
  321. package/dist/esm/index.web8.js +4 -4
  322. package/dist/esm/index.web80.js +30 -100
  323. package/dist/esm/index.web81.js +78 -6
  324. package/dist/esm/index.web82.js +2 -3
  325. package/dist/esm/index.web83.js +2 -15
  326. package/dist/esm/index.web84.js +8 -30
  327. package/dist/esm/index.web85.js +33 -74
  328. package/dist/esm/index.web86.js +7 -2
  329. package/dist/esm/index.web87.js +35 -2
  330. package/dist/esm/index.web88.js +8 -12
  331. package/dist/esm/index.web89.js +9 -36
  332. package/dist/esm/index.web9.js +4 -4
  333. package/dist/esm/index.web90.js +11 -6
  334. package/dist/esm/index.web91.js +12 -33
  335. package/dist/esm/index.web92.js +18 -8
  336. package/dist/esm/index.web93.js +5 -10
  337. package/dist/esm/index.web94.js +5 -12
  338. package/dist/esm/index.web95.js +10 -13
  339. package/dist/esm/index.web96.js +2 -19
  340. package/dist/esm/index.web97.js +376 -5
  341. package/dist/esm/index.web98.js +29 -5
  342. package/dist/esm/index.web99.js +28 -10
  343. package/dist/native/index.native.js +46 -42
  344. package/dist/native/index.native10.js +4 -4
  345. package/dist/native/index.native100.js +364 -10
  346. package/dist/native/index.native101.js +2 -55
  347. package/dist/native/index.native102.js +28 -10
  348. package/dist/native/index.native103.js +29 -2
  349. package/dist/native/index.native104.js +54 -44
  350. package/dist/native/index.native105.js +10 -13
  351. package/dist/native/index.native106.js +2 -5
  352. package/dist/native/index.native107.js +45 -2
  353. package/dist/native/index.native108.js +13 -4
  354. package/dist/native/index.native109.js +2 -19
  355. package/dist/native/index.native11.js +7 -17
  356. package/dist/native/index.native110.js +20 -7
  357. package/dist/native/index.native111.js +5 -4
  358. package/dist/native/index.native112.js +44 -16
  359. package/dist/native/index.native113.js +19 -8
  360. package/dist/native/index.native114.js +79 -7
  361. package/dist/native/index.native115.js +101 -69
  362. package/dist/native/index.native116.js +30 -16
  363. package/dist/native/index.native117.js +6 -3
  364. package/dist/native/index.native118.js +4 -4
  365. package/dist/native/index.native119.js +78 -4
  366. package/dist/native/index.native12.js +24 -16
  367. package/dist/native/index.native120.js +3 -4
  368. package/dist/native/index.native121.js +18 -17
  369. package/dist/native/index.native122.js +10 -53
  370. package/dist/native/index.native123.js +20 -18
  371. package/dist/native/index.native124.js +93 -20
  372. package/dist/native/index.native125.js +21 -9
  373. package/dist/native/index.native126.js +117 -30
  374. package/dist/native/index.native127.js +4 -7
  375. package/dist/native/index.native128.js +11 -13
  376. package/dist/native/index.native129.js +7 -20
  377. package/dist/native/index.native13.js +15 -15
  378. package/dist/native/index.native130.js +4 -5
  379. package/dist/native/index.native131.js +16 -44
  380. package/dist/native/index.native132.js +8 -19
  381. package/dist/native/index.native133.js +7 -79
  382. package/dist/native/index.native134.js +69 -101
  383. package/dist/native/index.native135.js +16 -30
  384. package/dist/native/index.native136.js +3 -6
  385. package/dist/native/index.native137.js +4 -78
  386. package/dist/native/index.native138.js +4 -3
  387. package/dist/native/index.native139.js +4 -20
  388. package/dist/native/index.native14.js +15 -15
  389. package/dist/native/index.native140.js +20 -10
  390. package/dist/native/index.native141.js +52 -19
  391. package/dist/native/index.native142.js +18 -94
  392. package/dist/native/index.native143.js +20 -20
  393. package/dist/native/index.native144.js +9 -118
  394. package/dist/native/index.native145.js +31 -2
  395. package/dist/native/index.native146.js +7 -108
  396. package/dist/native/index.native147.js +21 -2
  397. package/dist/native/index.native148.js +7 -46
  398. package/dist/native/index.native149.js +2 -8
  399. package/dist/native/index.native15.js +15 -15
  400. package/dist/native/index.native150.js +378 -2
  401. package/dist/native/index.native151.js +809 -354
  402. package/dist/native/index.native152.js +38 -832
  403. package/dist/native/index.native153.js +2 -39
  404. package/dist/native/index.native154.js +70 -2
  405. package/dist/native/index.native155.js +31 -66
  406. package/dist/native/index.native156.js +19 -33
  407. package/dist/native/index.native157.js +5 -21
  408. package/dist/native/index.native158.js +2 -5
  409. package/dist/native/index.native159.js +108 -17
  410. package/dist/native/index.native16.js +16 -226
  411. package/dist/native/index.native160.js +2 -28
  412. package/dist/native/index.native161.js +18 -8
  413. package/dist/native/index.native162.js +26 -9
  414. package/dist/native/index.native163.js +8 -13
  415. package/dist/native/index.native164.js +11 -10
  416. package/dist/native/index.native165.js +11 -15
  417. package/dist/native/index.native166.js +9 -80
  418. package/dist/native/index.native167.js +16 -14
  419. package/dist/native/index.native168.js +81 -2
  420. package/dist/native/index.native169.js +47 -2
  421. package/dist/native/index.native17.js +16 -18
  422. package/dist/native/index.native170.js +15 -2
  423. package/dist/native/index.native171.js +2 -79
  424. package/dist/native/index.native172.js +4 -0
  425. package/dist/native/index.native173.js +4 -0
  426. package/dist/native/index.native174.js +81 -0
  427. package/dist/native/index.native18.js +225 -115
  428. package/dist/native/index.native19.js +14 -28
  429. package/dist/native/index.native2.js +2 -2
  430. package/dist/native/index.native20.js +116 -46
  431. package/dist/native/index.native21.js +21 -137
  432. package/dist/native/index.native22.js +47 -31
  433. package/dist/native/index.native23.js +146 -25
  434. package/dist/native/index.native24.js +32 -3
  435. package/dist/native/index.native25.js +28 -58
  436. package/dist/native/index.native26.js +5 -2
  437. package/dist/native/index.native27.js +57 -8
  438. package/dist/native/index.native28.js +2 -59
  439. package/dist/native/index.native29.js +6 -85
  440. package/dist/native/index.native3.js +1 -1
  441. package/dist/native/index.native30.js +65 -16
  442. package/dist/native/index.native31.js +85 -15
  443. package/dist/native/index.native32.js +15 -126
  444. package/dist/native/index.native33.js +15 -58
  445. package/dist/native/index.native34.js +124 -12
  446. package/dist/native/index.native35.js +61 -42
  447. package/dist/native/index.native36.js +13 -151
  448. package/dist/native/index.native37.js +42 -44
  449. package/dist/native/index.native38.js +151 -39
  450. package/dist/native/index.native39.js +42 -47
  451. package/dist/native/index.native40.js +29 -69
  452. package/dist/native/index.native41.js +40 -25
  453. package/dist/native/index.native42.js +47 -158
  454. package/dist/native/index.native43.js +71 -46
  455. package/dist/native/index.native44.js +26 -18
  456. package/dist/native/index.native45.js +155 -68
  457. package/dist/native/index.native46.js +44 -947
  458. package/dist/native/index.native47.js +20 -2
  459. package/dist/native/index.native48.js +72 -49
  460. package/dist/native/index.native49.js +950 -27
  461. package/dist/native/index.native50.js +2 -2
  462. package/dist/native/index.native51.js +49 -376
  463. package/dist/native/index.native52.js +27 -28
  464. package/dist/native/index.native53.js +16 -28
  465. package/dist/native/index.native54.js +21 -15
  466. package/dist/native/index.native55.js +49 -21
  467. package/dist/native/index.native56.js +2 -51
  468. package/dist/native/index.native57.js +4 -2
  469. package/dist/native/index.native58.js +16 -64
  470. package/dist/native/index.native59.js +45 -364
  471. package/dist/native/index.native60.js +14 -2
  472. package/dist/native/index.native61.js +56 -2
  473. package/dist/native/index.native62.js +6 -17
  474. package/dist/native/index.native63.js +20 -44
  475. package/dist/native/index.native64.js +11 -13
  476. package/dist/native/index.native65.js +3 -55
  477. package/dist/native/index.native66.js +3 -6
  478. package/dist/native/index.native67.js +33 -20
  479. package/dist/native/index.native68.js +12 -11
  480. package/dist/native/index.native69.js +4 -3
  481. package/dist/native/index.native7.js +17 -17
  482. package/dist/native/index.native70.js +28 -3
  483. package/dist/native/index.native71.js +6 -34
  484. package/dist/native/index.native72.js +41 -11
  485. package/dist/native/index.native73.js +55 -4
  486. package/dist/native/index.native74.js +127 -28
  487. package/dist/native/index.native75.js +23 -6
  488. package/dist/native/index.native76.js +11 -41
  489. package/dist/native/index.native77.js +102 -53
  490. package/dist/native/index.native78.js +6 -127
  491. package/dist/native/index.native79.js +3 -24
  492. package/dist/native/index.native8.js +5 -5
  493. package/dist/native/index.native80.js +14 -12
  494. package/dist/native/index.native81.js +30 -100
  495. package/dist/native/index.native82.js +78 -6
  496. package/dist/native/index.native83.js +2 -3
  497. package/dist/native/index.native84.js +2 -15
  498. package/dist/native/index.native85.js +8 -30
  499. package/dist/native/index.native86.js +33 -74
  500. package/dist/native/index.native87.js +7 -2
  501. package/dist/native/index.native88.js +35 -2
  502. package/dist/native/index.native89.js +8 -12
  503. package/dist/native/index.native9.js +4 -4
  504. package/dist/native/index.native90.js +9 -36
  505. package/dist/native/index.native91.js +11 -6
  506. package/dist/native/index.native92.js +12 -33
  507. package/dist/native/index.native93.js +18 -8
  508. package/dist/native/index.native94.js +5 -10
  509. package/dist/native/index.native95.js +5 -12
  510. package/dist/native/index.native96.js +10 -13
  511. package/dist/native/index.native97.js +376 -18
  512. package/dist/native/index.native98.js +2 -8
  513. package/dist/native/index.native99.js +66 -5
  514. package/dist/native-types/actions/fetchWithX402.d.ts +13 -0
  515. package/dist/native-types/actions/getCurrentUserSync.d.ts +2 -0
  516. package/dist/native-types/auth/authManager.d.ts +1 -1
  517. package/dist/native-types/auth/customAuthManager.d.ts +1 -0
  518. package/dist/native-types/auth/types.d.ts +1 -1
  519. package/dist/native-types/index.d.ts +2 -0
  520. package/dist/native-types/index.native.d.ts +2 -0
  521. package/dist/native-types/index.web.d.ts +2 -0
  522. package/dist/native-types/mocks/mockAuthManager.d.ts +1 -1
  523. package/dist/native-types/solana-kit/toTransactionSigner.d.ts +2 -0
  524. package/dist/native-types/viem/toViemAccount.d.ts +1 -1
  525. package/dist/types/actions/fetchWithX402.d.ts +13 -0
  526. package/dist/types/actions/getCurrentUserSync.d.ts +2 -0
  527. package/dist/types/auth/authManager.d.ts +1 -1
  528. package/dist/types/auth/customAuthManager.d.ts +1 -0
  529. package/dist/types/auth/types.d.ts +1 -1
  530. package/dist/types/index.d.ts +2 -0
  531. package/dist/types/index.native.d.ts +2 -0
  532. package/dist/types/index.web.d.ts +2 -0
  533. package/dist/types/mocks/mockAuthManager.d.ts +1 -1
  534. package/dist/types/solana-kit/toTransactionSigner.d.ts +2 -0
  535. package/dist/types/viem/toViemAccount.d.ts +1 -1
  536. package/dist/web/index.web.js +46 -42
  537. package/dist/web/index.web10.js +7 -17
  538. package/dist/web/index.web100.js +2 -57
  539. package/dist/web/index.web101.js +65 -10
  540. package/dist/web/index.web102.js +365 -2
  541. package/dist/web/index.web103.js +54 -44
  542. package/dist/web/index.web104.js +10 -13
  543. package/dist/web/index.web105.js +2 -5
  544. package/dist/web/index.web106.js +45 -2
  545. package/dist/web/index.web107.js +13 -4
  546. package/dist/web/index.web108.js +2 -19
  547. package/dist/web/index.web109.js +20 -7
  548. package/dist/web/index.web11.js +24 -16
  549. package/dist/web/index.web110.js +5 -4
  550. package/dist/web/index.web111.js +44 -16
  551. package/dist/web/index.web112.js +19 -8
  552. package/dist/web/index.web113.js +79 -7
  553. package/dist/web/index.web114.js +101 -69
  554. package/dist/web/index.web115.js +30 -16
  555. package/dist/web/index.web116.js +6 -3
  556. package/dist/web/index.web117.js +4 -4
  557. package/dist/web/index.web118.js +20 -4
  558. package/dist/web/index.web119.js +10 -5
  559. package/dist/web/index.web12.js +15 -15
  560. package/dist/web/index.web120.js +19 -19
  561. package/dist/web/index.web121.js +92 -51
  562. package/dist/web/index.web122.js +21 -18
  563. package/dist/web/index.web123.js +117 -20
  564. package/dist/web/index.web124.js +78 -8
  565. package/dist/web/index.web125.js +4 -30
  566. package/dist/web/index.web126.js +18 -7
  567. package/dist/web/index.web127.js +7 -20
  568. package/dist/web/index.web128.js +3 -20
  569. package/dist/web/index.web129.js +20 -5
  570. package/dist/web/index.web13.js +15 -15
  571. package/dist/web/index.web130.js +8 -47
  572. package/dist/web/index.web131.js +7 -19
  573. package/dist/web/index.web132.js +69 -77
  574. package/dist/web/index.web133.js +17 -102
  575. package/dist/web/index.web134.js +3 -6
  576. package/dist/web/index.web135.js +4 -32
  577. package/dist/web/index.web136.js +4 -78
  578. package/dist/web/index.web137.js +4 -20
  579. package/dist/web/index.web138.js +20 -10
  580. package/dist/web/index.web139.js +52 -19
  581. package/dist/web/index.web14.js +15 -15
  582. package/dist/web/index.web140.js +18 -94
  583. package/dist/web/index.web141.js +20 -20
  584. package/dist/web/index.web142.js +9 -118
  585. package/dist/web/index.web143.js +30 -3
  586. package/dist/web/index.web144.js +8 -2
  587. package/dist/web/index.web145.js +20 -108
  588. package/dist/web/index.web146.js +4 -2
  589. package/dist/web/index.web147.js +7 -46
  590. package/dist/web/index.web148.js +2 -8
  591. package/dist/web/index.web149.js +378 -2
  592. package/dist/web/index.web15.js +16 -226
  593. package/dist/web/index.web150.js +809 -354
  594. package/dist/web/index.web151.js +38 -832
  595. package/dist/web/index.web152.js +2 -39
  596. package/dist/web/index.web153.js +70 -2
  597. package/dist/web/index.web154.js +31 -66
  598. package/dist/web/index.web155.js +19 -33
  599. package/dist/web/index.web156.js +5 -21
  600. package/dist/web/index.web157.js +2 -5
  601. package/dist/web/index.web158.js +108 -17
  602. package/dist/web/index.web159.js +2 -28
  603. package/dist/web/index.web16.js +16 -18
  604. package/dist/web/index.web160.js +18 -8
  605. package/dist/web/index.web161.js +26 -9
  606. package/dist/web/index.web162.js +8 -13
  607. package/dist/web/index.web163.js +11 -10
  608. package/dist/web/index.web164.js +11 -15
  609. package/dist/web/index.web165.js +9 -80
  610. package/dist/web/index.web166.js +16 -14
  611. package/dist/web/index.web167.js +81 -2
  612. package/dist/web/index.web168.js +47 -2
  613. package/dist/web/index.web169.js +15 -2
  614. package/dist/web/index.web17.js +225 -115
  615. package/dist/web/index.web170.js +2 -79
  616. package/dist/web/index.web171.js +4 -0
  617. package/dist/web/index.web172.js +4 -0
  618. package/dist/web/index.web173.js +81 -0
  619. package/dist/web/index.web18.js +14 -28
  620. package/dist/web/index.web19.js +116 -46
  621. package/dist/web/index.web20.js +21 -137
  622. package/dist/web/index.web21.js +47 -31
  623. package/dist/web/index.web22.js +149 -3
  624. package/dist/web/index.web23.js +30 -56
  625. package/dist/web/index.web24.js +5 -2
  626. package/dist/web/index.web25.js +57 -8
  627. package/dist/web/index.web26.js +2 -59
  628. package/dist/web/index.web27.js +6 -85
  629. package/dist/web/index.web28.js +65 -16
  630. package/dist/web/index.web29.js +85 -15
  631. package/dist/web/index.web3.js +1 -1
  632. package/dist/web/index.web30.js +15 -126
  633. package/dist/web/index.web31.js +15 -58
  634. package/dist/web/index.web32.js +124 -12
  635. package/dist/web/index.web33.js +61 -42
  636. package/dist/web/index.web34.js +12 -25
  637. package/dist/web/index.web35.js +42 -153
  638. package/dist/web/index.web36.js +26 -42
  639. package/dist/web/index.web37.js +151 -39
  640. package/dist/web/index.web38.js +42 -47
  641. package/dist/web/index.web39.js +29 -69
  642. package/dist/web/index.web40.js +40 -25
  643. package/dist/web/index.web41.js +47 -158
  644. package/dist/web/index.web42.js +71 -46
  645. package/dist/web/index.web43.js +26 -18
  646. package/dist/web/index.web44.js +155 -68
  647. package/dist/web/index.web45.js +44 -947
  648. package/dist/web/index.web46.js +20 -2
  649. package/dist/web/index.web47.js +72 -49
  650. package/dist/web/index.web48.js +950 -27
  651. package/dist/web/index.web49.js +2 -2
  652. package/dist/web/index.web50.js +49 -376
  653. package/dist/web/index.web51.js +27 -28
  654. package/dist/web/index.web52.js +16 -28
  655. package/dist/web/index.web53.js +21 -15
  656. package/dist/web/index.web54.js +49 -21
  657. package/dist/web/index.web55.js +2 -51
  658. package/dist/web/index.web56.js +4 -2
  659. package/dist/web/index.web57.js +16 -64
  660. package/dist/web/index.web58.js +45 -364
  661. package/dist/web/index.web59.js +14 -2
  662. package/dist/web/index.web6.js +17 -17
  663. package/dist/web/index.web60.js +56 -2
  664. package/dist/web/index.web61.js +6 -17
  665. package/dist/web/index.web62.js +20 -44
  666. package/dist/web/index.web63.js +11 -13
  667. package/dist/web/index.web64.js +3 -55
  668. package/dist/web/index.web65.js +3 -6
  669. package/dist/web/index.web66.js +33 -20
  670. package/dist/web/index.web67.js +12 -11
  671. package/dist/web/index.web68.js +4 -3
  672. package/dist/web/index.web69.js +28 -3
  673. package/dist/web/index.web7.js +5 -5
  674. package/dist/web/index.web70.js +6 -34
  675. package/dist/web/index.web71.js +41 -11
  676. package/dist/web/index.web72.js +55 -4
  677. package/dist/web/index.web73.js +127 -28
  678. package/dist/web/index.web74.js +23 -6
  679. package/dist/web/index.web75.js +11 -41
  680. package/dist/web/index.web76.js +102 -53
  681. package/dist/web/index.web77.js +6 -127
  682. package/dist/web/index.web78.js +3 -24
  683. package/dist/web/index.web79.js +14 -12
  684. package/dist/web/index.web8.js +4 -4
  685. package/dist/web/index.web80.js +30 -100
  686. package/dist/web/index.web81.js +78 -6
  687. package/dist/web/index.web82.js +2 -3
  688. package/dist/web/index.web83.js +2 -15
  689. package/dist/web/index.web84.js +8 -30
  690. package/dist/web/index.web85.js +33 -74
  691. package/dist/web/index.web86.js +7 -2
  692. package/dist/web/index.web87.js +35 -2
  693. package/dist/web/index.web88.js +8 -12
  694. package/dist/web/index.web89.js +9 -36
  695. package/dist/web/index.web9.js +4 -4
  696. package/dist/web/index.web90.js +11 -6
  697. package/dist/web/index.web91.js +12 -33
  698. package/dist/web/index.web92.js +18 -8
  699. package/dist/web/index.web93.js +5 -10
  700. package/dist/web/index.web94.js +5 -12
  701. package/dist/web/index.web95.js +10 -13
  702. package/dist/web/index.web96.js +2 -19
  703. package/dist/web/index.web97.js +376 -5
  704. package/dist/web/index.web98.js +29 -5
  705. package/dist/web/index.web99.js +28 -10
  706. package/dist/web-types/actions/fetchWithX402.d.ts +13 -0
  707. package/dist/web-types/actions/getCurrentUserSync.d.ts +2 -0
  708. package/dist/web-types/auth/authManager.d.ts +1 -1
  709. package/dist/web-types/auth/customAuthManager.d.ts +1 -0
  710. package/dist/web-types/auth/types.d.ts +1 -1
  711. package/dist/web-types/index.d.ts +2 -0
  712. package/dist/web-types/index.native.d.ts +2 -0
  713. package/dist/web-types/index.web.d.ts +2 -0
  714. package/dist/web-types/mocks/mockAuthManager.d.ts +1 -1
  715. package/dist/web-types/solana-kit/toTransactionSigner.d.ts +2 -0
  716. package/dist/web-types/viem/toViemAccount.d.ts +1 -1
  717. package/package.json +10 -5
@@ -1,106 +1,74 @@
1
- import { HashMD as D, SHA256_IV as b, Chi as g, Maj as p } from "./index.native137.js";
2
- import { createHasher as u, clean as C, rotr as i } from "./index.native133.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;
1
+ import { createWalletClient as u } from "viem";
2
+ import { sendEvmTransaction as l, signEvmTransaction as w } from "./index.native7.js";
3
+ import { isChainIdSupportedForCDPSends as v, sendTransactionChainIdToNameMapping as T } from "./index.native37.js";
4
+ import { RPCRequestError as t, STANDARD_ERROR_CODES as i, validateUserOwnsEOA as P } from "./index.native23.js";
5
+ async function E(e, d, m) {
6
+ const [a] = e;
7
+ if (!a || typeof a != "object")
8
+ throw new t(
9
+ i.rpc.invalidParams,
10
+ "Transaction parameter must be an object"
11
+ );
12
+ if (!a.to)
13
+ throw new t(
14
+ i.rpc.invalidParams,
15
+ "Transaction must include 'to' field"
16
+ );
17
+ await P(a.from);
18
+ const o = d.getState(), r = a.chainId ? Number(a.chainId) : o.chainId;
19
+ if (v(r))
20
+ try {
21
+ const { transactionHash: n } = await l({
22
+ evmAccount: a.from,
23
+ transaction: { ...c(a), chainId: r },
24
+ network: T[r]
25
+ });
26
+ return n;
27
+ } catch (n) {
28
+ throw new t(
29
+ i.rpc.transactionRejected,
30
+ n instanceof Error ? n.message : "Transaction failed"
31
+ );
87
32
  }
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;
33
+ else
34
+ try {
35
+ const n = u({
36
+ // Safe as we check before calling this handler that chainId is configured
37
+ chain: o.chains.find((s) => s.id === r),
38
+ transport: m[r],
39
+ account: a.from
40
+ }), p = o.chains.find((s) => s.id === r), h = await n.prepareTransactionRequest({
41
+ ...c(a),
42
+ chain: p
43
+ }), { signedTransaction: f } = await w({
44
+ evmAccount: a.from,
45
+ transaction: {
46
+ ...h,
47
+ type: "eip1559"
48
+ }
49
+ });
50
+ return await n.sendRawTransaction({
51
+ serializedTransaction: f
52
+ });
53
+ } catch (n) {
54
+ throw new t(
55
+ i.rpc.transactionRejected,
56
+ n instanceof Error ? n.message : "Transaction failed"
57
+ );
92
58
  }
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
- }
101
59
  }
102
- const y = /* @__PURE__ */ u(() => new E());
60
+ function c(e) {
61
+ return {
62
+ to: e.to,
63
+ data: e.data,
64
+ value: e.value ? BigInt(e.value) : void 0,
65
+ nonce: e.nonce ? Number(e.nonce) : void 0,
66
+ gas: e.gas ? BigInt(e.gas) : void 0,
67
+ maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
68
+ maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
69
+ type: "eip1559"
70
+ };
71
+ }
103
72
  export {
104
- E as SHA256,
105
- y as sha256
73
+ E as handleSendTransaction
106
74
  };
@@ -1,35 +1,21 @@
1
- import { maxBytesPerTransaction as y, bytesPerBlob as a, fieldElementsPerBlob as f, bytesPerFieldElement as p } from "./index.native158.js";
2
- import { EmptyBlobError as c, BlobSizeTooLargeError as h } from "./index.native90.js";
3
- import { createCursor as B } from "./index.native78.js";
4
- import { size as u } from "./index.native73.js";
5
- import { hexToBytes as x } from "./index.native65.js";
6
- import { bytesToHex as d } from "./index.native63.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
1
+ import { signEvmTypedData as n } from "./index.native7.js";
2
+ import { validateUserOwnsEOA as o, EIP1193ProviderError as i, STANDARD_ERROR_CODES as s } from "./index.native23.js";
3
+ async function p(t) {
4
+ const [r, a] = t;
5
+ await o(r);
6
+ try {
7
+ const { signature: e } = await n({
8
+ evmAccount: r,
9
+ typedData: JSON.parse(a)
15
10
  });
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);
11
+ return e;
12
+ } catch (e) {
13
+ throw new i(
14
+ s.provider.userRejectedRequest,
15
+ e instanceof Error ? e.message : "Signing failed"
16
+ );
30
17
  }
31
- return m === "bytes" ? s.map((t) => t.bytes) : s.map((t) => d(t.bytes));
32
18
  }
33
19
  export {
34
- S as toBlobs
20
+ p as handleSignTypedData
35
21
  };
@@ -1,9 +1,6 @@
1
- import { bytesToHex as i } from "./index.native63.js";
2
- import { sha256 as m } from "./index.native82.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
+ async function a(n) {
2
+ return `0x${n.getState().chainId.toString(16)}`;
6
3
  }
7
4
  export {
8
- f as commitmentToVersionedHash
5
+ a as handleChainId
9
6
  };
@@ -1,81 +1,7 @@
1
- import { Hash as g, createView as l, aexists as b, toBytes as a, abytes as d, aoutput as x, clean as w } from "./index.native133.js";
2
- function y(o, t, s, n) {
3
- if (typeof o.setBigUint64 == "function")
4
- return o.setBigUint64(t, s, n);
5
- const i = BigInt(32), h = BigInt(4294967295), e = Number(s >> i & h), r = Number(s & h), c = n ? 4 : 0, u = n ? 0 : 4;
6
- o.setUint32(t + c, e, n), o.setUint32(t + u, r, n);
1
+ import { getCurrentUser as t, signOut as n } from "./index.native7.js";
2
+ async function i() {
3
+ await t() && await n();
7
4
  }
8
- function U(o, t, s) {
9
- return o & t ^ ~o & s;
10
- }
11
- function _(o, t, s) {
12
- return o & t ^ o & s ^ t & s;
13
- }
14
- class m extends g {
15
- constructor(t, s, n, i) {
16
- super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = s, this.padOffset = n, this.isLE = i, this.buffer = new Uint8Array(t), this.view = l(this.buffer);
17
- }
18
- update(t) {
19
- b(this), t = a(t), d(t);
20
- const { view: s, buffer: n, blockLen: i } = this, h = t.length;
21
- for (let e = 0; e < h; ) {
22
- const r = Math.min(i - this.pos, h - e);
23
- if (r === i) {
24
- const c = l(t);
25
- for (; i <= h - e; e += i)
26
- this.process(c, e);
27
- continue;
28
- }
29
- n.set(t.subarray(e, e + r), this.pos), this.pos += r, e += r, this.pos === i && (this.process(s, 0), this.pos = 0);
30
- }
31
- return this.length += t.length, this.roundClean(), this;
32
- }
33
- digestInto(t) {
34
- b(this), x(t, this), this.finished = !0;
35
- const { buffer: s, view: n, blockLen: i, isLE: h } = this;
36
- let { pos: e } = this;
37
- s[e++] = 128, w(this.buffer.subarray(e)), this.padOffset > i - e && (this.process(n, 0), e = 0);
38
- for (let f = e; f < i; f++)
39
- s[f] = 0;
40
- y(n, i - 8, BigInt(this.length * 8), h), this.process(n, 0);
41
- const r = l(t), c = this.outputLen;
42
- if (c % 4)
43
- throw new Error("_sha2: outputLen should be aligned to 32bit");
44
- const u = c / 4, p = this.get();
45
- if (u > p.length)
46
- throw new Error("_sha2: outputLen bigger than state");
47
- for (let f = 0; f < u; f++)
48
- r.setUint32(4 * f, p[f], h);
49
- }
50
- digest() {
51
- const { buffer: t, outputLen: s } = this;
52
- this.digestInto(t);
53
- const n = t.slice(0, s);
54
- return this.destroy(), n;
55
- }
56
- _cloneInto(t) {
57
- t || (t = new this.constructor()), t.set(...this.get());
58
- const { blockLen: s, buffer: n, length: i, finished: h, destroyed: e, pos: r } = this;
59
- return t.destroyed = e, t.finished = h, t.length = i, t.pos = r, i % s && t.buffer.set(n), t;
60
- }
61
- clone() {
62
- return this._cloneInto();
63
- }
64
- }
65
- const B = /* @__PURE__ */ Uint32Array.from([
66
- 1779033703,
67
- 3144134277,
68
- 1013904242,
69
- 2773480762,
70
- 1359893119,
71
- 2600822924,
72
- 528734635,
73
- 1541459225
74
- ]);
75
5
  export {
76
- U as Chi,
77
- m as HashMD,
78
- _ as Maj,
79
- B as SHA256_IV,
80
- y as setBigUint64
6
+ i as handleDisconnect
81
7
  };
@@ -1,6 +1,7 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ function a(t, e) {
2
+ const n = Number.parseInt(t[0].chainId, 16);
3
+ e.getState().setChainId(n);
3
4
  }
4
5
  export {
5
- e as getDefaultExportFromCjs
6
+ a as handleSwitchEthereumChain
6
7
  };
@@ -1,23 +1,7 @@
1
- import { encoder as t, decoder as o } from "./index.native102.js";
2
- import { encodeBase64 as c, decodeBase64 as a } from "./index.native159.js";
3
- function i(r) {
4
- if (Uint8Array.fromBase64)
5
- return Uint8Array.fromBase64(typeof r == "string" ? r : o.decode(r), {
6
- alphabet: "base64url"
7
- });
8
- let e = r;
9
- e instanceof Uint8Array && (e = o.decode(e)), e = e.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
10
- try {
11
- return a(e);
12
- } catch {
13
- throw new TypeError("The input to be decoded is not correctly encoded.");
14
- }
15
- }
16
- function p(r) {
17
- let e = r;
18
- return typeof e == "string" && (e = t.encode(e)), Uint8Array.prototype.toBase64 ? e.toBase64({ alphabet: "base64url", omitPadding: !0 }) : c(e).replace(/=/g, "").replace(/\+/g, "-").replace(/\//g, "_");
1
+ import { getCurrentUser as r } from "./index.native7.js";
2
+ async function n() {
3
+ return (await r())?.evmSmartAccounts || [];
19
4
  }
20
5
  export {
21
- i as decode,
22
- p as encode
6
+ n as handleAccounts
23
7
  };
@@ -1,19 +1,19 @@
1
- import { initiateAuthentication as e } from "@coinbase/cdp-api-client";
2
- import { Analytics as o } from "./index.native25.js";
3
- import "./index.native26.js";
4
- import { getPlatformOAuth as n } from "./index.native6.js";
5
- import { getCoreAuthManager as r, getConfig as a } from "./index.native23.js";
6
- async function g(t) {
7
- if (o.sendActionCallEvent({ name: "link_oauth" }), !await r().isSignedIn())
8
- throw new Error("User must be signed in to link an OAuth account");
9
- const i = await e(a().projectId, {
10
- type: t,
11
- redirectUrl: n().getRedirectUrl()
1
+ import { initiateAuthentication as i } from "@coinbase/cdp-api-client";
2
+ import { Analytics as t } from "./index.native27.js";
3
+ import "./index.native28.js";
4
+ import { getCoreAuthManager as s, getConfig as o } from "./index.native25.js";
5
+ async function c(e) {
6
+ if (t.sendActionCallEvent({ name: "link_sms" }), !await s().isSignedIn())
7
+ throw new Error("User must be signed in to link a phone number");
8
+ const n = await i(o().projectId, {
9
+ phoneNumber: e,
10
+ type: "sms"
12
11
  });
13
- if (!("authUrl" in i))
14
- throw new Error(`Failed to initiate ${t} authentication`);
15
- n().initiateOAuthFlow(i.authUrl);
12
+ return {
13
+ flowId: n.flowId,
14
+ message: "message" in n ? n.message : ""
15
+ };
16
16
  }
17
17
  export {
18
- g as linkOAuth
18
+ c as linkSms
19
19
  };
@@ -1,12 +1,22 @@
1
- import n from "./index.native160.js";
2
- import s from "./index.native161.js";
3
- import a from "./index.native162.js";
4
- const y = async (t, o, e) => {
5
- const r = await a(t, o, "sign");
6
- s(t, r);
7
- const i = await crypto.subtle.sign(n(t, r.algorithm), r, e);
8
- return new Uint8Array(i);
9
- };
1
+ import { signAndWrapTypedDataForSmartAccount as s } from "./index.native43.js";
2
+ import { validateUserOwnsSmartAccount as c, EIP1193ProviderError as i, STANDARD_ERROR_CODES as d } from "./index.native23.js";
3
+ async function h(e, n) {
4
+ const [a, t] = e, o = await c(t);
5
+ try {
6
+ const { signature: r } = await s({
7
+ smartAccount: t,
8
+ ownerAddress: o.evmAccounts[0],
9
+ hash: a,
10
+ chainId: n.getState().chainId
11
+ });
12
+ return r;
13
+ } catch (r) {
14
+ throw new i(
15
+ d.provider.userRejectedRequest,
16
+ r instanceof Error ? r.message : "Signing failed"
17
+ );
18
+ }
19
+ }
10
20
  export {
11
- y as default
21
+ h as handleEthSign
12
22
  };
@@ -1,22 +1,55 @@
1
- const a = (...o) => {
2
- const t = o.filter(Boolean);
3
- if (t.length === 0 || t.length === 1)
4
- return !0;
5
- let e;
6
- for (const s of t) {
7
- const r = Object.keys(s);
8
- if (!e || e.size === 0) {
9
- e = new Set(r);
10
- continue;
11
- }
12
- for (const n of r) {
13
- if (e.has(n))
14
- return !1;
15
- e.add(n);
16
- }
1
+ import { getUserOperation as u } from "./index.native7.js";
2
+ import { isChainIdSupportedForCDPUserOps as p, userOperationChainIdToNameMapping as r, userOperationNameToChainIdMapping as m } from "./index.native37.js";
3
+ import { validateUserHasEvmSmartAccount as d, RPCRequestError as o, STANDARD_ERROR_CODES as n } from "./index.native23.js";
4
+ async function I(t, s) {
5
+ const i = t[0], c = (await d()).evmSmartAccounts?.[0], a = s.getState().chainId;
6
+ if (!p(a) || !r[a])
7
+ throw new o(
8
+ n.rpc.invalidParams,
9
+ "Chain ID is not supported for user operations"
10
+ );
11
+ try {
12
+ const e = await u({
13
+ userOperationHash: i,
14
+ evmSmartAccount: c,
15
+ network: r[a]
16
+ });
17
+ return l(e);
18
+ } catch (e) {
19
+ throw console.log("Failed to get user operation status", e), new o(
20
+ n.rpc.internal,
21
+ "Failed to get user operation status"
22
+ );
17
23
  }
18
- return !0;
19
- };
24
+ }
25
+ function l(t) {
26
+ return {
27
+ atomic: !0,
28
+ chainId: m[t.network] ?? 0,
29
+ receipts: t.receipts?.map((s) => ({
30
+ transactionHash: s.transactionHash,
31
+ blockHash: s.blockHash,
32
+ blockNumber: BigInt(s.blockNumber ?? 0),
33
+ gasUsed: BigInt(s.gasUsed ?? 0),
34
+ logs: [],
35
+ status: ""
36
+ })),
37
+ id: t.userOpHash,
38
+ status: h(t.status),
39
+ version: "1"
40
+ };
41
+ }
42
+ function h(t) {
43
+ switch (t) {
44
+ case "dropped":
45
+ case "failed":
46
+ return 400;
47
+ case "complete":
48
+ return 200;
49
+ default:
50
+ return 100;
51
+ }
52
+ }
20
53
  export {
21
- a as default
54
+ I as handleGetCallsStatus
22
55
  };
@@ -1,96 +1,20 @@
1
- import { withAlg as n } from "./index.native163.js";
2
- import c from "./index.native164.js";
3
- import { isJWK as p, isSecretJWK as a, isPublicJWK as y, isPrivateJWK as f } from "./index.native165.js";
4
- const s = (r) => r?.[Symbol.toStringTag], o = (r, e, t) => {
5
- if (e.use !== void 0) {
6
- let i;
7
- switch (t) {
8
- case "sign":
9
- case "verify":
10
- i = "sig";
11
- break;
12
- case "encrypt":
13
- case "decrypt":
14
- i = "enc";
15
- break;
16
- }
17
- if (e.use !== i)
18
- throw new TypeError(`Invalid key for this operation, its "use" must be "${i}" when present`);
19
- }
20
- if (e.alg !== void 0 && e.alg !== r)
21
- throw new TypeError(`Invalid key for this operation, its "alg" must be "${r}" when present`);
22
- if (Array.isArray(e.key_ops)) {
23
- let i;
24
- switch (!0) {
25
- case t === "sign":
26
- case r === "dir":
27
- case r.includes("CBC-HS"):
28
- i = t;
29
- break;
30
- case r.startsWith("PBES2"):
31
- i = "deriveBits";
32
- break;
33
- case /^A\d{3}(?:GCM)?(?:KW)?$/.test(r):
34
- !r.includes("GCM") && r.endsWith("KW") ? i = "unwrapKey" : i = t;
35
- break;
36
- case t === "encrypt":
37
- i = "wrapKey";
38
- break;
39
- case t === "decrypt":
40
- i = r.startsWith("RSA") ? "unwrapKey" : "deriveBits";
41
- break;
42
- }
43
- if (i && e.key_ops?.includes?.(i) === !1)
44
- throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${i}" when present`);
45
- }
46
- return !0;
47
- }, h = (r, e, t) => {
48
- if (!(e instanceof Uint8Array)) {
49
- if (p(e)) {
50
- if (a(e) && o(r, e, t))
51
- return;
52
- throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
53
- }
54
- if (!c(e))
55
- throw new TypeError(n(r, e, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
56
- if (e.type !== "secret")
57
- throw new TypeError(`${s(e)} instances for symmetric algorithms must be of type "secret"`);
58
- }
59
- }, m = (r, e, t) => {
60
- if (p(e))
61
- switch (t) {
62
- case "decrypt":
63
- case "sign":
64
- if (f(e) && o(r, e, t))
65
- return;
66
- throw new TypeError("JSON Web Key for this operation be a private JWK");
67
- case "encrypt":
68
- case "verify":
69
- if (y(e) && o(r, e, t))
70
- return;
71
- throw new TypeError("JSON Web Key for this operation be a public JWK");
72
- }
73
- if (!c(e))
74
- throw new TypeError(n(r, e, "CryptoKey", "KeyObject", "JSON Web Key"));
75
- if (e.type === "secret")
76
- throw new TypeError(`${s(e)} instances for asymmetric algorithms must not be of type "secret"`);
77
- if (e.type === "public")
78
- switch (t) {
79
- case "sign":
80
- throw new TypeError(`${s(e)} instances for asymmetric algorithm signing must be of type "private"`);
81
- case "decrypt":
82
- throw new TypeError(`${s(e)} instances for asymmetric algorithm decryption must be of type "private"`);
83
- }
84
- if (e.type === "private")
85
- switch (t) {
86
- case "verify":
87
- throw new TypeError(`${s(e)} instances for asymmetric algorithm verifying must be of type "public"`);
88
- case "encrypt":
89
- throw new TypeError(`${s(e)} instances for asymmetric algorithm encryption must be of type "public"`);
90
- }
91
- }, d = (r, e, t) => {
92
- r.startsWith("HS") || r === "dir" || r.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(r) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(r) ? h(r, e, t) : m(r, e, t);
93
- };
1
+ import { toHex as a } from "viem";
2
+ import { userOperationChainIdToNameMapping as o } from "./index.native37.js";
3
+ import { validateUserConnected as i } from "./index.native23.js";
4
+ import "zustand";
5
+ import "@coinbase/cdp-api-client";
6
+ async function l() {
7
+ return !(await i()).evmSmartAccounts?.length ? {} : Object.keys(o).reduce(
8
+ (t, e) => {
9
+ const r = a(Number(e));
10
+ return t[r] = {
11
+ atomic: { status: "supported" },
12
+ paymasterService: { supported: !0 }
13
+ }, t;
14
+ },
15
+ {}
16
+ );
17
+ }
94
18
  export {
95
- d as default
19
+ l as handleGetCapabilities
96
20
  };