@coinbase/cdp-core 0.0.85 → 0.0.87

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 (1076) hide show
  1. package/dist/esm/index.native.js +150 -119
  2. package/dist/esm/index.native10.js +65 -452
  3. package/dist/esm/index.native100.js +149 -20
  4. package/dist/esm/index.native101.js +88 -11
  5. package/dist/esm/index.native102.js +13 -101
  6. package/dist/esm/index.native103.js +22 -6
  7. package/dist/esm/index.native104.js +51 -3
  8. package/dist/esm/index.native105.js +376 -14
  9. package/dist/esm/index.native106.js +2 -37
  10. package/dist/esm/index.native107.js +63 -76
  11. package/dist/esm/index.native108.js +365 -2
  12. package/dist/esm/index.native109.js +29 -2
  13. package/dist/esm/index.native11.js +12 -36
  14. package/dist/esm/index.native110.js +28 -12
  15. package/dist/esm/index.native111.js +948 -35
  16. package/dist/esm/index.native112.js +2 -7
  17. package/dist/esm/index.native113.js +47 -32
  18. package/dist/esm/index.native114.js +27 -8
  19. package/dist/esm/index.native115.js +54 -10
  20. package/dist/esm/index.native116.js +10 -11
  21. package/dist/esm/index.native117.js +2 -14
  22. package/dist/esm/index.native118.js +44 -18
  23. package/dist/esm/index.native119.js +13 -5
  24. package/dist/esm/index.native12.js +11 -40
  25. package/dist/esm/index.native120.js +13 -5
  26. package/dist/esm/index.native121.js +11 -10
  27. package/dist/esm/index.native122.js +37 -2
  28. package/dist/esm/index.native123.js +65 -63
  29. package/dist/esm/index.native124.js +5 -365
  30. package/dist/esm/index.native125.js +43 -50
  31. package/dist/esm/index.native126.js +2 -11
  32. package/dist/esm/index.native127.js +2 -2
  33. package/dist/esm/index.native128.js +5 -45
  34. package/dist/esm/index.native129.js +17 -13
  35. package/dist/esm/index.native13.js +21 -19
  36. package/dist/esm/index.native130.js +46 -2
  37. package/dist/esm/index.native131.js +14 -35
  38. package/dist/esm/index.native132.js +49 -61
  39. package/dist/esm/index.native133.js +6 -4
  40. package/dist/esm/index.native134.js +20 -17
  41. package/dist/esm/index.native135.js +3 -7
  42. package/dist/esm/index.native136.js +3 -3
  43. package/dist/esm/index.native137.js +33 -18
  44. package/dist/esm/index.native138.js +12 -8
  45. package/dist/esm/index.native139.js +4 -7
  46. package/dist/esm/index.native14.js +13 -5
  47. package/dist/esm/index.native140.js +27 -70
  48. package/dist/esm/index.native141.js +6 -18
  49. package/dist/esm/index.native142.js +42 -3
  50. package/dist/esm/index.native143.js +55 -4
  51. package/dist/esm/index.native144.js +127 -4
  52. package/dist/esm/index.native145.js +23 -4
  53. package/dist/esm/index.native146.js +11 -18
  54. package/dist/esm/index.native147.js +101 -49
  55. package/dist/esm/index.native148.js +6 -17
  56. package/dist/esm/index.native149.js +3 -24
  57. package/dist/esm/index.native15.js +11 -44
  58. package/dist/esm/index.native150.js +14 -8
  59. package/dist/esm/index.native151.js +32 -31
  60. package/dist/esm/index.native152.js +78 -7
  61. package/dist/esm/index.native153.js +2 -21
  62. package/dist/esm/index.native154.js +2 -21
  63. package/dist/esm/index.native155.js +38 -5
  64. package/dist/esm/index.native156.js +5 -46
  65. package/dist/esm/index.native157.js +32 -101
  66. package/dist/esm/index.native158.js +8 -19
  67. package/dist/esm/index.native159.js +10 -79
  68. package/dist/esm/index.native16.js +10 -16
  69. package/dist/esm/index.native160.js +11 -32
  70. package/dist/esm/index.native161.js +13 -6
  71. package/dist/esm/index.native162.js +18 -4
  72. package/dist/esm/index.native163.js +5 -78
  73. package/dist/esm/index.native164.js +5 -21
  74. package/dist/esm/index.native165.js +11 -10
  75. package/dist/esm/index.native166.js +20 -19
  76. package/dist/esm/index.native167.js +9 -93
  77. package/dist/esm/index.native168.js +18 -19
  78. package/dist/esm/index.native169.js +81 -105
  79. package/dist/esm/index.native17.js +52 -15
  80. package/dist/esm/index.native170.js +21 -4
  81. package/dist/esm/index.native171.js +115 -44
  82. package/dist/esm/index.native172.js +103 -38
  83. package/dist/esm/index.native173.js +79 -2
  84. package/dist/esm/index.native174.js +79 -69
  85. package/dist/esm/index.native175.js +13 -34
  86. package/dist/esm/index.native176.js +26 -19
  87. package/dist/esm/index.native177.js +7 -7
  88. package/dist/esm/index.native178.js +4 -2
  89. package/dist/esm/index.native179.js +25 -375
  90. package/dist/esm/index.native18.js +6 -16
  91. package/dist/esm/index.native180.js +8 -835
  92. package/dist/esm/index.native181.js +8 -5
  93. package/dist/esm/index.native182.js +80 -2
  94. package/dist/esm/index.native183.js +27 -108
  95. package/dist/esm/index.native184.js +4 -2
  96. package/dist/esm/index.native185.js +14 -17
  97. package/dist/esm/index.native186.js +5 -28
  98. package/dist/esm/index.native187.js +14 -8
  99. package/dist/esm/index.native188.js +19 -10
  100. package/dist/esm/index.native189.js +59 -11
  101. package/dist/esm/index.native19.js +4 -16
  102. package/dist/esm/index.native190.js +17 -9
  103. package/dist/esm/index.native191.js +22 -15
  104. package/dist/esm/index.native192.js +8 -80
  105. package/dist/esm/index.native193.js +41 -14
  106. package/dist/esm/index.native194.js +8 -2
  107. package/dist/esm/index.native195.js +21 -2
  108. package/dist/esm/index.native196.js +2 -2
  109. package/dist/esm/index.native197.js +103 -73
  110. package/dist/esm/index.native198.js +4 -0
  111. package/dist/esm/index.native199.js +10 -0
  112. package/dist/esm/index.native2.js +2 -2
  113. package/dist/esm/index.native20.js +12 -16
  114. package/dist/esm/index.native200.js +4 -0
  115. package/dist/esm/index.native201.js +380 -0
  116. package/dist/esm/index.native202.js +838 -0
  117. package/dist/esm/index.native203.js +41 -0
  118. package/dist/esm/index.native204.js +4 -0
  119. package/dist/esm/index.native205.js +72 -0
  120. package/dist/esm/index.native206.js +37 -0
  121. package/dist/esm/index.native207.js +23 -0
  122. package/dist/esm/index.native208.js +4 -0
  123. package/dist/esm/index.native209.js +23 -0
  124. package/dist/esm/index.native21.js +4 -26
  125. package/dist/esm/index.native210.js +22 -0
  126. package/dist/esm/index.native211.js +35 -0
  127. package/dist/esm/index.native212.js +9 -0
  128. package/dist/esm/index.native213.js +20 -0
  129. package/dist/esm/index.native214.js +30 -0
  130. package/dist/esm/index.native215.js +10 -0
  131. package/dist/esm/index.native216.js +13 -0
  132. package/dist/esm/index.native217.js +15 -0
  133. package/dist/esm/index.native218.js +12 -0
  134. package/dist/esm/index.native219.js +19 -0
  135. package/dist/esm/index.native22.js +4 -57
  136. package/dist/esm/index.native220.js +83 -0
  137. package/dist/esm/index.native221.js +6 -0
  138. package/dist/esm/index.native222.js +4 -0
  139. package/dist/esm/index.native223.js +4 -0
  140. package/dist/esm/index.native224.js +4 -0
  141. package/dist/esm/index.native225.js +49 -0
  142. package/dist/esm/index.native226.js +7 -0
  143. package/dist/esm/index.native227.js +81 -0
  144. package/dist/esm/index.native228.js +17 -0
  145. package/dist/esm/index.native23.js +7 -29
  146. package/dist/esm/index.native24.js +7 -27
  147. package/dist/esm/index.native25.js +26 -28
  148. package/dist/esm/index.native26.js +30 -28
  149. package/dist/esm/index.native27.js +26 -113
  150. package/dist/esm/index.native28.js +26 -19
  151. package/dist/esm/index.native29.js +26 -26
  152. package/dist/esm/index.native3.js +1 -1
  153. package/dist/esm/index.native30.js +25 -61
  154. package/dist/esm/index.native31.js +34 -17
  155. package/dist/esm/index.native32.js +27 -11
  156. package/dist/esm/index.native33.js +36 -17
  157. package/dist/esm/index.native34.js +25 -7
  158. package/dist/esm/index.native35.js +40 -47
  159. package/dist/esm/index.native36.js +46 -12
  160. package/dist/esm/index.native37.js +37 -48
  161. package/dist/esm/index.native38.js +42 -23
  162. package/dist/esm/index.native39.js +23 -277
  163. package/dist/esm/index.native4.js +2 -2
  164. package/dist/esm/index.native40.js +6 -18
  165. package/dist/esm/index.native41.js +41 -119
  166. package/dist/esm/index.native42.js +16 -70
  167. package/dist/esm/index.native43.js +20 -6
  168. package/dist/esm/index.native44.js +18 -45
  169. package/dist/esm/index.native45.js +20 -148
  170. package/dist/esm/index.native46.js +21 -28
  171. package/dist/esm/index.native47.js +29 -29
  172. package/dist/esm/index.native48.js +59 -3
  173. package/dist/esm/index.native49.js +33 -8
  174. package/dist/esm/index.native5.js +1 -1
  175. package/dist/esm/index.native50.js +28 -65
  176. package/dist/esm/index.native51.js +30 -88
  177. package/dist/esm/index.native52.js +29 -23
  178. package/dist/esm/index.native53.js +116 -17
  179. package/dist/esm/index.native54.js +20 -137
  180. package/dist/esm/index.native55.js +11 -61
  181. package/dist/esm/index.native56.js +34 -27
  182. package/dist/esm/index.native57.js +31 -42
  183. package/dist/esm/index.native58.js +61 -149
  184. package/dist/esm/index.native59.js +24 -43
  185. package/dist/esm/index.native60.js +17 -33
  186. package/dist/esm/index.native61.js +24 -9
  187. package/dist/esm/index.native62.js +8 -41
  188. package/dist/esm/index.native63.js +48 -49
  189. package/dist/esm/index.native64.js +17 -70
  190. package/dist/esm/index.native65.js +47 -24
  191. package/dist/esm/index.native66.js +38 -159
  192. package/dist/esm/index.native67.js +256 -27
  193. package/dist/esm/index.native68.js +18 -18
  194. package/dist/esm/index.native69.js +127 -68
  195. package/dist/esm/index.native70.js +70 -950
  196. package/dist/esm/index.native71.js +7 -2
  197. package/dist/esm/index.native72.js +54 -49
  198. package/dist/esm/index.native73.js +155 -27
  199. package/dist/esm/index.native74.js +30 -80
  200. package/dist/esm/index.native75.js +17 -16
  201. package/dist/esm/index.native76.js +42 -21
  202. package/dist/esm/index.native77.js +41 -50
  203. package/dist/esm/index.native78.js +22 -375
  204. package/dist/esm/index.native79.js +8 -28
  205. package/dist/esm/index.native80.js +29 -29
  206. package/dist/esm/index.native81.js +41 -2
  207. package/dist/esm/index.native82.js +42 -2
  208. package/dist/esm/index.native83.js +3 -18
  209. package/dist/esm/index.native84.js +48 -45
  210. package/dist/esm/index.native85.js +80 -13
  211. package/dist/esm/index.native86.js +24 -54
  212. package/dist/esm/index.native87.js +159 -6
  213. package/dist/esm/index.native88.js +44 -18
  214. package/dist/esm/index.native89.js +19 -12
  215. package/dist/esm/index.native9.js +1 -1
  216. package/dist/esm/index.native90.js +72 -3
  217. package/dist/esm/index.native91.js +8 -3
  218. package/dist/esm/index.native92.js +93 -33
  219. package/dist/esm/index.native93.js +134 -10
  220. package/dist/esm/index.native94.js +67 -4
  221. package/dist/esm/index.native95.js +27 -29
  222. package/dist/esm/index.native96.js +42 -7
  223. package/dist/esm/index.native97.js +63 -41
  224. package/dist/esm/index.native98.js +46 -55
  225. package/dist/esm/index.native99.js +20 -127
  226. package/dist/esm/index.web.js +171 -140
  227. package/dist/esm/index.web10.js +12 -36
  228. package/dist/esm/index.web100.js +46 -127
  229. package/dist/esm/index.web101.js +21 -24
  230. package/dist/esm/index.web102.js +150 -10
  231. package/dist/esm/index.web103.js +13 -101
  232. package/dist/esm/index.web104.js +22 -6
  233. package/dist/esm/index.web105.js +51 -3
  234. package/dist/esm/index.web106.js +376 -14
  235. package/dist/esm/index.web107.js +28 -34
  236. package/dist/esm/index.web108.js +28 -78
  237. package/dist/esm/index.web109.js +2 -4
  238. package/dist/esm/index.web11.js +11 -40
  239. package/dist/esm/index.web110.js +66 -2
  240. package/dist/esm/index.web111.js +362 -10
  241. package/dist/esm/index.web112.js +948 -35
  242. package/dist/esm/index.web113.js +2 -7
  243. package/dist/esm/index.web114.js +47 -32
  244. package/dist/esm/index.web115.js +27 -8
  245. package/dist/esm/index.web116.js +11 -9
  246. package/dist/esm/index.web117.js +11 -11
  247. package/dist/esm/index.web118.js +54 -13
  248. package/dist/esm/index.web119.js +10 -18
  249. package/dist/esm/index.web12.js +21 -19
  250. package/dist/esm/index.web120.js +2 -6
  251. package/dist/esm/index.web121.js +44 -4
  252. package/dist/esm/index.web122.js +13 -10
  253. package/dist/esm/index.web123.js +7 -2
  254. package/dist/esm/index.web124.js +44 -62
  255. package/dist/esm/index.web125.js +2 -365
  256. package/dist/esm/index.web126.js +2 -55
  257. package/dist/esm/index.web127.js +16 -9
  258. package/dist/esm/index.web128.js +46 -2
  259. package/dist/esm/index.web129.js +14 -45
  260. package/dist/esm/index.web13.js +13 -5
  261. package/dist/esm/index.web130.js +54 -12
  262. package/dist/esm/index.web131.js +7 -2
  263. package/dist/esm/index.web132.js +21 -4
  264. package/dist/esm/index.web133.js +3 -18
  265. package/dist/esm/index.web134.js +3 -7
  266. package/dist/esm/index.web135.js +34 -3
  267. package/dist/esm/index.web136.js +10 -17
  268. package/dist/esm/index.web137.js +4 -8
  269. package/dist/esm/index.web138.js +28 -7
  270. package/dist/esm/index.web139.js +6 -71
  271. package/dist/esm/index.web14.js +11 -44
  272. package/dist/esm/index.web140.js +42 -18
  273. package/dist/esm/index.web141.js +55 -3
  274. package/dist/esm/index.web142.js +127 -4
  275. package/dist/esm/index.web143.js +23 -4
  276. package/dist/esm/index.web144.js +12 -4
  277. package/dist/esm/index.web145.js +103 -18
  278. package/dist/esm/index.web146.js +6 -52
  279. package/dist/esm/index.web147.js +3 -18
  280. package/dist/esm/index.web148.js +14 -23
  281. package/dist/esm/index.web149.js +34 -8
  282. package/dist/esm/index.web15.js +10 -16
  283. package/dist/esm/index.web150.js +76 -31
  284. package/dist/esm/index.web151.js +2 -8
  285. package/dist/esm/index.web152.js +2 -21
  286. package/dist/esm/index.web153.js +31 -14
  287. package/dist/esm/index.web154.js +7 -5
  288. package/dist/esm/index.web155.js +31 -44
  289. package/dist/esm/index.web156.js +8 -19
  290. package/dist/esm/index.web157.js +10 -79
  291. package/dist/esm/index.web158.js +11 -103
  292. package/dist/esm/index.web159.js +12 -31
  293. package/dist/esm/index.web16.js +52 -15
  294. package/dist/esm/index.web160.js +18 -6
  295. package/dist/esm/index.web161.js +5 -4
  296. package/dist/esm/index.web162.js +5 -79
  297. package/dist/esm/index.web163.js +10 -20
  298. package/dist/esm/index.web164.js +5 -10
  299. package/dist/esm/index.web165.js +101 -17
  300. package/dist/esm/index.web166.js +75 -90
  301. package/dist/esm/index.web167.js +80 -21
  302. package/dist/esm/index.web168.js +15 -118
  303. package/dist/esm/index.web169.js +28 -3
  304. package/dist/esm/index.web17.js +6 -16
  305. package/dist/esm/index.web170.js +7 -46
  306. package/dist/esm/index.web171.js +3 -38
  307. package/dist/esm/index.web172.js +29 -2
  308. package/dist/esm/index.web173.js +8 -69
  309. package/dist/esm/index.web174.js +7 -34
  310. package/dist/esm/index.web175.js +79 -19
  311. package/dist/esm/index.web176.js +28 -7
  312. package/dist/esm/index.web177.js +4 -2
  313. package/dist/esm/index.web178.js +15 -377
  314. package/dist/esm/index.web179.js +4 -835
  315. package/dist/esm/index.web18.js +4 -16
  316. package/dist/esm/index.web180.js +15 -5
  317. package/dist/esm/index.web181.js +20 -2
  318. package/dist/esm/index.web182.js +61 -108
  319. package/dist/esm/index.web183.js +18 -2
  320. package/dist/esm/index.web184.js +22 -16
  321. package/dist/esm/index.web185.js +9 -28
  322. package/dist/esm/index.web186.js +42 -7
  323. package/dist/esm/index.web187.js +8 -11
  324. package/dist/esm/index.web188.js +20 -12
  325. package/dist/esm/index.web189.js +19 -8
  326. package/dist/esm/index.web19.js +12 -16
  327. package/dist/esm/index.web190.js +10 -17
  328. package/dist/esm/index.web191.js +16 -77
  329. package/dist/esm/index.web192.js +94 -15
  330. package/dist/esm/index.web193.js +21 -2
  331. package/dist/esm/index.web194.js +118 -2
  332. package/dist/esm/index.web195.js +8 -2
  333. package/dist/esm/index.web196.js +2 -79
  334. package/dist/esm/index.web197.js +380 -0
  335. package/dist/esm/index.web198.js +838 -0
  336. package/dist/esm/index.web199.js +41 -0
  337. package/dist/esm/index.web2.js +2 -2
  338. package/dist/esm/index.web20.js +4 -26
  339. package/dist/esm/index.web200.js +4 -0
  340. package/dist/esm/index.web201.js +72 -0
  341. package/dist/esm/index.web202.js +37 -0
  342. package/dist/esm/index.web203.js +23 -0
  343. package/dist/esm/index.web204.js +4 -0
  344. package/dist/esm/index.web205.js +23 -0
  345. package/dist/esm/index.web206.js +22 -0
  346. package/dist/esm/index.web207.js +35 -0
  347. package/dist/esm/index.web208.js +9 -0
  348. package/dist/esm/index.web209.js +4 -0
  349. package/dist/esm/index.web21.js +4 -57
  350. package/dist/esm/index.web210.js +111 -0
  351. package/dist/esm/index.web211.js +4 -0
  352. package/dist/esm/index.web212.js +6 -0
  353. package/dist/esm/index.web213.js +4 -0
  354. package/dist/esm/index.web214.js +4 -0
  355. package/dist/esm/index.web215.js +4 -0
  356. package/dist/esm/index.web216.js +20 -0
  357. package/dist/esm/index.web217.js +30 -0
  358. package/dist/esm/index.web218.js +10 -0
  359. package/dist/esm/index.web219.js +13 -0
  360. package/dist/esm/index.web22.js +7 -29
  361. package/dist/esm/index.web220.js +15 -0
  362. package/dist/esm/index.web221.js +12 -0
  363. package/dist/esm/index.web222.js +19 -0
  364. package/dist/esm/index.web223.js +83 -0
  365. package/dist/esm/index.web224.js +49 -0
  366. package/dist/esm/index.web225.js +7 -0
  367. package/dist/esm/index.web226.js +81 -0
  368. package/dist/esm/index.web227.js +17 -0
  369. package/dist/esm/index.web23.js +7 -27
  370. package/dist/esm/index.web24.js +27 -28
  371. package/dist/esm/index.web25.js +31 -28
  372. package/dist/esm/index.web26.js +27 -113
  373. package/dist/esm/index.web27.js +27 -19
  374. package/dist/esm/index.web28.js +27 -26
  375. package/dist/esm/index.web29.js +26 -61
  376. package/dist/esm/index.web3.js +1 -1
  377. package/dist/esm/index.web30.js +35 -17
  378. package/dist/esm/index.web31.js +28 -11
  379. package/dist/esm/index.web32.js +37 -17
  380. package/dist/esm/index.web33.js +25 -7
  381. package/dist/esm/index.web34.js +41 -47
  382. package/dist/esm/index.web35.js +47 -12
  383. package/dist/esm/index.web36.js +37 -48
  384. package/dist/esm/index.web37.js +42 -23
  385. package/dist/esm/index.web38.js +23 -277
  386. package/dist/esm/index.web39.js +6 -18
  387. package/dist/esm/index.web40.js +41 -119
  388. package/dist/esm/index.web41.js +16 -70
  389. package/dist/esm/index.web42.js +20 -6
  390. package/dist/esm/index.web43.js +18 -45
  391. package/dist/esm/index.web44.js +20 -148
  392. package/dist/esm/index.web45.js +20 -67
  393. package/dist/esm/index.web46.js +32 -35
  394. package/dist/esm/index.web47.js +56 -79
  395. package/dist/esm/index.web48.js +34 -28
  396. package/dist/esm/index.web49.js +28 -32
  397. package/dist/esm/index.web5.js +1 -1
  398. package/dist/esm/index.web50.js +30 -3
  399. package/dist/esm/index.web51.js +30 -9
  400. package/dist/esm/index.web52.js +113 -61
  401. package/dist/esm/index.web53.js +20 -88
  402. package/dist/esm/index.web54.js +11 -24
  403. package/dist/esm/index.web55.js +34 -16
  404. package/dist/esm/index.web56.js +31 -137
  405. package/dist/esm/index.web57.js +64 -60
  406. package/dist/esm/index.web58.js +23 -27
  407. package/dist/esm/index.web59.js +17 -42
  408. package/dist/esm/index.web60.js +23 -152
  409. package/dist/esm/index.web61.js +7 -43
  410. package/dist/esm/index.web62.js +46 -31
  411. package/dist/esm/index.web63.js +19 -8
  412. package/dist/esm/index.web64.js +47 -39
  413. package/dist/esm/index.web65.js +39 -49
  414. package/dist/esm/index.web66.js +273 -69
  415. package/dist/esm/index.web67.js +17 -24
  416. package/dist/esm/index.web68.js +129 -156
  417. package/dist/esm/index.web69.js +56 -33
  418. package/dist/esm/index.web70.js +7 -25
  419. package/dist/esm/index.web71.js +51 -68
  420. package/dist/esm/index.web72.js +154 -948
  421. package/dist/esm/index.web73.js +68 -2
  422. package/dist/esm/index.web74.js +35 -50
  423. package/dist/esm/index.web75.js +88 -26
  424. package/dist/esm/index.web76.js +28 -13
  425. package/dist/esm/index.web77.js +17 -22
  426. package/dist/esm/index.web78.js +42 -49
  427. package/dist/esm/index.web79.js +38 -372
  428. package/dist/esm/index.web8.js +1 -1
  429. package/dist/esm/index.web80.js +22 -27
  430. package/dist/esm/index.web81.js +8 -28
  431. package/dist/esm/index.web82.js +29 -2
  432. package/dist/esm/index.web83.js +41 -2
  433. package/dist/esm/index.web84.js +42 -18
  434. package/dist/esm/index.web85.js +3 -46
  435. package/dist/esm/index.web86.js +49 -14
  436. package/dist/esm/index.web87.js +79 -53
  437. package/dist/esm/index.web88.js +25 -6
  438. package/dist/esm/index.web89.js +157 -19
  439. package/dist/esm/index.web9.js +65 -453
  440. package/dist/esm/index.web90.js +47 -11
  441. package/dist/esm/index.web91.js +25 -4
  442. package/dist/esm/index.web92.js +72 -3
  443. package/dist/esm/index.web93.js +8 -34
  444. package/dist/esm/index.web94.js +93 -10
  445. package/dist/esm/index.web95.js +136 -4
  446. package/dist/esm/index.web96.js +67 -27
  447. package/dist/esm/index.web97.js +27 -7
  448. package/dist/esm/index.web98.js +40 -41
  449. package/dist/esm/index.web99.js +62 -53
  450. package/dist/native/index.native.js +150 -119
  451. package/dist/native/index.native10.js +65 -452
  452. package/dist/native/index.native100.js +149 -20
  453. package/dist/native/index.native101.js +88 -11
  454. package/dist/native/index.native102.js +13 -101
  455. package/dist/native/index.native103.js +22 -6
  456. package/dist/native/index.native104.js +51 -3
  457. package/dist/native/index.native105.js +376 -14
  458. package/dist/native/index.native106.js +2 -37
  459. package/dist/native/index.native107.js +63 -76
  460. package/dist/native/index.native108.js +365 -2
  461. package/dist/native/index.native109.js +29 -2
  462. package/dist/native/index.native11.js +12 -36
  463. package/dist/native/index.native110.js +28 -12
  464. package/dist/native/index.native111.js +948 -35
  465. package/dist/native/index.native112.js +2 -7
  466. package/dist/native/index.native113.js +47 -32
  467. package/dist/native/index.native114.js +27 -8
  468. package/dist/native/index.native115.js +54 -10
  469. package/dist/native/index.native116.js +10 -11
  470. package/dist/native/index.native117.js +2 -14
  471. package/dist/native/index.native118.js +44 -18
  472. package/dist/native/index.native119.js +13 -5
  473. package/dist/native/index.native12.js +11 -40
  474. package/dist/native/index.native120.js +13 -5
  475. package/dist/native/index.native121.js +11 -10
  476. package/dist/native/index.native122.js +37 -2
  477. package/dist/native/index.native123.js +65 -63
  478. package/dist/native/index.native124.js +5 -365
  479. package/dist/native/index.native125.js +43 -50
  480. package/dist/native/index.native126.js +2 -11
  481. package/dist/native/index.native127.js +2 -2
  482. package/dist/native/index.native128.js +5 -45
  483. package/dist/native/index.native129.js +17 -13
  484. package/dist/native/index.native13.js +21 -19
  485. package/dist/native/index.native130.js +46 -2
  486. package/dist/native/index.native131.js +14 -35
  487. package/dist/native/index.native132.js +49 -61
  488. package/dist/native/index.native133.js +6 -4
  489. package/dist/native/index.native134.js +20 -17
  490. package/dist/native/index.native135.js +3 -7
  491. package/dist/native/index.native136.js +3 -3
  492. package/dist/native/index.native137.js +33 -18
  493. package/dist/native/index.native138.js +12 -8
  494. package/dist/native/index.native139.js +4 -7
  495. package/dist/native/index.native14.js +13 -5
  496. package/dist/native/index.native140.js +27 -70
  497. package/dist/native/index.native141.js +6 -18
  498. package/dist/native/index.native142.js +42 -3
  499. package/dist/native/index.native143.js +55 -4
  500. package/dist/native/index.native144.js +127 -4
  501. package/dist/native/index.native145.js +23 -4
  502. package/dist/native/index.native146.js +11 -18
  503. package/dist/native/index.native147.js +101 -49
  504. package/dist/native/index.native148.js +6 -17
  505. package/dist/native/index.native149.js +3 -24
  506. package/dist/native/index.native15.js +11 -44
  507. package/dist/native/index.native150.js +14 -8
  508. package/dist/native/index.native151.js +32 -31
  509. package/dist/native/index.native152.js +78 -7
  510. package/dist/native/index.native153.js +2 -21
  511. package/dist/native/index.native154.js +2 -21
  512. package/dist/native/index.native155.js +38 -5
  513. package/dist/native/index.native156.js +5 -46
  514. package/dist/native/index.native157.js +32 -101
  515. package/dist/native/index.native158.js +8 -19
  516. package/dist/native/index.native159.js +10 -79
  517. package/dist/native/index.native16.js +10 -16
  518. package/dist/native/index.native160.js +11 -32
  519. package/dist/native/index.native161.js +13 -6
  520. package/dist/native/index.native162.js +18 -4
  521. package/dist/native/index.native163.js +5 -78
  522. package/dist/native/index.native164.js +5 -21
  523. package/dist/native/index.native165.js +11 -10
  524. package/dist/native/index.native166.js +20 -19
  525. package/dist/native/index.native167.js +9 -93
  526. package/dist/native/index.native168.js +18 -19
  527. package/dist/native/index.native169.js +81 -105
  528. package/dist/native/index.native17.js +52 -15
  529. package/dist/native/index.native170.js +21 -4
  530. package/dist/native/index.native171.js +115 -44
  531. package/dist/native/index.native172.js +103 -38
  532. package/dist/native/index.native173.js +79 -2
  533. package/dist/native/index.native174.js +79 -69
  534. package/dist/native/index.native175.js +13 -34
  535. package/dist/native/index.native176.js +26 -19
  536. package/dist/native/index.native177.js +7 -7
  537. package/dist/native/index.native178.js +4 -2
  538. package/dist/native/index.native179.js +25 -375
  539. package/dist/native/index.native18.js +6 -16
  540. package/dist/native/index.native180.js +8 -835
  541. package/dist/native/index.native181.js +8 -5
  542. package/dist/native/index.native182.js +80 -2
  543. package/dist/native/index.native183.js +27 -108
  544. package/dist/native/index.native184.js +4 -2
  545. package/dist/native/index.native185.js +14 -17
  546. package/dist/native/index.native186.js +5 -28
  547. package/dist/native/index.native187.js +14 -8
  548. package/dist/native/index.native188.js +19 -10
  549. package/dist/native/index.native189.js +59 -11
  550. package/dist/native/index.native19.js +4 -16
  551. package/dist/native/index.native190.js +17 -9
  552. package/dist/native/index.native191.js +22 -15
  553. package/dist/native/index.native192.js +8 -80
  554. package/dist/native/index.native193.js +41 -14
  555. package/dist/native/index.native194.js +8 -2
  556. package/dist/native/index.native195.js +21 -2
  557. package/dist/native/index.native196.js +2 -2
  558. package/dist/native/index.native197.js +103 -73
  559. package/dist/native/index.native198.js +4 -0
  560. package/dist/native/index.native199.js +10 -0
  561. package/dist/native/index.native2.js +2 -2
  562. package/dist/native/index.native20.js +12 -16
  563. package/dist/native/index.native200.js +4 -0
  564. package/dist/native/index.native201.js +380 -0
  565. package/dist/native/index.native202.js +838 -0
  566. package/dist/native/index.native203.js +41 -0
  567. package/dist/native/index.native204.js +4 -0
  568. package/dist/native/index.native205.js +72 -0
  569. package/dist/native/index.native206.js +37 -0
  570. package/dist/native/index.native207.js +23 -0
  571. package/dist/native/index.native208.js +4 -0
  572. package/dist/native/index.native209.js +23 -0
  573. package/dist/native/index.native21.js +4 -26
  574. package/dist/native/index.native210.js +22 -0
  575. package/dist/native/index.native211.js +35 -0
  576. package/dist/native/index.native212.js +9 -0
  577. package/dist/native/index.native213.js +20 -0
  578. package/dist/native/index.native214.js +30 -0
  579. package/dist/native/index.native215.js +10 -0
  580. package/dist/native/index.native216.js +13 -0
  581. package/dist/native/index.native217.js +15 -0
  582. package/dist/native/index.native218.js +12 -0
  583. package/dist/native/index.native219.js +19 -0
  584. package/dist/native/index.native22.js +4 -57
  585. package/dist/native/index.native220.js +83 -0
  586. package/dist/native/index.native221.js +6 -0
  587. package/dist/native/index.native222.js +4 -0
  588. package/dist/native/index.native223.js +4 -0
  589. package/dist/native/index.native224.js +4 -0
  590. package/dist/native/index.native225.js +49 -0
  591. package/dist/native/index.native226.js +7 -0
  592. package/dist/native/index.native227.js +81 -0
  593. package/dist/native/index.native228.js +17 -0
  594. package/dist/native/index.native23.js +7 -29
  595. package/dist/native/index.native24.js +7 -27
  596. package/dist/native/index.native25.js +26 -28
  597. package/dist/native/index.native26.js +30 -28
  598. package/dist/native/index.native27.js +26 -113
  599. package/dist/native/index.native28.js +26 -19
  600. package/dist/native/index.native29.js +26 -26
  601. package/dist/native/index.native3.js +1 -1
  602. package/dist/native/index.native30.js +25 -61
  603. package/dist/native/index.native31.js +34 -17
  604. package/dist/native/index.native32.js +27 -11
  605. package/dist/native/index.native33.js +36 -17
  606. package/dist/native/index.native34.js +25 -7
  607. package/dist/native/index.native35.js +40 -47
  608. package/dist/native/index.native36.js +46 -12
  609. package/dist/native/index.native37.js +37 -48
  610. package/dist/native/index.native38.js +42 -23
  611. package/dist/native/index.native39.js +23 -277
  612. package/dist/native/index.native4.js +2 -2
  613. package/dist/native/index.native40.js +6 -18
  614. package/dist/native/index.native41.js +41 -119
  615. package/dist/native/index.native42.js +16 -70
  616. package/dist/native/index.native43.js +20 -6
  617. package/dist/native/index.native44.js +18 -45
  618. package/dist/native/index.native45.js +20 -148
  619. package/dist/native/index.native46.js +21 -28
  620. package/dist/native/index.native47.js +29 -29
  621. package/dist/native/index.native48.js +59 -3
  622. package/dist/native/index.native49.js +33 -8
  623. package/dist/native/index.native5.js +1 -1
  624. package/dist/native/index.native50.js +28 -65
  625. package/dist/native/index.native51.js +30 -88
  626. package/dist/native/index.native52.js +29 -23
  627. package/dist/native/index.native53.js +116 -17
  628. package/dist/native/index.native54.js +20 -137
  629. package/dist/native/index.native55.js +11 -61
  630. package/dist/native/index.native56.js +34 -27
  631. package/dist/native/index.native57.js +31 -42
  632. package/dist/native/index.native58.js +61 -149
  633. package/dist/native/index.native59.js +24 -43
  634. package/dist/native/index.native60.js +17 -33
  635. package/dist/native/index.native61.js +24 -9
  636. package/dist/native/index.native62.js +8 -41
  637. package/dist/native/index.native63.js +48 -49
  638. package/dist/native/index.native64.js +17 -70
  639. package/dist/native/index.native65.js +47 -24
  640. package/dist/native/index.native66.js +38 -159
  641. package/dist/native/index.native67.js +256 -27
  642. package/dist/native/index.native68.js +18 -18
  643. package/dist/native/index.native69.js +127 -68
  644. package/dist/native/index.native70.js +70 -950
  645. package/dist/native/index.native71.js +7 -2
  646. package/dist/native/index.native72.js +54 -49
  647. package/dist/native/index.native73.js +155 -27
  648. package/dist/native/index.native74.js +30 -80
  649. package/dist/native/index.native75.js +17 -16
  650. package/dist/native/index.native76.js +42 -21
  651. package/dist/native/index.native77.js +41 -50
  652. package/dist/native/index.native78.js +22 -375
  653. package/dist/native/index.native79.js +8 -28
  654. package/dist/native/index.native80.js +29 -29
  655. package/dist/native/index.native81.js +41 -2
  656. package/dist/native/index.native82.js +42 -2
  657. package/dist/native/index.native83.js +3 -18
  658. package/dist/native/index.native84.js +48 -45
  659. package/dist/native/index.native85.js +80 -13
  660. package/dist/native/index.native86.js +24 -54
  661. package/dist/native/index.native87.js +159 -6
  662. package/dist/native/index.native88.js +44 -18
  663. package/dist/native/index.native89.js +19 -12
  664. package/dist/native/index.native9.js +1 -1
  665. package/dist/native/index.native90.js +72 -3
  666. package/dist/native/index.native91.js +8 -3
  667. package/dist/native/index.native92.js +93 -33
  668. package/dist/native/index.native93.js +134 -10
  669. package/dist/native/index.native94.js +67 -4
  670. package/dist/native/index.native95.js +27 -29
  671. package/dist/native/index.native96.js +42 -7
  672. package/dist/native/index.native97.js +63 -41
  673. package/dist/native/index.native98.js +46 -55
  674. package/dist/native/index.native99.js +20 -127
  675. package/dist/native-types/actions/authenticateWithJWT.d.ts +4 -0
  676. package/dist/native-types/actions/createEvmEoaAccount.d.ts +4 -1
  677. package/dist/native-types/actions/createEvmSmartAccount.d.ts +1 -0
  678. package/dist/native-types/actions/createSolanaAccount.d.ts +4 -1
  679. package/dist/native-types/actions/createSpendPermission.d.ts +1 -0
  680. package/dist/native-types/actions/exportEvmAccount.d.ts +2 -0
  681. package/dist/native-types/actions/exportSolanaAccount.d.ts +2 -0
  682. package/dist/native-types/actions/getAccessToken.d.ts +3 -0
  683. package/dist/native-types/actions/getAccessTokenExpiration.d.ts +1 -0
  684. package/dist/native-types/actions/getCurrentUser.d.ts +2 -0
  685. package/dist/native-types/actions/getProjectConfig.d.ts +3 -0
  686. package/dist/native-types/actions/getUserOperation.d.ts +2 -0
  687. package/dist/native-types/actions/initialize.d.ts +2 -0
  688. package/dist/native-types/actions/initiateMfaEnrollment.d.ts +2 -0
  689. package/dist/native-types/actions/initiateMfaVerification.d.ts +1 -0
  690. package/dist/native-types/actions/isSignedIn.d.ts +1 -0
  691. package/dist/native-types/actions/linkApple.d.ts +3 -1
  692. package/dist/native-types/actions/linkEmail.d.ts +3 -1
  693. package/dist/native-types/actions/linkOAuth.d.ts +3 -1
  694. package/dist/native-types/actions/linkSms.d.ts +3 -1
  695. package/dist/native-types/actions/onAuthStateChange.d.ts +2 -0
  696. package/dist/native-types/actions/onOAuthStateChange.d.ts +2 -0
  697. package/dist/native-types/actions/recordMfaEnrollmentPrompted.d.ts +3 -1
  698. package/dist/native-types/actions/revokeSpendPermission.d.ts +1 -0
  699. package/dist/native-types/actions/sendEvmEoaUsdc.d.ts +1 -0
  700. package/dist/native-types/actions/sendEvmSmartAccountUsdc.d.ts +1 -0
  701. package/dist/native-types/actions/sendEvmTransaction.d.ts +2 -0
  702. package/dist/native-types/actions/sendSolanaTransaction.d.ts +2 -0
  703. package/dist/native-types/actions/sendSolanaUsdc.d.ts +1 -0
  704. package/dist/native-types/actions/sendUsdc.d.ts +4 -0
  705. package/dist/native-types/actions/sendUserOperation.d.ts +2 -0
  706. package/dist/native-types/actions/signEvmHash.d.ts +2 -0
  707. package/dist/native-types/actions/signEvmMessage.d.ts +2 -0
  708. package/dist/native-types/actions/signEvmTransaction.d.ts +2 -0
  709. package/dist/native-types/actions/signEvmTypedData.d.ts +2 -0
  710. package/dist/native-types/actions/signInWithEmail.d.ts +2 -0
  711. package/dist/native-types/actions/signInWithOAuth.d.ts +4 -0
  712. package/dist/native-types/actions/signInWithSms.d.ts +2 -0
  713. package/dist/native-types/actions/signOut.d.ts +1 -0
  714. package/dist/native-types/actions/signSolanaMessage.d.ts +2 -0
  715. package/dist/native-types/actions/signSolanaTransaction.d.ts +2 -0
  716. package/dist/native-types/actions/submitMfaEnrollment.d.ts +1 -0
  717. package/dist/native-types/actions/submitMfaVerification.d.ts +1 -0
  718. package/dist/native-types/actions/verifyEmailOTP.d.ts +2 -0
  719. package/dist/native-types/actions/verifyOAuth.d.ts +2 -0
  720. package/dist/native-types/actions/verifySmsOTP.d.ts +2 -0
  721. package/dist/native-types/core.d.ts +27 -31
  722. package/dist/native-types/index.d.ts +5 -3
  723. package/dist/native-types/index.native.d.ts +3 -1
  724. package/dist/native-types/index.web.d.ts +3 -1
  725. package/dist/native-types/mfa/index.d.ts +1 -1
  726. package/dist/native-types/mfa/utils.d.ts +1 -0
  727. package/dist/native-types/shared/createEvmAccountIfNeeded.d.ts +2 -0
  728. package/dist/native-types/shared/createSolanaAccountIfNeeded.d.ts +2 -0
  729. package/dist/native-types/shared/initiateSignIn.d.ts +21 -0
  730. package/dist/native-types/shared/verifyOTP.d.ts +3 -0
  731. package/dist/native-types/state.d.ts +5 -0
  732. package/dist/native-types/types.d.ts +16 -0
  733. package/dist/native-types/version.d.ts +1 -1
  734. package/dist/types/actions/authenticateWithJWT.d.ts +4 -0
  735. package/dist/types/actions/createEvmEoaAccount.d.ts +4 -1
  736. package/dist/types/actions/createEvmSmartAccount.d.ts +1 -0
  737. package/dist/types/actions/createSolanaAccount.d.ts +4 -1
  738. package/dist/types/actions/createSpendPermission.d.ts +1 -0
  739. package/dist/types/actions/exportEvmAccount.d.ts +2 -0
  740. package/dist/types/actions/exportSolanaAccount.d.ts +2 -0
  741. package/dist/types/actions/getAccessToken.d.ts +3 -0
  742. package/dist/types/actions/getAccessTokenExpiration.d.ts +1 -0
  743. package/dist/types/actions/getCurrentUser.d.ts +2 -0
  744. package/dist/types/actions/getProjectConfig.d.ts +3 -0
  745. package/dist/types/actions/getUserOperation.d.ts +2 -0
  746. package/dist/types/actions/initialize.d.ts +2 -0
  747. package/dist/types/actions/initiateMfaEnrollment.d.ts +2 -0
  748. package/dist/types/actions/initiateMfaVerification.d.ts +1 -0
  749. package/dist/types/actions/isSignedIn.d.ts +1 -0
  750. package/dist/types/actions/linkApple.d.ts +3 -1
  751. package/dist/types/actions/linkEmail.d.ts +3 -1
  752. package/dist/types/actions/linkOAuth.d.ts +3 -1
  753. package/dist/types/actions/linkSms.d.ts +3 -1
  754. package/dist/types/actions/onAuthStateChange.d.ts +2 -0
  755. package/dist/types/actions/onOAuthStateChange.d.ts +2 -0
  756. package/dist/types/actions/recordMfaEnrollmentPrompted.d.ts +3 -1
  757. package/dist/types/actions/revokeSpendPermission.d.ts +1 -0
  758. package/dist/types/actions/sendEvmEoaUsdc.d.ts +1 -0
  759. package/dist/types/actions/sendEvmSmartAccountUsdc.d.ts +1 -0
  760. package/dist/types/actions/sendEvmTransaction.d.ts +2 -0
  761. package/dist/types/actions/sendSolanaTransaction.d.ts +2 -0
  762. package/dist/types/actions/sendSolanaUsdc.d.ts +1 -0
  763. package/dist/types/actions/sendUsdc.d.ts +4 -0
  764. package/dist/types/actions/sendUserOperation.d.ts +2 -0
  765. package/dist/types/actions/signEvmHash.d.ts +2 -0
  766. package/dist/types/actions/signEvmMessage.d.ts +2 -0
  767. package/dist/types/actions/signEvmTransaction.d.ts +2 -0
  768. package/dist/types/actions/signEvmTypedData.d.ts +2 -0
  769. package/dist/types/actions/signInWithEmail.d.ts +2 -0
  770. package/dist/types/actions/signInWithOAuth.d.ts +4 -0
  771. package/dist/types/actions/signInWithSms.d.ts +2 -0
  772. package/dist/types/actions/signOut.d.ts +1 -0
  773. package/dist/types/actions/signSolanaMessage.d.ts +2 -0
  774. package/dist/types/actions/signSolanaTransaction.d.ts +2 -0
  775. package/dist/types/actions/submitMfaEnrollment.d.ts +1 -0
  776. package/dist/types/actions/submitMfaVerification.d.ts +1 -0
  777. package/dist/types/actions/verifyEmailOTP.d.ts +2 -0
  778. package/dist/types/actions/verifyOAuth.d.ts +2 -0
  779. package/dist/types/actions/verifySmsOTP.d.ts +2 -0
  780. package/dist/types/core.d.ts +27 -31
  781. package/dist/types/index.d.ts +5 -3
  782. package/dist/types/index.native.d.ts +3 -1
  783. package/dist/types/index.web.d.ts +3 -1
  784. package/dist/types/mfa/index.d.ts +1 -1
  785. package/dist/types/mfa/utils.d.ts +1 -0
  786. package/dist/types/shared/createEvmAccountIfNeeded.d.ts +2 -0
  787. package/dist/types/shared/createSolanaAccountIfNeeded.d.ts +2 -0
  788. package/dist/types/shared/initiateSignIn.d.ts +21 -0
  789. package/dist/types/shared/verifyOTP.d.ts +3 -0
  790. package/dist/types/state.d.ts +5 -0
  791. package/dist/types/types.d.ts +16 -0
  792. package/dist/types/version.d.ts +1 -1
  793. package/dist/web/index.web.js +171 -140
  794. package/dist/web/index.web10.js +12 -36
  795. package/dist/web/index.web100.js +46 -127
  796. package/dist/web/index.web101.js +21 -24
  797. package/dist/web/index.web102.js +150 -10
  798. package/dist/web/index.web103.js +13 -101
  799. package/dist/web/index.web104.js +22 -6
  800. package/dist/web/index.web105.js +51 -3
  801. package/dist/web/index.web106.js +376 -14
  802. package/dist/web/index.web107.js +28 -34
  803. package/dist/web/index.web108.js +28 -78
  804. package/dist/web/index.web109.js +2 -4
  805. package/dist/web/index.web11.js +11 -40
  806. package/dist/web/index.web110.js +66 -2
  807. package/dist/web/index.web111.js +362 -10
  808. package/dist/web/index.web112.js +948 -35
  809. package/dist/web/index.web113.js +2 -7
  810. package/dist/web/index.web114.js +47 -32
  811. package/dist/web/index.web115.js +27 -8
  812. package/dist/web/index.web116.js +11 -9
  813. package/dist/web/index.web117.js +11 -11
  814. package/dist/web/index.web118.js +54 -13
  815. package/dist/web/index.web119.js +10 -18
  816. package/dist/web/index.web12.js +21 -19
  817. package/dist/web/index.web120.js +2 -6
  818. package/dist/web/index.web121.js +44 -4
  819. package/dist/web/index.web122.js +13 -10
  820. package/dist/web/index.web123.js +7 -2
  821. package/dist/web/index.web124.js +44 -62
  822. package/dist/web/index.web125.js +2 -365
  823. package/dist/web/index.web126.js +2 -55
  824. package/dist/web/index.web127.js +16 -9
  825. package/dist/web/index.web128.js +46 -2
  826. package/dist/web/index.web129.js +14 -45
  827. package/dist/web/index.web13.js +13 -5
  828. package/dist/web/index.web130.js +54 -12
  829. package/dist/web/index.web131.js +7 -2
  830. package/dist/web/index.web132.js +21 -4
  831. package/dist/web/index.web133.js +3 -18
  832. package/dist/web/index.web134.js +3 -7
  833. package/dist/web/index.web135.js +34 -3
  834. package/dist/web/index.web136.js +10 -17
  835. package/dist/web/index.web137.js +4 -8
  836. package/dist/web/index.web138.js +28 -7
  837. package/dist/web/index.web139.js +6 -71
  838. package/dist/web/index.web14.js +11 -44
  839. package/dist/web/index.web140.js +42 -18
  840. package/dist/web/index.web141.js +55 -3
  841. package/dist/web/index.web142.js +127 -4
  842. package/dist/web/index.web143.js +23 -4
  843. package/dist/web/index.web144.js +12 -4
  844. package/dist/web/index.web145.js +103 -18
  845. package/dist/web/index.web146.js +6 -52
  846. package/dist/web/index.web147.js +3 -18
  847. package/dist/web/index.web148.js +14 -23
  848. package/dist/web/index.web149.js +34 -8
  849. package/dist/web/index.web15.js +10 -16
  850. package/dist/web/index.web150.js +76 -31
  851. package/dist/web/index.web151.js +2 -8
  852. package/dist/web/index.web152.js +2 -21
  853. package/dist/web/index.web153.js +31 -14
  854. package/dist/web/index.web154.js +7 -5
  855. package/dist/web/index.web155.js +31 -44
  856. package/dist/web/index.web156.js +8 -19
  857. package/dist/web/index.web157.js +10 -79
  858. package/dist/web/index.web158.js +11 -103
  859. package/dist/web/index.web159.js +12 -31
  860. package/dist/web/index.web16.js +52 -15
  861. package/dist/web/index.web160.js +18 -6
  862. package/dist/web/index.web161.js +5 -4
  863. package/dist/web/index.web162.js +5 -79
  864. package/dist/web/index.web163.js +10 -20
  865. package/dist/web/index.web164.js +5 -10
  866. package/dist/web/index.web165.js +101 -17
  867. package/dist/web/index.web166.js +75 -90
  868. package/dist/web/index.web167.js +80 -21
  869. package/dist/web/index.web168.js +15 -118
  870. package/dist/web/index.web169.js +28 -3
  871. package/dist/web/index.web17.js +6 -16
  872. package/dist/web/index.web170.js +7 -46
  873. package/dist/web/index.web171.js +3 -38
  874. package/dist/web/index.web172.js +29 -2
  875. package/dist/web/index.web173.js +8 -69
  876. package/dist/web/index.web174.js +7 -34
  877. package/dist/web/index.web175.js +79 -19
  878. package/dist/web/index.web176.js +28 -7
  879. package/dist/web/index.web177.js +4 -2
  880. package/dist/web/index.web178.js +15 -377
  881. package/dist/web/index.web179.js +4 -835
  882. package/dist/web/index.web18.js +4 -16
  883. package/dist/web/index.web180.js +15 -5
  884. package/dist/web/index.web181.js +20 -2
  885. package/dist/web/index.web182.js +61 -108
  886. package/dist/web/index.web183.js +18 -2
  887. package/dist/web/index.web184.js +22 -16
  888. package/dist/web/index.web185.js +9 -28
  889. package/dist/web/index.web186.js +42 -7
  890. package/dist/web/index.web187.js +8 -11
  891. package/dist/web/index.web188.js +20 -12
  892. package/dist/web/index.web189.js +19 -8
  893. package/dist/web/index.web19.js +12 -16
  894. package/dist/web/index.web190.js +10 -17
  895. package/dist/web/index.web191.js +16 -77
  896. package/dist/web/index.web192.js +94 -15
  897. package/dist/web/index.web193.js +21 -2
  898. package/dist/web/index.web194.js +118 -2
  899. package/dist/web/index.web195.js +8 -2
  900. package/dist/web/index.web196.js +2 -79
  901. package/dist/web/index.web197.js +380 -0
  902. package/dist/web/index.web198.js +838 -0
  903. package/dist/web/index.web199.js +41 -0
  904. package/dist/web/index.web2.js +2 -2
  905. package/dist/web/index.web20.js +4 -26
  906. package/dist/web/index.web200.js +4 -0
  907. package/dist/web/index.web201.js +72 -0
  908. package/dist/web/index.web202.js +37 -0
  909. package/dist/web/index.web203.js +23 -0
  910. package/dist/web/index.web204.js +4 -0
  911. package/dist/web/index.web205.js +23 -0
  912. package/dist/web/index.web206.js +22 -0
  913. package/dist/web/index.web207.js +35 -0
  914. package/dist/web/index.web208.js +9 -0
  915. package/dist/web/index.web209.js +4 -0
  916. package/dist/web/index.web21.js +4 -57
  917. package/dist/web/index.web210.js +111 -0
  918. package/dist/web/index.web211.js +4 -0
  919. package/dist/web/index.web212.js +6 -0
  920. package/dist/web/index.web213.js +4 -0
  921. package/dist/web/index.web214.js +4 -0
  922. package/dist/web/index.web215.js +4 -0
  923. package/dist/web/index.web216.js +20 -0
  924. package/dist/web/index.web217.js +30 -0
  925. package/dist/web/index.web218.js +10 -0
  926. package/dist/web/index.web219.js +13 -0
  927. package/dist/web/index.web22.js +7 -29
  928. package/dist/web/index.web220.js +15 -0
  929. package/dist/web/index.web221.js +12 -0
  930. package/dist/web/index.web222.js +19 -0
  931. package/dist/web/index.web223.js +83 -0
  932. package/dist/web/index.web224.js +49 -0
  933. package/dist/web/index.web225.js +7 -0
  934. package/dist/web/index.web226.js +81 -0
  935. package/dist/web/index.web227.js +17 -0
  936. package/dist/web/index.web23.js +7 -27
  937. package/dist/web/index.web24.js +27 -28
  938. package/dist/web/index.web25.js +31 -28
  939. package/dist/web/index.web26.js +27 -113
  940. package/dist/web/index.web27.js +27 -19
  941. package/dist/web/index.web28.js +27 -26
  942. package/dist/web/index.web29.js +26 -61
  943. package/dist/web/index.web3.js +1 -1
  944. package/dist/web/index.web30.js +35 -17
  945. package/dist/web/index.web31.js +28 -11
  946. package/dist/web/index.web32.js +37 -17
  947. package/dist/web/index.web33.js +25 -7
  948. package/dist/web/index.web34.js +41 -47
  949. package/dist/web/index.web35.js +47 -12
  950. package/dist/web/index.web36.js +37 -48
  951. package/dist/web/index.web37.js +42 -23
  952. package/dist/web/index.web38.js +23 -277
  953. package/dist/web/index.web39.js +6 -18
  954. package/dist/web/index.web40.js +41 -119
  955. package/dist/web/index.web41.js +16 -70
  956. package/dist/web/index.web42.js +20 -6
  957. package/dist/web/index.web43.js +18 -45
  958. package/dist/web/index.web44.js +20 -148
  959. package/dist/web/index.web45.js +20 -67
  960. package/dist/web/index.web46.js +32 -35
  961. package/dist/web/index.web47.js +56 -79
  962. package/dist/web/index.web48.js +34 -28
  963. package/dist/web/index.web49.js +28 -32
  964. package/dist/web/index.web5.js +1 -1
  965. package/dist/web/index.web50.js +30 -3
  966. package/dist/web/index.web51.js +30 -9
  967. package/dist/web/index.web52.js +113 -61
  968. package/dist/web/index.web53.js +20 -88
  969. package/dist/web/index.web54.js +11 -24
  970. package/dist/web/index.web55.js +34 -16
  971. package/dist/web/index.web56.js +31 -137
  972. package/dist/web/index.web57.js +64 -60
  973. package/dist/web/index.web58.js +23 -27
  974. package/dist/web/index.web59.js +17 -42
  975. package/dist/web/index.web60.js +23 -152
  976. package/dist/web/index.web61.js +7 -43
  977. package/dist/web/index.web62.js +46 -31
  978. package/dist/web/index.web63.js +19 -8
  979. package/dist/web/index.web64.js +47 -39
  980. package/dist/web/index.web65.js +39 -49
  981. package/dist/web/index.web66.js +273 -69
  982. package/dist/web/index.web67.js +17 -24
  983. package/dist/web/index.web68.js +129 -156
  984. package/dist/web/index.web69.js +56 -33
  985. package/dist/web/index.web70.js +7 -25
  986. package/dist/web/index.web71.js +51 -68
  987. package/dist/web/index.web72.js +154 -948
  988. package/dist/web/index.web73.js +68 -2
  989. package/dist/web/index.web74.js +35 -50
  990. package/dist/web/index.web75.js +88 -26
  991. package/dist/web/index.web76.js +28 -13
  992. package/dist/web/index.web77.js +17 -22
  993. package/dist/web/index.web78.js +42 -49
  994. package/dist/web/index.web79.js +38 -372
  995. package/dist/web/index.web8.js +1 -1
  996. package/dist/web/index.web80.js +22 -27
  997. package/dist/web/index.web81.js +8 -28
  998. package/dist/web/index.web82.js +29 -2
  999. package/dist/web/index.web83.js +41 -2
  1000. package/dist/web/index.web84.js +42 -18
  1001. package/dist/web/index.web85.js +3 -46
  1002. package/dist/web/index.web86.js +49 -14
  1003. package/dist/web/index.web87.js +79 -53
  1004. package/dist/web/index.web88.js +25 -6
  1005. package/dist/web/index.web89.js +157 -19
  1006. package/dist/web/index.web9.js +65 -453
  1007. package/dist/web/index.web90.js +47 -11
  1008. package/dist/web/index.web91.js +25 -4
  1009. package/dist/web/index.web92.js +72 -3
  1010. package/dist/web/index.web93.js +8 -34
  1011. package/dist/web/index.web94.js +93 -10
  1012. package/dist/web/index.web95.js +136 -4
  1013. package/dist/web/index.web96.js +67 -27
  1014. package/dist/web/index.web97.js +27 -7
  1015. package/dist/web/index.web98.js +40 -41
  1016. package/dist/web/index.web99.js +62 -53
  1017. package/dist/web-types/actions/authenticateWithJWT.d.ts +4 -0
  1018. package/dist/web-types/actions/createEvmEoaAccount.d.ts +4 -1
  1019. package/dist/web-types/actions/createEvmSmartAccount.d.ts +1 -0
  1020. package/dist/web-types/actions/createSolanaAccount.d.ts +4 -1
  1021. package/dist/web-types/actions/createSpendPermission.d.ts +1 -0
  1022. package/dist/web-types/actions/exportEvmAccount.d.ts +2 -0
  1023. package/dist/web-types/actions/exportSolanaAccount.d.ts +2 -0
  1024. package/dist/web-types/actions/getAccessToken.d.ts +3 -0
  1025. package/dist/web-types/actions/getAccessTokenExpiration.d.ts +1 -0
  1026. package/dist/web-types/actions/getCurrentUser.d.ts +2 -0
  1027. package/dist/web-types/actions/getProjectConfig.d.ts +3 -0
  1028. package/dist/web-types/actions/getUserOperation.d.ts +2 -0
  1029. package/dist/web-types/actions/initialize.d.ts +2 -0
  1030. package/dist/web-types/actions/initiateMfaEnrollment.d.ts +2 -0
  1031. package/dist/web-types/actions/initiateMfaVerification.d.ts +1 -0
  1032. package/dist/web-types/actions/isSignedIn.d.ts +1 -0
  1033. package/dist/web-types/actions/linkApple.d.ts +3 -1
  1034. package/dist/web-types/actions/linkEmail.d.ts +3 -1
  1035. package/dist/web-types/actions/linkOAuth.d.ts +3 -1
  1036. package/dist/web-types/actions/linkSms.d.ts +3 -1
  1037. package/dist/web-types/actions/onAuthStateChange.d.ts +2 -0
  1038. package/dist/web-types/actions/onOAuthStateChange.d.ts +2 -0
  1039. package/dist/web-types/actions/recordMfaEnrollmentPrompted.d.ts +3 -1
  1040. package/dist/web-types/actions/revokeSpendPermission.d.ts +1 -0
  1041. package/dist/web-types/actions/sendEvmEoaUsdc.d.ts +1 -0
  1042. package/dist/web-types/actions/sendEvmSmartAccountUsdc.d.ts +1 -0
  1043. package/dist/web-types/actions/sendEvmTransaction.d.ts +2 -0
  1044. package/dist/web-types/actions/sendSolanaTransaction.d.ts +2 -0
  1045. package/dist/web-types/actions/sendSolanaUsdc.d.ts +1 -0
  1046. package/dist/web-types/actions/sendUsdc.d.ts +4 -0
  1047. package/dist/web-types/actions/sendUserOperation.d.ts +2 -0
  1048. package/dist/web-types/actions/signEvmHash.d.ts +2 -0
  1049. package/dist/web-types/actions/signEvmMessage.d.ts +2 -0
  1050. package/dist/web-types/actions/signEvmTransaction.d.ts +2 -0
  1051. package/dist/web-types/actions/signEvmTypedData.d.ts +2 -0
  1052. package/dist/web-types/actions/signInWithEmail.d.ts +2 -0
  1053. package/dist/web-types/actions/signInWithOAuth.d.ts +4 -0
  1054. package/dist/web-types/actions/signInWithSms.d.ts +2 -0
  1055. package/dist/web-types/actions/signOut.d.ts +1 -0
  1056. package/dist/web-types/actions/signSolanaMessage.d.ts +2 -0
  1057. package/dist/web-types/actions/signSolanaTransaction.d.ts +2 -0
  1058. package/dist/web-types/actions/submitMfaEnrollment.d.ts +1 -0
  1059. package/dist/web-types/actions/submitMfaVerification.d.ts +1 -0
  1060. package/dist/web-types/actions/verifyEmailOTP.d.ts +2 -0
  1061. package/dist/web-types/actions/verifyOAuth.d.ts +2 -0
  1062. package/dist/web-types/actions/verifySmsOTP.d.ts +2 -0
  1063. package/dist/web-types/core.d.ts +27 -31
  1064. package/dist/web-types/index.d.ts +5 -3
  1065. package/dist/web-types/index.native.d.ts +3 -1
  1066. package/dist/web-types/index.web.d.ts +3 -1
  1067. package/dist/web-types/mfa/index.d.ts +1 -1
  1068. package/dist/web-types/mfa/utils.d.ts +1 -0
  1069. package/dist/web-types/shared/createEvmAccountIfNeeded.d.ts +2 -0
  1070. package/dist/web-types/shared/createSolanaAccountIfNeeded.d.ts +2 -0
  1071. package/dist/web-types/shared/initiateSignIn.d.ts +21 -0
  1072. package/dist/web-types/shared/verifyOTP.d.ts +3 -0
  1073. package/dist/web-types/state.d.ts +5 -0
  1074. package/dist/web-types/types.d.ts +16 -0
  1075. package/dist/web-types/version.d.ts +1 -1
  1076. package/package.json +2 -2
@@ -1,6 +1,75 @@
1
- function e(t, { strict: r = !0 } = {}) {
2
- return !t || typeof t != "string" ? !1 : r ? /^0x[0-9a-fA-F]*$/.test(t) : t.startsWith("0x");
1
+ import { DisconnectedError as l, from as d } from "./index.web106.js";
2
+ import { validateRequest as h, EIP1193ProviderError as m, STANDARD_ERROR_CODES as _ } from "./index.web72.js";
3
+ import { createEOAHandlers as p } from "./index.web107.js";
4
+ import { createSmartAccountHandlers as g } from "./index.web108.js";
5
+ import "viem";
6
+ import "zustand";
7
+ import "@coinbase/cdp-api-client";
8
+ function v(c, a, r) {
9
+ a.subscribe(
10
+ (e) => e.chainId,
11
+ (e, t) => {
12
+ e !== t && c.emit("chainChanged", e);
13
+ }
14
+ ), a.subscribe(
15
+ (e) => e.user,
16
+ (e, t) => {
17
+ if (!(e?.userId === t?.userId && e?.evmAccounts?.length === t?.evmAccounts?.length)) {
18
+ if (!e && t) {
19
+ c.emit("disconnect", new l());
20
+ return;
21
+ }
22
+ if (e && e.evmAccounts?.length && (!t || t.evmAccounts?.length === 0)) {
23
+ const s = a.getState().chainId;
24
+ c.emit("connect", { chainId: s });
25
+ return;
26
+ }
27
+ }
28
+ }
29
+ );
30
+ const { chainId: i, setChainId: o } = a.getState(), u = i || r.chains[0].id;
31
+ return i || o(u), d({
32
+ request: async (e) => {
33
+ h(e, r);
34
+ const t = e, s = a.getState().user, n = !!(s?.evmSmartAccounts && s.evmSmartAccounts.length > 0) ? g() : p();
35
+ switch (t.method) {
36
+ case "eth_accounts":
37
+ return n.eth_accounts();
38
+ case "eth_requestAccounts":
39
+ return n.eth_requestAccounts(c, a);
40
+ case "personal_sign":
41
+ return n.personal_sign(t.params, a);
42
+ case "eth_sendTransaction":
43
+ return n.eth_sendTransaction(t.params, a, r.transports);
44
+ case "wallet_disconnect":
45
+ return n.wallet_disconnect();
46
+ case "wallet_switchEthereumChain":
47
+ return n.wallet_switchEthereumChain(t.params, a);
48
+ case "eth_sign":
49
+ return n.eth_sign(t.params, a);
50
+ case "eth_signTypedData_v4":
51
+ return n.eth_signTypedData_v4(t.params, a);
52
+ case "eth_chainId":
53
+ return n.eth_chainId(a);
54
+ case "wallet_sendCalls":
55
+ return n.wallet_sendCalls(t.params, a);
56
+ case "wallet_getCallsStatus":
57
+ return n.wallet_getCallsStatus(t.params, a);
58
+ case "wallet_getCapabilities":
59
+ return n.wallet_getCapabilities();
60
+ // Catch-all for any unknown method
61
+ default:
62
+ throw new m(
63
+ _.provider.unsupportedMethod,
64
+ `Method ${t.method} not supported`
65
+ );
66
+ }
67
+ },
68
+ // Event emitter methods - only the ones required by the interface
69
+ on: c.on.bind(c),
70
+ removeListener: c.removeListener.bind(c)
71
+ });
3
72
  }
4
73
  export {
5
- e as isHex
74
+ v as createProvider
6
75
  };
@@ -1,37 +1,11 @@
1
- import { SizeExceedsPaddingSizeError as d } from "./index.web94.js";
2
- function f(n, { dir: r, size: t = 32 } = {}) {
3
- return typeof n == "string" ? p(n, { dir: r, size: t }) : i(n, { dir: r, size: t });
4
- }
5
- function p(n, { dir: r, size: t = 32 } = {}) {
6
- if (t === null)
7
- return n;
8
- const e = n.replace("0x", "");
9
- if (e.length > t * 2)
10
- throw new d({
11
- size: Math.ceil(e.length / 2),
12
- targetSize: t,
13
- type: "hex"
14
- });
15
- return `0x${e[r === "right" ? "padEnd" : "padStart"](t * 2, "0")}`;
16
- }
17
- function i(n, { dir: r, size: t = 32 } = {}) {
18
- if (t === null)
19
- return n;
20
- if (n.length > t)
21
- throw new d({
22
- size: n.length,
23
- targetSize: t,
24
- type: "bytes"
25
- });
26
- const e = new Uint8Array(t);
27
- for (let a = 0; a < t; a++) {
28
- const o = r === "right";
29
- e[o ? a : t - a - 1] = n[o ? a : n.length - a - 1];
30
- }
31
- return e;
1
+ import { AuthManager as r } from "./index.web66.js";
2
+ import { CustomAuthManager as o } from "./index.web99.js";
3
+ import "@coinbase/cdp-api-client";
4
+ import "viem";
5
+ import { getConfig as n } from "./index.web55.js";
6
+ function a(t) {
7
+ return n().customAuth?.getJwt ? new o(t) : new r(t);
32
8
  }
33
9
  export {
34
- f as pad,
35
- i as padBytes,
36
- p as padHex
10
+ a as createAuthManager
37
11
  };
@@ -1,15 +1,98 @@
1
- import { BaseError as o } from "./index.web99.js";
2
- class d extends o {
3
- constructor({ offset: r, position: s, size: e }) {
4
- super(`Slice ${s === "start" ? "starting" : "ending"} at offset "${r}" is out-of-bounds (size: ${e}).`, { name: "SliceOffsetOutOfBoundsError" });
1
+ import "@coinbase/cdp-api-client";
2
+ import "./index.web2.js";
3
+ import "./index.web3.js";
4
+ import "jose";
5
+ import "viem";
6
+ import { getPlatformOAuth as h } from "./index.web4.js";
7
+ import "./index.web84.js";
8
+ import { verifyOAuth as u } from "./index.web15.js";
9
+ import "./index.web74.js";
10
+ import "./index.web85.js";
11
+ import "@solana/web3.js";
12
+ import "bs58";
13
+ class d {
14
+ oauthFlowState = null;
15
+ oauthStateChangeCallbacks = [];
16
+ /**
17
+ * Adds a callback to be called when the OAuth state changes.
18
+ *
19
+ * @param callback - The function to call when the OAuth state changes.
20
+ */
21
+ async addOAuthStateChangeCallback(t) {
22
+ this.oauthStateChangeCallbacks.push(t), t(this.oauthFlowState);
5
23
  }
6
- }
7
- class n extends o {
8
- constructor({ size: r, targetSize: s, type: e }) {
9
- super(`${e.charAt(0).toUpperCase()}${e.slice(1).toLowerCase()} size (${r}) exceeds padding size (${s}).`, { name: "SizeExceedsPaddingSizeError" });
24
+ /**
25
+ * Sets the OAuth flow state.
26
+ *
27
+ * @param oauthFlowState - The OAuth flow state.
28
+ */
29
+ async setOAuthFlowState(t) {
30
+ this.oauthFlowState = t, this.oauthStateChangeCallbacks.forEach((a) => a(this.oauthFlowState));
31
+ }
32
+ /**
33
+ * Clears the OAuth flow state.
34
+ */
35
+ async clearOAuthFlowState() {
36
+ this.oauthFlowState = null, this.oauthStateChangeCallbacks.forEach((t) => t(null));
37
+ }
38
+ /**
39
+ * Gets the OAuth flow state.
40
+ *
41
+ * @returns The OAuth flow state.
42
+ */
43
+ async getOAuthFlowState() {
44
+ return this.oauthFlowState;
45
+ }
46
+ /**
47
+ * Handles the OAuth code.
48
+ *
49
+ * @param url - The URL to handle.
50
+ * @returns A promise that resolves when the OAuth code is handled.
51
+ * @throws An error if the URL is required and not provided.
52
+ */
53
+ async handleOAuthCode(t) {
54
+ try {
55
+ const a = await h().getOAuthParams(t);
56
+ if (await h().cleanupOAuthParams(), !a)
57
+ return;
58
+ const { providerType: r, code: o, flowId: e, error: s, errorDescription: i } = a;
59
+ if (s || i) {
60
+ await this.setOAuthFlowState({
61
+ providerType: r,
62
+ status: "error",
63
+ errorDescription: s ?? i,
64
+ code: o,
65
+ flowId: e,
66
+ error: s
67
+ });
68
+ return;
69
+ }
70
+ if (!o || !r || !e)
71
+ return;
72
+ await this.setOAuthFlowState({
73
+ providerType: r,
74
+ status: "pending",
75
+ code: o,
76
+ flowId: e
77
+ }), await u({
78
+ code: o,
79
+ providerType: r,
80
+ flowId: e
81
+ }), await this.setOAuthFlowState({
82
+ providerType: r,
83
+ status: "success",
84
+ code: o,
85
+ flowId: e
86
+ });
87
+ } catch (a) {
88
+ const r = a instanceof Error ? a.message : "Unknown error";
89
+ await h().cleanupOAuthParams(), await this.setOAuthFlowState({
90
+ status: "error",
91
+ errorDescription: r
92
+ });
93
+ }
10
94
  }
11
95
  }
12
96
  export {
13
- n as SizeExceedsPaddingSizeError,
14
- d as SliceOffsetOutOfBoundsError
97
+ d as OAuthManager
15
98
  };
@@ -1,7 +1,139 @@
1
- import { isHex as r } from "./index.web92.js";
2
- function i(t) {
3
- return r(t, { strict: !1 }) ? Math.ceil((t.length - 2) / 2) : t.length;
1
+ import "@coinbase/cdp-api-client";
2
+ import "viem";
3
+ import { mockUser as e } from "./index.web82.js";
4
+ class n {
5
+ authState = null;
6
+ authStateChangeCallback = null;
7
+ /**
8
+ * Initializes the mock auth manager.
9
+ *
10
+ * @param _projectId - The project ID (unused in mock implementation).
11
+ */
12
+ constructor(t) {
13
+ }
14
+ /**
15
+ * Awaitable method whose promise only resolves when the auth manager is ready to be used.
16
+ *
17
+ * @returns A promise that resolves when the auth manager is ready to be used.
18
+ */
19
+ async ensureInitialized() {
20
+ return Promise.resolve();
21
+ }
22
+ /**
23
+ * Gets the current user, or null if there is no user signed in.
24
+ *
25
+ * @returns The current mock user if signed in, null otherwise.
26
+ */
27
+ getUser() {
28
+ return this.authState?.user ?? null;
29
+ }
30
+ /**
31
+ * Returns whether the user is signed in - i.e., whether there is an unexpired
32
+ * access token and user.
33
+ *
34
+ * @returns True if the mock user is signed in and token is not expired, false otherwise.
35
+ */
36
+ async isSignedIn() {
37
+ return this.authState ? Promise.resolve(this.authState.expiresAt > Date.now()) : Promise.resolve(!1);
38
+ }
39
+ /**
40
+ * Signs out the user, clearing all authentication state.
41
+ * In the mock implementation, this simply clears the local auth state.
42
+ */
43
+ async signOut() {
44
+ await this.clearAuthState();
45
+ }
46
+ /**
47
+ * Sets a callback to be called when the auth state changes.
48
+ * The callback is immediately called with the current auth state.
49
+ *
50
+ * @param callback - The function to call when the auth state changes.
51
+ * Will be called with the current user or null.
52
+ */
53
+ addAuthStateChangeCallback(t) {
54
+ this.authStateChangeCallback = t, t(this.authState?.user ?? null);
55
+ }
56
+ /**
57
+ * Gets the access token. For mock, this always returns a valid token if signed in.
58
+ * If the current token is expired, it will be refreshed automatically.
59
+ *
60
+ * @param options - The options for getting the token.
61
+ * @param options.forceRefresh - Whether to force a refresh of the token.
62
+ * @returns The mock access token if signed in, null otherwise.
63
+ */
64
+ async getToken(t) {
65
+ return this.authState ? ((t?.forceRefresh || this.authState.expiresAt <= Date.now()) && await this.refreshToken(), this.authState?.accessToken ?? null) : null;
66
+ }
67
+ /**
68
+ * Gets the expiration time of the access token, or null if the user is not signed in.
69
+ *
70
+ * @returns The expiration time of the access token.
71
+ */
72
+ async getTokenExpiration() {
73
+ return this.authState?.expiresAt ?? null;
74
+ }
75
+ /**
76
+ * Gets the currentlly registered wallet secret ID.
77
+ *
78
+ * @returns The wallet secret ID.
79
+ */
80
+ async getWalletSecretId() {
81
+ return "mock-wallet-secret-id";
82
+ }
83
+ /**
84
+ * Gets the X-Wallet-Auth header value.
85
+ *
86
+ * @param _options - The options for the request.
87
+ * @param _options.requestMethod - The HTTP method of the request.
88
+ * @param _options.requestHost - The host of the request.
89
+ * @param _options.requestPath - The path of the request.
90
+ * @param _options.requestData - The data of the request.
91
+ * @returns The X-Wallet-Auth header value.
92
+ */
93
+ async getXWalletAuth(t) {
94
+ if (!this.authState)
95
+ throw new Error("User not signed in");
96
+ return "x-wallet-auth";
97
+ }
98
+ /**
99
+ * Gets the authentication state.
100
+ *
101
+ * @returns The authentication state.
102
+ */
103
+ getAuthState() {
104
+ return this.authState;
105
+ }
106
+ /**
107
+ * Sets the authentication state.
108
+ * This will trigger the auth state change callback if one is registered.
109
+ *
110
+ * @param authState - The new authentication state to set.
111
+ */
112
+ async setAuthState(t) {
113
+ this.authState = t, this.authStateChangeCallback && this.authStateChangeCallback(this.authState?.user ?? null);
114
+ }
115
+ /**
116
+ * Clears the authentication state.
117
+ * This will trigger the auth state change callback if one is registered.
118
+ */
119
+ async clearAuthState() {
120
+ this.authState = null, this.authStateChangeCallback && this.authStateChangeCallback(null);
121
+ }
122
+ /**
123
+ * Refreshes the mock token.
124
+ * Only refreshes if there is an existing auth state (user is signed in).
125
+ * Sets a new mock token with a 24-hour expiration.
126
+ *
127
+ * @private
128
+ */
129
+ async refreshToken() {
130
+ this.authState && await this.setAuthState({
131
+ accessToken: "mock-access-token",
132
+ expiresAt: Date.now() + 1e3 * 60 * 60 * 24,
133
+ user: e
134
+ });
135
+ }
4
136
  }
5
137
  export {
6
- i as size
138
+ n as MockAuthManager
7
139
  };
@@ -1,31 +1,71 @@
1
- import { SliceOffsetOutOfBoundsError as n } from "./index.web94.js";
2
- import { isHex as c } from "./index.web92.js";
3
- import { size as s } from "./index.web95.js";
4
- function O(e, f, i, { strict: o } = {}) {
5
- return c(e, { strict: !1 }) ? l(e, f, i, {
6
- strict: o
7
- }) : u(e, f, i, {
8
- strict: o
9
- });
10
- }
11
- function t(e, f, i) {
12
- if (s(e) !== i - f)
13
- throw new n({
14
- offset: i,
15
- position: "end",
16
- size: s(e)
1
+ import "@coinbase/cdp-api-client";
2
+ import "viem";
3
+ import "./index.web2.js";
4
+ import "./index.web3.js";
5
+ import "jose";
6
+ import { getPlatformOAuth as a } from "./index.web4.js";
7
+ import "./index.web84.js";
8
+ import { verifyOAuth as e } from "./index.web15.js";
9
+ import "./index.web74.js";
10
+ import "./index.web85.js";
11
+ import "@solana/web3.js";
12
+ import "bs58";
13
+ class g {
14
+ oauthFlowState = null;
15
+ oauthStateChangeCallbacks = [];
16
+ /**
17
+ * Initializes the mock OAuth manager.
18
+ */
19
+ constructor() {
20
+ this.handleOAuthCode();
21
+ }
22
+ /**
23
+ * Gets the current user, or null if there is no user signed in.
24
+ *
25
+ * @returns The current mock user if signed in, null otherwise.
26
+ */
27
+ async getOAuthFlowState() {
28
+ return this.oauthFlowState ?? null;
29
+ }
30
+ /**
31
+ * Sets the OAuth flow state.
32
+ *
33
+ * @param oauthFlowState - The OAuth flow state to set.
34
+ */
35
+ async setOAuthFlowState(t) {
36
+ this.oauthFlowState = t, this.oauthStateChangeCallbacks.forEach((o) => o(this.oauthFlowState));
37
+ }
38
+ /**
39
+ * Adds a callback to be called when the OAuth state changes.
40
+ *
41
+ * @param callback - The function to call when the OAuth state changes.
42
+ */
43
+ async addOAuthStateChangeCallback(t) {
44
+ this.oauthStateChangeCallbacks.push(t), t(this.oauthFlowState);
45
+ }
46
+ /**
47
+ * Clears the OAuth flow state.
48
+ */
49
+ async clearOAuthFlowState() {
50
+ this.oauthFlowState = null, this.oauthStateChangeCallbacks.forEach((t) => t(null));
51
+ }
52
+ /**
53
+ * Awaitable method whose promise only resolves when the OAuth manager is ready to be used.
54
+ */
55
+ async handleOAuthCode() {
56
+ await a()?.cleanupOAuthParams(), await this.setOAuthFlowState({
57
+ providerType: "google",
58
+ status: "pending",
59
+ code: "mock-oauth-code",
60
+ flowId: "mock-flow-id"
61
+ }), await e({ code: "mock-oauth-code", providerType: "google", flowId: "mock-flow-id" }), await this.setOAuthFlowState({
62
+ providerType: "google",
63
+ status: "success",
64
+ code: "mock-oauth-code",
65
+ flowId: "mock-flow-id"
17
66
  });
18
- }
19
- function u(e, f, i, { strict: o } = {}) {
20
- const r = e.slice(f, i);
21
- return o && t(r, f, i), r;
22
- }
23
- function l(e, f, i, { strict: o } = {}) {
24
- const r = `0x${e.replace("0x", "").slice(f * 2, i * 2)}`;
25
- return o && t(r, f, i), r;
67
+ }
26
68
  }
27
69
  export {
28
- O as slice,
29
- u as sliceBytes,
30
- l as sliceHex
70
+ g as MockOAuthManager
31
71
  };
@@ -1,9 +1,29 @@
1
- function f(e, { dir: n = "left" } = {}) {
2
- let t = typeof e == "string" ? e.replace("0x", "") : e, i = 0;
3
- for (let l = 0; l < t.length - 1 && t[n === "left" ? l : t.length - l - 1].toString() === "0"; l++)
4
- i++;
5
- return t = n === "left" ? t.slice(i) : t.slice(0, t.length - i), typeof e == "string" ? (t.length === 1 && n === "right" && (t = `${t}0`), `0x${t.length % 2 === 1 ? `0${t}` : t}`) : t;
6
- }
1
+ import { initiateAuthentication as n } from "@coinbase/cdp-api-client";
2
+ import { getConfig as t, getCoreAuthManager as o } from "./index.web55.js";
3
+ const f = async (e, r) => {
4
+ if (t().useMock)
5
+ return "redirectUrl" in e ? {
6
+ authUrl: "mock-auth-url",
7
+ flowId: "mock-flow-id"
8
+ } : {
9
+ message: "Mock sign in initiated",
10
+ flowId: "mock-flow-id"
11
+ };
12
+ if (await o().isSignedIn())
13
+ throw new Error("User is already authenticated. Please sign out first.");
14
+ const i = await n(
15
+ t().projectId,
16
+ e,
17
+ r
18
+ );
19
+ return "authUrl" in i ? {
20
+ flowId: i.flowId,
21
+ authUrl: i.authUrl
22
+ } : {
23
+ flowId: i.flowId,
24
+ message: "message" in i ? i.message : ""
25
+ };
26
+ };
7
27
  export {
8
- f as trim
28
+ f as initiateSignIn
9
29
  };
@@ -1,45 +1,44 @@
1
- import { BaseError as l } from "./index.web99.js";
2
- import { createCursor as r } from "./index.web100.js";
3
- import { hexToBytes as g } from "./index.web87.js";
4
- import { bytesToHex as u } from "./index.web85.js";
5
- function m(n, e = "hex") {
6
- const i = s(n), h = r(new Uint8Array(i.length));
7
- return i.encode(h), e === "hex" ? u(h.bytes) : h.bytes;
8
- }
9
- function s(n) {
10
- return Array.isArray(n) ? p(n.map((e) => s(e))) : y(n);
11
- }
12
- function p(n) {
13
- const e = n.reduce((t, f) => t + f.length, 0), i = o(e);
1
+ import { createEvmAccountIfNeeded as u } from "./index.web100.js";
2
+ import { createSolanaAccountIfNeeded as f } from "./index.web101.js";
3
+ import { toAuthState as g } from "./index.web80.js";
4
+ import { mockUser as n } from "./index.web82.js";
5
+ import { getConfig as s, getCoreAuthManager as o } from "./index.web55.js";
6
+ const h = async (r, c, i) => {
7
+ if (s().useMock)
8
+ return await o().setAuthState({
9
+ accessToken: "mock-access-token",
10
+ expiresAt: Date.now() + 1e3 * 60 * 60 * 24,
11
+ user: n
12
+ }), {
13
+ message: c,
14
+ user: n,
15
+ isNewUser: !1
16
+ };
17
+ const e = await i(s().projectId, r, r.idempotencyKey);
18
+ let t = g(
19
+ e.accessToken,
20
+ e.validUntil,
21
+ e.endUser
22
+ );
23
+ await o().setAuthState(t);
24
+ const a = s();
25
+ a.ethereum?.createOnLogin && (t = await u(
26
+ t,
27
+ e.accessToken,
28
+ e.validUntil,
29
+ a.ethereum.createOnLogin
30
+ )), a.solana?.createOnLogin && (t = await f(
31
+ t,
32
+ e.accessToken,
33
+ e.validUntil
34
+ ));
35
+ const m = o().getUser();
14
36
  return {
15
- length: e <= 55 ? 1 + e : 1 + i + e,
16
- encode(t) {
17
- e <= 55 ? t.pushByte(192 + e) : (t.pushByte(247 + i), i === 1 ? t.pushUint8(e) : i === 2 ? t.pushUint16(e) : i === 3 ? t.pushUint24(e) : t.pushUint32(e));
18
- for (const { encode: f } of n)
19
- f(t);
20
- }
37
+ message: e.message,
38
+ user: m,
39
+ isNewUser: e.isNewEndUser
21
40
  };
22
- }
23
- function y(n) {
24
- const e = typeof n == "string" ? g(n) : n, i = o(e.length);
25
- return {
26
- length: e.length === 1 && e[0] < 128 ? 1 : e.length <= 55 ? 1 + e.length : 1 + i + e.length,
27
- encode(t) {
28
- e.length === 1 && e[0] < 128 ? t.pushBytes(e) : e.length <= 55 ? (t.pushByte(128 + e.length), t.pushBytes(e)) : (t.pushByte(183 + i), i === 1 ? t.pushUint8(e.length) : i === 2 ? t.pushUint16(e.length) : i === 3 ? t.pushUint24(e.length) : t.pushUint32(e.length), t.pushBytes(e));
29
- }
30
- };
31
- }
32
- function o(n) {
33
- if (n < 2 ** 8)
34
- return 1;
35
- if (n < 2 ** 16)
36
- return 2;
37
- if (n < 2 ** 24)
38
- return 3;
39
- if (n < 2 ** 32)
40
- return 4;
41
- throw new l("Length is too large.");
42
- }
41
+ };
43
42
  export {
44
- m as toRlp
43
+ h as verifyOTP
45
44
  };