@coinbase/cdp-core 0.0.104 → 0.0.105

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 (438) hide show
  1. package/dist/esm/index.native.js +29 -29
  2. package/dist/esm/index.native108.js +2 -2
  3. package/dist/esm/index.native11.js +1 -1
  4. package/dist/esm/index.native112.js +3 -3
  5. package/dist/esm/index.native123.js +12 -12
  6. package/dist/esm/index.native124.js +371 -84
  7. package/dist/esm/index.native125.js +26 -374
  8. package/dist/esm/index.native126.js +26 -26
  9. package/dist/esm/index.native127.js +88 -27
  10. package/dist/esm/index.native128.js +1 -1
  11. package/dist/esm/index.native130.js +4 -4
  12. package/dist/esm/index.native131.js +1 -1
  13. package/dist/esm/index.native136.js +1 -1
  14. package/dist/esm/index.native137.js +1 -1
  15. package/dist/esm/index.native138.js +1 -1
  16. package/dist/esm/index.native140.js +35 -13
  17. package/dist/esm/index.native141.js +67 -11
  18. package/dist/esm/index.native142.js +13 -54
  19. package/dist/esm/index.native143.js +27 -10
  20. package/dist/esm/index.native144.js +8 -2
  21. package/dist/esm/index.native145.js +4 -45
  22. package/dist/esm/index.native146.js +27 -13
  23. package/dist/esm/index.native147.js +9 -35
  24. package/dist/esm/index.native148.js +7 -67
  25. package/dist/esm/index.native149.js +72 -6
  26. package/dist/esm/index.native150.js +10 -10
  27. package/dist/esm/index.native151.js +3 -7
  28. package/dist/esm/index.native152.js +14 -3
  29. package/dist/esm/index.native153.js +4 -27
  30. package/dist/esm/index.native154.js +13 -8
  31. package/dist/esm/index.native155.js +19 -7
  32. package/dist/esm/index.native156.js +48 -67
  33. package/dist/esm/index.native157.js +16 -26
  34. package/dist/esm/index.native158.js +23 -3
  35. package/dist/esm/index.native159.js +8 -14
  36. package/dist/esm/index.native160.js +41 -4
  37. package/dist/esm/index.native161.js +7 -13
  38. package/dist/esm/index.native162.js +11 -10
  39. package/dist/esm/index.native163.js +52 -58
  40. package/dist/esm/index.native164.js +10 -17
  41. package/dist/esm/index.native165.js +2 -24
  42. package/dist/esm/index.native166.js +45 -9
  43. package/dist/esm/index.native167.js +13 -41
  44. package/dist/esm/index.native168.js +12 -7
  45. package/dist/esm/index.native169.js +11 -20
  46. package/dist/esm/index.native170.js +1 -1
  47. package/dist/esm/index.native171.js +14 -2
  48. package/dist/esm/index.native172.js +56 -2
  49. package/dist/esm/index.native173.js +6 -13
  50. package/dist/esm/index.native174.js +20 -54
  51. package/dist/esm/index.native175.js +17 -6
  52. package/dist/esm/index.native176.js +44 -20
  53. package/dist/esm/index.native177.js +3 -17
  54. package/dist/esm/index.native178.js +3 -45
  55. package/dist/esm/index.native179.js +34 -3
  56. package/dist/esm/index.native180.js +12 -3
  57. package/dist/esm/index.native181.js +4 -34
  58. package/dist/esm/index.native182.js +27 -11
  59. package/dist/esm/index.native183.js +6 -4
  60. package/dist/esm/index.native184.js +29 -25
  61. package/dist/esm/index.native185.js +12 -6
  62. package/dist/esm/index.native186.js +54 -31
  63. package/dist/esm/index.native187.js +41 -11
  64. package/dist/esm/index.native188.js +126 -54
  65. package/dist/esm/index.native189.js +100 -38
  66. package/dist/esm/index.native190.js +6 -127
  67. package/dist/esm/index.native191.js +3 -105
  68. package/dist/esm/index.native192.js +78 -6
  69. package/dist/esm/index.native193.js +2 -3
  70. package/dist/esm/index.native194.js +2 -79
  71. package/dist/esm/index.native195.js +38 -2
  72. package/dist/esm/index.native196.js +7 -2
  73. package/dist/esm/index.native197.js +29 -32
  74. package/dist/esm/index.native198.js +14 -6
  75. package/dist/esm/index.native199.js +30 -30
  76. package/dist/esm/index.native200.js +18 -14
  77. package/dist/esm/index.native201.js +8 -34
  78. package/dist/esm/index.native202.js +9 -17
  79. package/dist/esm/index.native203.js +11 -8
  80. package/dist/esm/index.native204.js +13 -10
  81. package/dist/esm/index.native205.js +5 -11
  82. package/dist/esm/index.native206.js +5 -14
  83. package/dist/esm/index.native207.js +10 -5
  84. package/dist/esm/index.native208.js +2 -5
  85. package/dist/esm/index.native209.js +2 -11
  86. package/dist/esm/index.native210.js +20 -38
  87. package/dist/esm/index.native211.js +10 -2
  88. package/dist/esm/index.native212.js +20 -70
  89. package/dist/esm/index.native213.js +93 -34
  90. package/dist/esm/index.native214.js +20 -14
  91. package/dist/esm/index.native215.js +118 -8
  92. package/dist/esm/index.native216.js +104 -2
  93. package/dist/esm/index.native217.js +71 -361
  94. package/dist/esm/index.native218.js +78 -826
  95. package/dist/esm/index.native219.js +2 -104
  96. package/dist/esm/index.native220.js +107 -77
  97. package/dist/esm/index.native221.js +2 -79
  98. package/dist/esm/index.native222.js +38 -20
  99. package/dist/esm/index.native223.js +2 -10
  100. package/dist/esm/index.native224.js +70 -20
  101. package/dist/esm/index.native225.js +34 -93
  102. package/dist/esm/index.native226.js +14 -20
  103. package/dist/esm/index.native227.js +8 -118
  104. package/dist/esm/index.native228.js +2 -2
  105. package/dist/esm/index.native229.js +363 -103
  106. package/dist/esm/index.native230.js +827 -2
  107. package/dist/esm/index.native231.js +1 -1
  108. package/dist/esm/index.native234.js +5 -5
  109. package/dist/esm/index.native235.js +2 -2
  110. package/dist/esm/index.native236.js +47 -2
  111. package/dist/esm/index.native237.js +2 -2
  112. package/dist/esm/index.native238.js +2 -2
  113. package/dist/esm/index.native239.js +2 -47
  114. package/dist/esm/index.native247.js +1 -1
  115. package/dist/esm/index.native251.js +1 -1
  116. package/dist/esm/index.native3.js +1 -1
  117. package/dist/esm/index.native60.js +12 -12
  118. package/dist/esm/index.native61.js +7 -7
  119. package/dist/esm/index.native62.js +9 -9
  120. package/dist/esm/index.native82.js +1 -1
  121. package/dist/esm/index.web.js +26 -26
  122. package/dist/esm/index.web102.js +3 -3
  123. package/dist/esm/index.web109.js +2 -2
  124. package/dist/esm/index.web120.js +12 -12
  125. package/dist/esm/index.web121.js +3 -3
  126. package/dist/esm/index.web122.js +31 -2
  127. package/dist/esm/index.web123.js +28 -65
  128. package/dist/esm/index.web124.js +2 -367
  129. package/dist/esm/index.web125.js +63 -14
  130. package/dist/esm/index.web126.js +360 -18
  131. package/dist/esm/index.web127.js +13 -47
  132. package/dist/esm/index.web128.js +22 -28
  133. package/dist/esm/index.web129.js +50 -28
  134. package/dist/esm/index.web132.js +1 -1
  135. package/dist/esm/index.web133.js +1 -1
  136. package/dist/esm/index.web134.js +1 -1
  137. package/dist/esm/index.web135.js +1 -1
  138. package/dist/esm/index.web136.js +2 -2
  139. package/dist/esm/index.web137.js +1 -1
  140. package/dist/esm/index.web142.js +2 -2
  141. package/dist/esm/index.web149.js +1 -1
  142. package/dist/esm/index.web161.js +1 -1
  143. package/dist/esm/index.web165.js +14 -2
  144. package/dist/esm/index.web166.js +56 -2
  145. package/dist/esm/index.web167.js +6 -13
  146. package/dist/esm/index.web168.js +20 -54
  147. package/dist/esm/index.web169.js +17 -6
  148. package/dist/esm/index.web170.js +44 -20
  149. package/dist/esm/index.web171.js +3 -17
  150. package/dist/esm/index.web172.js +3 -45
  151. package/dist/esm/index.web173.js +34 -3
  152. package/dist/esm/index.web174.js +12 -3
  153. package/dist/esm/index.web175.js +4 -34
  154. package/dist/esm/index.web176.js +27 -11
  155. package/dist/esm/index.web177.js +6 -4
  156. package/dist/esm/index.web178.js +29 -25
  157. package/dist/esm/index.web179.js +12 -6
  158. package/dist/esm/index.web180.js +54 -31
  159. package/dist/esm/index.web181.js +41 -11
  160. package/dist/esm/index.web182.js +126 -54
  161. package/dist/esm/index.web183.js +100 -38
  162. package/dist/esm/index.web184.js +6 -127
  163. package/dist/esm/index.web185.js +3 -105
  164. package/dist/esm/index.web186.js +78 -6
  165. package/dist/esm/index.web187.js +2 -3
  166. package/dist/esm/index.web188.js +2 -79
  167. package/dist/esm/index.web189.js +38 -2
  168. package/dist/esm/index.web190.js +7 -2
  169. package/dist/esm/index.web191.js +29 -32
  170. package/dist/esm/index.web192.js +14 -6
  171. package/dist/esm/index.web193.js +30 -30
  172. package/dist/esm/index.web194.js +18 -14
  173. package/dist/esm/index.web195.js +8 -34
  174. package/dist/esm/index.web196.js +9 -17
  175. package/dist/esm/index.web197.js +11 -8
  176. package/dist/esm/index.web198.js +13 -10
  177. package/dist/esm/index.web199.js +5 -11
  178. package/dist/esm/index.web200.js +5 -14
  179. package/dist/esm/index.web201.js +10 -5
  180. package/dist/esm/index.web202.js +2 -5
  181. package/dist/esm/index.web203.js +2 -11
  182. package/dist/esm/index.web204.js +109 -2
  183. package/dist/esm/index.web205.js +2 -109
  184. package/dist/esm/index.web206.js +2 -2
  185. package/dist/esm/index.web214.js +1 -1
  186. package/dist/esm/index.web216.js +38 -7
  187. package/dist/esm/index.web218.js +67 -366
  188. package/dist/esm/index.web219.js +34 -826
  189. package/dist/esm/index.web220.js +14 -38
  190. package/dist/esm/index.web221.js +8 -2
  191. package/dist/esm/index.web222.js +2 -70
  192. package/dist/esm/index.web223.js +364 -30
  193. package/dist/esm/index.web224.js +826 -14
  194. package/dist/esm/index.web225.js +1 -1
  195. package/dist/esm/index.web228.js +32 -3
  196. package/dist/esm/index.web229.js +6 -46
  197. package/dist/esm/index.web230.js +44 -30
  198. package/dist/esm/index.web231.js +3 -6
  199. package/dist/esm/index.web233.js +1 -1
  200. package/dist/esm/index.web235.js +1 -1
  201. package/dist/esm/index.web239.js +1 -1
  202. package/dist/esm/index.web244.js +14 -78
  203. package/dist/esm/index.web245.js +78 -14
  204. package/dist/esm/index.web3.js +1 -1
  205. package/dist/esm/index.web57.js +12 -12
  206. package/dist/esm/index.web58.js +7 -7
  207. package/dist/esm/index.web59.js +9 -9
  208. package/dist/esm/index.web8.js +1 -1
  209. package/dist/native/index.native.js +29 -29
  210. package/dist/native/index.native108.js +2 -2
  211. package/dist/native/index.native11.js +1 -1
  212. package/dist/native/index.native112.js +3 -3
  213. package/dist/native/index.native123.js +12 -12
  214. package/dist/native/index.native124.js +371 -84
  215. package/dist/native/index.native125.js +26 -374
  216. package/dist/native/index.native126.js +26 -26
  217. package/dist/native/index.native127.js +88 -27
  218. package/dist/native/index.native128.js +1 -1
  219. package/dist/native/index.native130.js +4 -4
  220. package/dist/native/index.native131.js +1 -1
  221. package/dist/native/index.native136.js +1 -1
  222. package/dist/native/index.native137.js +1 -1
  223. package/dist/native/index.native138.js +1 -1
  224. package/dist/native/index.native140.js +35 -13
  225. package/dist/native/index.native141.js +67 -11
  226. package/dist/native/index.native142.js +13 -54
  227. package/dist/native/index.native143.js +27 -10
  228. package/dist/native/index.native144.js +8 -2
  229. package/dist/native/index.native145.js +4 -45
  230. package/dist/native/index.native146.js +27 -13
  231. package/dist/native/index.native147.js +9 -35
  232. package/dist/native/index.native148.js +7 -67
  233. package/dist/native/index.native149.js +72 -6
  234. package/dist/native/index.native150.js +10 -10
  235. package/dist/native/index.native151.js +3 -7
  236. package/dist/native/index.native152.js +14 -3
  237. package/dist/native/index.native153.js +4 -27
  238. package/dist/native/index.native154.js +13 -8
  239. package/dist/native/index.native155.js +19 -7
  240. package/dist/native/index.native156.js +48 -67
  241. package/dist/native/index.native157.js +16 -26
  242. package/dist/native/index.native158.js +23 -3
  243. package/dist/native/index.native159.js +8 -14
  244. package/dist/native/index.native160.js +41 -4
  245. package/dist/native/index.native161.js +7 -13
  246. package/dist/native/index.native162.js +11 -10
  247. package/dist/native/index.native163.js +52 -58
  248. package/dist/native/index.native164.js +10 -17
  249. package/dist/native/index.native165.js +2 -24
  250. package/dist/native/index.native166.js +45 -9
  251. package/dist/native/index.native167.js +13 -41
  252. package/dist/native/index.native168.js +12 -7
  253. package/dist/native/index.native169.js +11 -20
  254. package/dist/native/index.native170.js +1 -1
  255. package/dist/native/index.native171.js +14 -2
  256. package/dist/native/index.native172.js +56 -2
  257. package/dist/native/index.native173.js +6 -13
  258. package/dist/native/index.native174.js +20 -54
  259. package/dist/native/index.native175.js +17 -6
  260. package/dist/native/index.native176.js +44 -20
  261. package/dist/native/index.native177.js +3 -17
  262. package/dist/native/index.native178.js +3 -45
  263. package/dist/native/index.native179.js +34 -3
  264. package/dist/native/index.native180.js +12 -3
  265. package/dist/native/index.native181.js +4 -34
  266. package/dist/native/index.native182.js +27 -11
  267. package/dist/native/index.native183.js +6 -4
  268. package/dist/native/index.native184.js +29 -25
  269. package/dist/native/index.native185.js +12 -6
  270. package/dist/native/index.native186.js +54 -31
  271. package/dist/native/index.native187.js +41 -11
  272. package/dist/native/index.native188.js +126 -54
  273. package/dist/native/index.native189.js +100 -38
  274. package/dist/native/index.native190.js +6 -127
  275. package/dist/native/index.native191.js +3 -105
  276. package/dist/native/index.native192.js +78 -6
  277. package/dist/native/index.native193.js +2 -3
  278. package/dist/native/index.native194.js +2 -79
  279. package/dist/native/index.native195.js +38 -2
  280. package/dist/native/index.native196.js +7 -2
  281. package/dist/native/index.native197.js +29 -32
  282. package/dist/native/index.native198.js +14 -6
  283. package/dist/native/index.native199.js +30 -30
  284. package/dist/native/index.native200.js +18 -14
  285. package/dist/native/index.native201.js +8 -34
  286. package/dist/native/index.native202.js +9 -17
  287. package/dist/native/index.native203.js +11 -8
  288. package/dist/native/index.native204.js +13 -10
  289. package/dist/native/index.native205.js +5 -11
  290. package/dist/native/index.native206.js +5 -14
  291. package/dist/native/index.native207.js +10 -5
  292. package/dist/native/index.native208.js +2 -5
  293. package/dist/native/index.native209.js +2 -11
  294. package/dist/native/index.native210.js +20 -38
  295. package/dist/native/index.native211.js +10 -2
  296. package/dist/native/index.native212.js +20 -70
  297. package/dist/native/index.native213.js +93 -34
  298. package/dist/native/index.native214.js +20 -14
  299. package/dist/native/index.native215.js +118 -8
  300. package/dist/native/index.native216.js +104 -2
  301. package/dist/native/index.native217.js +71 -361
  302. package/dist/native/index.native218.js +78 -826
  303. package/dist/native/index.native219.js +2 -104
  304. package/dist/native/index.native220.js +107 -77
  305. package/dist/native/index.native221.js +2 -79
  306. package/dist/native/index.native222.js +38 -20
  307. package/dist/native/index.native223.js +2 -10
  308. package/dist/native/index.native224.js +70 -20
  309. package/dist/native/index.native225.js +34 -93
  310. package/dist/native/index.native226.js +14 -20
  311. package/dist/native/index.native227.js +8 -118
  312. package/dist/native/index.native228.js +2 -2
  313. package/dist/native/index.native229.js +363 -103
  314. package/dist/native/index.native230.js +827 -2
  315. package/dist/native/index.native231.js +1 -1
  316. package/dist/native/index.native234.js +5 -5
  317. package/dist/native/index.native235.js +2 -2
  318. package/dist/native/index.native236.js +47 -2
  319. package/dist/native/index.native237.js +2 -2
  320. package/dist/native/index.native238.js +2 -2
  321. package/dist/native/index.native239.js +2 -47
  322. package/dist/native/index.native247.js +1 -1
  323. package/dist/native/index.native251.js +1 -1
  324. package/dist/native/index.native3.js +1 -1
  325. package/dist/native/index.native60.js +12 -12
  326. package/dist/native/index.native61.js +7 -7
  327. package/dist/native/index.native62.js +9 -9
  328. package/dist/native/index.native82.js +1 -1
  329. package/dist/native-types/actions/{createDelegationForAddress.d.ts → createDelegationForAccount.d.ts} +4 -4
  330. package/dist/{types/actions/getDelegationForAddress.d.ts → native-types/actions/getDelegationForAccount.d.ts} +5 -5
  331. package/dist/{web-types/actions/revokeDelegationForAddress.d.ts → native-types/actions/revokeDelegationForAccount.d.ts} +4 -4
  332. package/dist/native-types/index.d.ts +3 -3
  333. package/dist/native-types/index.native.d.ts +3 -3
  334. package/dist/native-types/index.web.d.ts +3 -3
  335. package/dist/native-types/version.d.ts +1 -1
  336. package/dist/{web-types/actions/createDelegationForAddress.d.ts → types/actions/createDelegationForAccount.d.ts} +4 -4
  337. package/dist/{native-types/actions/getDelegationForAddress.d.ts → types/actions/getDelegationForAccount.d.ts} +5 -5
  338. package/dist/{native-types/actions/revokeDelegationForAddress.d.ts → types/actions/revokeDelegationForAccount.d.ts} +4 -4
  339. package/dist/types/index.d.ts +3 -3
  340. package/dist/types/index.native.d.ts +3 -3
  341. package/dist/types/index.web.d.ts +3 -3
  342. package/dist/types/version.d.ts +1 -1
  343. package/dist/web/index.web.js +26 -26
  344. package/dist/web/index.web102.js +3 -3
  345. package/dist/web/index.web109.js +2 -2
  346. package/dist/web/index.web120.js +12 -12
  347. package/dist/web/index.web121.js +3 -3
  348. package/dist/web/index.web122.js +31 -2
  349. package/dist/web/index.web123.js +28 -65
  350. package/dist/web/index.web124.js +2 -367
  351. package/dist/web/index.web125.js +63 -14
  352. package/dist/web/index.web126.js +360 -18
  353. package/dist/web/index.web127.js +13 -47
  354. package/dist/web/index.web128.js +22 -28
  355. package/dist/web/index.web129.js +50 -28
  356. package/dist/web/index.web132.js +1 -1
  357. package/dist/web/index.web133.js +1 -1
  358. package/dist/web/index.web134.js +1 -1
  359. package/dist/web/index.web135.js +1 -1
  360. package/dist/web/index.web136.js +2 -2
  361. package/dist/web/index.web137.js +1 -1
  362. package/dist/web/index.web142.js +2 -2
  363. package/dist/web/index.web149.js +1 -1
  364. package/dist/web/index.web161.js +1 -1
  365. package/dist/web/index.web165.js +14 -2
  366. package/dist/web/index.web166.js +56 -2
  367. package/dist/web/index.web167.js +6 -13
  368. package/dist/web/index.web168.js +20 -54
  369. package/dist/web/index.web169.js +17 -6
  370. package/dist/web/index.web170.js +44 -20
  371. package/dist/web/index.web171.js +3 -17
  372. package/dist/web/index.web172.js +3 -45
  373. package/dist/web/index.web173.js +34 -3
  374. package/dist/web/index.web174.js +12 -3
  375. package/dist/web/index.web175.js +4 -34
  376. package/dist/web/index.web176.js +27 -11
  377. package/dist/web/index.web177.js +6 -4
  378. package/dist/web/index.web178.js +29 -25
  379. package/dist/web/index.web179.js +12 -6
  380. package/dist/web/index.web180.js +54 -31
  381. package/dist/web/index.web181.js +41 -11
  382. package/dist/web/index.web182.js +126 -54
  383. package/dist/web/index.web183.js +100 -38
  384. package/dist/web/index.web184.js +6 -127
  385. package/dist/web/index.web185.js +3 -105
  386. package/dist/web/index.web186.js +78 -6
  387. package/dist/web/index.web187.js +2 -3
  388. package/dist/web/index.web188.js +2 -79
  389. package/dist/web/index.web189.js +38 -2
  390. package/dist/web/index.web190.js +7 -2
  391. package/dist/web/index.web191.js +29 -32
  392. package/dist/web/index.web192.js +14 -6
  393. package/dist/web/index.web193.js +30 -30
  394. package/dist/web/index.web194.js +18 -14
  395. package/dist/web/index.web195.js +8 -34
  396. package/dist/web/index.web196.js +9 -17
  397. package/dist/web/index.web197.js +11 -8
  398. package/dist/web/index.web198.js +13 -10
  399. package/dist/web/index.web199.js +5 -11
  400. package/dist/web/index.web200.js +5 -14
  401. package/dist/web/index.web201.js +10 -5
  402. package/dist/web/index.web202.js +2 -5
  403. package/dist/web/index.web203.js +2 -11
  404. package/dist/web/index.web204.js +109 -2
  405. package/dist/web/index.web205.js +2 -109
  406. package/dist/web/index.web206.js +2 -2
  407. package/dist/web/index.web214.js +1 -1
  408. package/dist/web/index.web216.js +38 -7
  409. package/dist/web/index.web218.js +67 -366
  410. package/dist/web/index.web219.js +34 -826
  411. package/dist/web/index.web220.js +14 -38
  412. package/dist/web/index.web221.js +8 -2
  413. package/dist/web/index.web222.js +2 -70
  414. package/dist/web/index.web223.js +364 -30
  415. package/dist/web/index.web224.js +826 -14
  416. package/dist/web/index.web225.js +1 -1
  417. package/dist/web/index.web228.js +32 -3
  418. package/dist/web/index.web229.js +6 -46
  419. package/dist/web/index.web230.js +44 -30
  420. package/dist/web/index.web231.js +3 -6
  421. package/dist/web/index.web233.js +1 -1
  422. package/dist/web/index.web235.js +1 -1
  423. package/dist/web/index.web239.js +1 -1
  424. package/dist/web/index.web244.js +14 -78
  425. package/dist/web/index.web245.js +78 -14
  426. package/dist/web/index.web3.js +1 -1
  427. package/dist/web/index.web57.js +12 -12
  428. package/dist/web/index.web58.js +7 -7
  429. package/dist/web/index.web59.js +9 -9
  430. package/dist/web/index.web8.js +1 -1
  431. package/dist/{types/actions/createDelegationForAddress.d.ts → web-types/actions/createDelegationForAccount.d.ts} +4 -4
  432. package/dist/web-types/actions/{getDelegationForAddress.d.ts → getDelegationForAccount.d.ts} +5 -5
  433. package/dist/{types/actions/revokeDelegationForAddress.d.ts → web-types/actions/revokeDelegationForAccount.d.ts} +4 -4
  434. package/dist/web-types/index.d.ts +3 -3
  435. package/dist/web-types/index.native.d.ts +3 -3
  436. package/dist/web-types/index.web.d.ts +3 -3
  437. package/dist/web-types/version.d.ts +1 -1
  438. package/package.json +2 -2
@@ -1,10 +1,22 @@
1
- import { EIP1193ProviderError as r, STANDARD_ERROR_CODES as o } from "./index.native89.js";
2
- async function n(e, t) {
3
- throw new r(
4
- o.provider.unsupportedMethod,
5
- "wallet_sendCalls is not supported with EOAs"
6
- );
1
+ import { signAndWrapTypedDataForSmartAccount as s } from "./index.native107.js";
2
+ import { validateUserOwnsSmartAccount as c, EIP1193ProviderError as i, STANDARD_ERROR_CODES as d } from "./index.native89.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
+ }
7
19
  }
8
20
  export {
9
- n as handleSendCalls
21
+ h as handleEthSign
10
22
  };
@@ -1,82 +1,63 @@
1
- import { createWalletClient as u } from "viem";
2
1
  import "@coinbase/cdp-api-client";
3
2
  import "./index.native2.js";
4
3
  import "./index.native3.js";
5
4
  import "jose";
6
- import { isChainIdSupportedForCDPSends as l, sendTransactionChainIdToNameMapping as w } from "./index.native96.js";
7
- import { signEvmTransaction as v } from "./index.native31.js";
8
- import { sendEvmTransaction as T } from "./index.native36.js";
5
+ import "viem";
6
+ import { isChainIdSupportedForCDPUserOps as p, userOperationChainIdToNameMapping as e, userOperationNameToChainIdMapping as u } from "./index.native96.js";
7
+ import { getUserOperation as m } from "./index.native39.js";
9
8
  import "./index.native97.js";
10
9
  import "@solana/web3.js";
11
10
  import "bs58";
12
- import { RPCRequestError as n, STANDARD_ERROR_CODES as i, validateUserOwnsEOA as P } from "./index.native89.js";
13
- async function B(e, m, d) {
14
- const [a] = e;
15
- if (!a || typeof a != "object")
16
- throw new n(
17
- i.rpc.invalidParams,
18
- "Transaction parameter must be an object"
11
+ import { validateUserHasEvmSmartAccount as d, RPCRequestError as o, STANDARD_ERROR_CODES as n } from "./index.native89.js";
12
+ async function A(t, s) {
13
+ const i = t[0], c = (await d()).evmSmartAccountObjects?.[0]?.address, a = s.getState().chainId;
14
+ if (!p(a) || !e[a])
15
+ throw new o(
16
+ n.rpc.invalidParams,
17
+ "Chain ID is not supported for user operations"
19
18
  );
20
- if (!a.to)
21
- throw new n(
22
- i.rpc.invalidParams,
23
- "Transaction must include 'to' field"
19
+ try {
20
+ const r = await m({
21
+ userOperationHash: i,
22
+ evmSmartAccount: c,
23
+ network: e[a]
24
+ });
25
+ return l(r);
26
+ } catch (r) {
27
+ throw console.log("Failed to get user operation status", r), new o(
28
+ n.rpc.internal,
29
+ "Failed to get user operation status"
24
30
  );
25
- await P(a.from);
26
- const o = m.getState(), t = a.chainId ? Number(a.chainId) : o.chainId;
27
- if (l(t))
28
- try {
29
- const { transactionHash: r } = await T({
30
- evmAccount: a.from,
31
- transaction: { ...c(a), chainId: t },
32
- network: w[t]
33
- });
34
- return r;
35
- } catch (r) {
36
- throw new n(
37
- i.rpc.transactionRejected,
38
- r instanceof Error ? r.message : "Transaction failed"
39
- );
40
- }
41
- else
42
- try {
43
- const r = u({
44
- // Safe as we check before calling this handler that chainId is configured
45
- chain: o.chains.find((s) => s.id === t),
46
- transport: d[t],
47
- account: a.from
48
- }), p = o.chains.find((s) => s.id === t), h = await r.prepareTransactionRequest({
49
- ...c(a),
50
- chain: p
51
- }), { signedTransaction: f } = await v({
52
- evmAccount: a.from,
53
- transaction: {
54
- ...h,
55
- type: "eip1559"
56
- }
57
- });
58
- return await r.sendRawTransaction({
59
- serializedTransaction: f
60
- });
61
- } catch (r) {
62
- throw new n(
63
- i.rpc.transactionRejected,
64
- r instanceof Error ? r.message : "Transaction failed"
65
- );
66
- }
31
+ }
67
32
  }
68
- function c(e) {
33
+ function l(t) {
69
34
  return {
70
- to: e.to,
71
- data: e.data,
72
- value: e.value ? BigInt(e.value) : void 0,
73
- nonce: e.nonce ? Number(e.nonce) : void 0,
74
- gas: e.gas ? BigInt(e.gas) : void 0,
75
- maxFeePerGas: e.maxFeePerGas ? BigInt(e.maxFeePerGas) : void 0,
76
- maxPriorityFeePerGas: e.maxPriorityFeePerGas ? BigInt(e.maxPriorityFeePerGas) : void 0,
77
- type: "eip1559"
35
+ atomic: !0,
36
+ chainId: u[t.network] ?? 0,
37
+ receipts: t.receipts?.map((s) => ({
38
+ transactionHash: s.transactionHash,
39
+ blockHash: s.blockHash,
40
+ blockNumber: BigInt(s.blockNumber ?? 0),
41
+ gasUsed: BigInt(s.gasUsed ?? 0),
42
+ logs: [],
43
+ status: ""
44
+ })),
45
+ id: t.userOpHash,
46
+ status: h(t.status),
47
+ version: "1"
78
48
  };
79
49
  }
50
+ function h(t) {
51
+ switch (t) {
52
+ case "dropped":
53
+ case "failed":
54
+ return 400;
55
+ case "complete":
56
+ return 200;
57
+ default:
58
+ return 100;
59
+ }
60
+ }
80
61
  export {
81
- B as handleSendTransaction
62
+ A as handleGetCallsStatus
82
63
  };
@@ -1,30 +1,20 @@
1
+ import { toHex as a } from "viem";
2
+ import { userOperationChainIdToNameMapping as o } from "./index.native96.js";
3
+ import { validateUserConnected as i } from "./index.native89.js";
4
+ import "zustand";
1
5
  import "@coinbase/cdp-api-client";
2
- import "./index.native2.js";
3
- import "./index.native3.js";
4
- import "jose";
5
- import "viem";
6
- import "./index.native96.js";
7
- import { signEvmTypedData as i } from "./index.native33.js";
8
- import "./index.native97.js";
9
- import "@solana/web3.js";
10
- import "bs58";
11
- import { validateUserOwnsEOA as a, EIP1193ProviderError as p, STANDARD_ERROR_CODES as n } from "./index.native89.js";
12
- async function v(e) {
13
- const [t, o] = e;
14
- await a(t);
15
- try {
16
- const { signature: r } = await i({
17
- evmAccount: t,
18
- typedData: JSON.parse(o)
19
- });
20
- return r;
21
- } catch (r) {
22
- throw new p(
23
- n.provider.userRejectedRequest,
24
- r instanceof Error ? r.message : "Signing failed"
25
- );
26
- }
6
+ async function h() {
7
+ return !(await i()).evmSmartAccounts?.length ? {} : Object.keys(
8
+ o
9
+ ).reduce((t, e) => {
10
+ const r = a(Number(e));
11
+ return t[r] = {
12
+ atomic: { status: "supported" },
13
+ paymasterService: { supported: !0 },
14
+ dataSuffix: { supported: !0 }
15
+ }, t;
16
+ }, {});
27
17
  }
28
18
  export {
29
- v as handleSignTypedData
19
+ h as handleGetCapabilities
30
20
  };
@@ -1,6 +1,26 @@
1
- async function a(n) {
2
- return `0x${n.getState().chainId.toString(16)}`;
1
+ import { hashMessage as n } from "viem";
2
+ import { signAndWrapTypedDataForSmartAccount as i } from "./index.native107.js";
3
+ import { validateUserOwnsSmartAccount as c, EIP1193ProviderError as d, STANDARD_ERROR_CODES as u } from "./index.native89.js";
4
+ async function p(r, a) {
5
+ const [o, e] = r, s = await c(e);
6
+ try {
7
+ const { signature: t } = await i({
8
+ smartAccount: e,
9
+ ownerAddress: s.evmAccounts[0],
10
+ hash: g(o),
11
+ chainId: a.getState().chainId
12
+ });
13
+ return t;
14
+ } catch (t) {
15
+ throw new d(
16
+ u.provider.userRejectedRequest,
17
+ t instanceof Error ? t.message : "Signing failed"
18
+ );
19
+ }
20
+ }
21
+ function g(r) {
22
+ return typeof r == "string" ? n({ raw: r }) : n(r);
3
23
  }
4
24
  export {
5
- a as handleChainId
25
+ p as handlePersonalSign
6
26
  };
@@ -1,17 +1,11 @@
1
- import "@coinbase/cdp-api-client";
2
- import "./index.native2.js";
3
- import "./index.native3.js";
4
- import "jose";
5
- import "viem";
6
- import "./index.native96.js";
7
- import { getCurrentUser as t } from "./index.native23.js";
8
- import { signOut as r } from "./index.native25.js";
9
- import "./index.native97.js";
10
- import "@solana/web3.js";
11
- import "bs58";
12
- async function w() {
13
- await t() && await r();
1
+ import { fromNumber as r } from "./index.native236.js";
2
+ import { validateUserConnected as a } from "./index.native89.js";
3
+ async function s(t, e) {
4
+ const n = await a();
5
+ return t.emit("connect", {
6
+ chainId: r(e.getState().chainId)
7
+ }), n.evmSmartAccountObjects?.map((c) => c.address) || [];
14
8
  }
15
9
  export {
16
- w as handleDisconnect
10
+ s as handleRequestAccounts
17
11
  };
@@ -1,7 +1,44 @@
1
- function a(t, e) {
2
- const n = Number.parseInt(t[0].chainId, 16);
3
- e.getState().setChainId(n);
1
+ import "@coinbase/cdp-api-client";
2
+ import "./index.native2.js";
3
+ import "./index.native3.js";
4
+ import "jose";
5
+ import "viem";
6
+ import { isChainIdSupportedForCDPUserOps as u, userOperationChainIdToNameMapping as d } from "./index.native96.js";
7
+ import { sendUserOperation as l } from "./index.native38.js";
8
+ import "./index.native97.js";
9
+ import "@solana/web3.js";
10
+ import "bs58";
11
+ import { validateUserHasEvmSmartAccount as f, RPCRequestError as s, STANDARD_ERROR_CODES as i } from "./index.native89.js";
12
+ async function P(r, t) {
13
+ const [{ calls: n, capabilities: e }] = r, p = (await f()).evmSmartAccounts[0], o = t.getState().chainId;
14
+ if (!u(o))
15
+ throw new s(
16
+ i.rpc.invalidParams,
17
+ "Chain ID is not supported for user operations"
18
+ );
19
+ const c = e?.dataSuffix?.value, m = e?.paymasterService?.url;
20
+ try {
21
+ return (await l({
22
+ evmSmartAccount: p,
23
+ calls: v(n),
24
+ network: d[o],
25
+ paymasterUrl: m,
26
+ dataSuffix: c
27
+ })).userOperationHash;
28
+ } catch (a) {
29
+ throw new s(
30
+ i.rpc.transactionRejected,
31
+ a instanceof Error ? a.message : "User operation failed"
32
+ );
33
+ }
34
+ }
35
+ function v(r) {
36
+ return r.map((t) => ({
37
+ to: t.to,
38
+ data: t.data,
39
+ value: t.value ? BigInt(t.value) : void 0
40
+ }));
4
41
  }
5
42
  export {
6
- a as handleSwitchEthereumChain
43
+ P as handleSendCalls
7
44
  };
@@ -1,16 +1,10 @@
1
- import "@coinbase/cdp-api-client";
2
- import "./index.native2.js";
3
- import "./index.native3.js";
4
- import "jose";
5
- import "viem";
6
- import "./index.native96.js";
7
- import { getCurrentUser as t } from "./index.native23.js";
8
- import "./index.native97.js";
9
- import "@solana/web3.js";
10
- import "bs58";
11
- async function f() {
12
- return (await t())?.evmSmartAccountObjects?.map((r) => r.address) || [];
1
+ import { EIP1193ProviderError as r, STANDARD_ERROR_CODES as t } from "./index.native89.js";
2
+ async function a(n, o, s) {
3
+ throw new r(
4
+ t.provider.unsupportedMethod,
5
+ "eth_sendTransaction is not supported with smart accounts. Use wallet_sendCalls instead."
6
+ );
13
7
  }
14
8
  export {
15
- f as handleAccounts
9
+ a as handleSendTransaction
16
10
  };
@@ -1,22 +1,23 @@
1
- import { signAndWrapTypedDataForSmartAccount as s } from "./index.native107.js";
2
- import { validateUserOwnsSmartAccount as c, EIP1193ProviderError as i, STANDARD_ERROR_CODES as d } from "./index.native89.js";
3
- async function h(e, n) {
4
- const [a, t] = e, o = await c(t);
1
+ import { hashTypedData as s } from "viem";
2
+ import { signAndWrapTypedDataForSmartAccount as c } from "./index.native107.js";
3
+ import { validateUserOwnsSmartAccount as i, EIP1193ProviderError as d, STANDARD_ERROR_CODES as m } from "./index.native89.js";
4
+ async function A(a, e) {
5
+ const [t, n] = a, o = await i(t);
5
6
  try {
6
- const { signature: r } = await s({
7
+ const { signature: r } = await c({
7
8
  smartAccount: t,
8
9
  ownerAddress: o.evmAccounts[0],
9
- hash: a,
10
- chainId: n.getState().chainId
10
+ hash: s(JSON.parse(n)),
11
+ chainId: e.getState().chainId
11
12
  });
12
13
  return r;
13
14
  } catch (r) {
14
- throw new i(
15
- d.provider.userRejectedRequest,
15
+ throw new d(
16
+ m.provider.userRejectedRequest,
16
17
  r instanceof Error ? r.message : "Signing failed"
17
18
  );
18
19
  }
19
20
  }
20
21
  export {
21
- h as handleEthSign
22
+ A as handleSignTypedData
22
23
  };
@@ -1,63 +1,57 @@
1
- import "@coinbase/cdp-api-client";
2
- import "./index.native2.js";
3
- import "./index.native3.js";
4
- import "jose";
5
- import "viem";
6
- import { isChainIdSupportedForCDPUserOps as p, userOperationChainIdToNameMapping as e, userOperationNameToChainIdMapping as u } from "./index.native96.js";
7
- import { getUserOperation as m } from "./index.native39.js";
8
- import "./index.native97.js";
9
- import "@solana/web3.js";
10
- import "bs58";
11
- import { validateUserHasEvmSmartAccount as d, RPCRequestError as o, STANDARD_ERROR_CODES as n } from "./index.native89.js";
12
- async function A(t, s) {
13
- const i = t[0], c = (await d()).evmSmartAccountObjects?.[0]?.address, a = s.getState().chainId;
14
- if (!p(a) || !e[a])
15
- throw new o(
16
- n.rpc.invalidParams,
17
- "Chain ID is not supported for user operations"
18
- );
19
- try {
20
- const r = await m({
21
- userOperationHash: i,
22
- evmSmartAccount: c,
23
- network: e[a]
24
- });
25
- return l(r);
26
- } catch (r) {
27
- throw console.log("Failed to get user operation status", r), new o(
28
- n.rpc.internal,
29
- "Failed to get user operation status"
30
- );
1
+ import { encode as d } from "./index.native210.js";
2
+ import y from "./index.native211.js";
3
+ import b from "./index.native212.js";
4
+ import { JWSInvalid as r } from "./index.native129.js";
5
+ import { encoder as s, concat as u, decoder as h } from "./index.native164.js";
6
+ import g from "./index.native213.js";
7
+ import H from "./index.native214.js";
8
+ import P from "./index.native215.js";
9
+ class x {
10
+ #r;
11
+ #e;
12
+ #t;
13
+ constructor(e) {
14
+ if (!(e instanceof Uint8Array))
15
+ throw new TypeError("payload must be an instance of Uint8Array");
16
+ this.#r = e;
31
17
  }
32
- }
33
- function l(t) {
34
- return {
35
- atomic: !0,
36
- chainId: u[t.network] ?? 0,
37
- receipts: t.receipts?.map((s) => ({
38
- transactionHash: s.transactionHash,
39
- blockHash: s.blockHash,
40
- blockNumber: BigInt(s.blockNumber ?? 0),
41
- gasUsed: BigInt(s.gasUsed ?? 0),
42
- logs: [],
43
- status: ""
44
- })),
45
- id: t.userOpHash,
46
- status: h(t.status),
47
- version: "1"
48
- };
49
- }
50
- function h(t) {
51
- switch (t) {
52
- case "dropped":
53
- case "failed":
54
- return 400;
55
- case "complete":
56
- return 200;
57
- default:
58
- return 100;
18
+ setProtectedHeader(e) {
19
+ if (this.#e)
20
+ throw new TypeError("setProtectedHeader can only be called once");
21
+ return this.#e = e, this;
22
+ }
23
+ setUnprotectedHeader(e) {
24
+ if (this.#t)
25
+ throw new TypeError("setUnprotectedHeader can only be called once");
26
+ return this.#t = e, this;
27
+ }
28
+ async sign(e, l) {
29
+ if (!this.#e && !this.#t)
30
+ throw new r("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");
31
+ if (!b(this.#e, this.#t))
32
+ throw new r("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
33
+ const c = {
34
+ ...this.#e,
35
+ ...this.#t
36
+ }, p = H(r, /* @__PURE__ */ new Map([["b64", !0]]), l?.crit, this.#e, c);
37
+ let o = !0;
38
+ if (p.has("b64") && (o = this.#e.b64, typeof o != "boolean"))
39
+ throw new r('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
40
+ const { alg: t } = c;
41
+ if (typeof t != "string" || !t)
42
+ throw new r('JWS "alg" (Algorithm) Header Parameter missing or invalid');
43
+ g(t, e, "sign");
44
+ let i = this.#r;
45
+ o && (i = s.encode(d(i)));
46
+ let n;
47
+ this.#e ? n = s.encode(d(JSON.stringify(this.#e))) : n = s.encode("");
48
+ const f = u(n, s.encode("."), i), m = await P(e, t), w = await y(t, m, f), a = {
49
+ signature: d(w),
50
+ payload: ""
51
+ };
52
+ return o && (a.payload = h.decode(i)), this.#t && (a.header = this.#t), this.#e && (a.protected = h.decode(n)), a;
59
53
  }
60
54
  }
61
55
  export {
62
- A as handleGetCallsStatus
56
+ x as FlattenedSign
63
57
  };
@@ -1,20 +1,13 @@
1
- import { toHex as a } from "viem";
2
- import { userOperationChainIdToNameMapping as o } from "./index.native96.js";
3
- import { validateUserConnected as i } from "./index.native89.js";
4
- import "zustand";
5
- import "@coinbase/cdp-api-client";
6
- async function h() {
7
- return !(await i()).evmSmartAccounts?.length ? {} : Object.keys(
8
- o
9
- ).reduce((t, e) => {
10
- const r = a(Number(e));
11
- return t[r] = {
12
- atomic: { status: "supported" },
13
- paymasterService: { supported: !0 },
14
- dataSuffix: { supported: !0 }
15
- }, t;
16
- }, {});
1
+ const d = new TextEncoder(), s = new TextDecoder();
2
+ function f(...n) {
3
+ const c = n.reduce((e, { length: r }) => e + r, 0), t = new Uint8Array(c);
4
+ let o = 0;
5
+ for (const e of n)
6
+ t.set(e, o), o += e.length;
7
+ return t;
17
8
  }
18
9
  export {
19
- h as handleGetCapabilities
10
+ f as concat,
11
+ s as decoder,
12
+ d as encoder
20
13
  };
@@ -1,26 +1,4 @@
1
- import { hashMessage as n } from "viem";
2
- import { signAndWrapTypedDataForSmartAccount as i } from "./index.native107.js";
3
- import { validateUserOwnsSmartAccount as c, EIP1193ProviderError as d, STANDARD_ERROR_CODES as u } from "./index.native89.js";
4
- async function p(r, a) {
5
- const [o, e] = r, s = await c(e);
6
- try {
7
- const { signature: t } = await i({
8
- smartAccount: e,
9
- ownerAddress: s.evmAccounts[0],
10
- hash: g(o),
11
- chainId: a.getState().chainId
12
- });
13
- return t;
14
- } catch (t) {
15
- throw new d(
16
- u.provider.userRejectedRequest,
17
- t instanceof Error ? t.message : "Signing failed"
18
- );
19
- }
20
- }
21
- function g(r) {
22
- return typeof r == "string" ? n({ raw: r }) : n(r);
23
- }
1
+ const o = (e) => Math.floor(e.getTime() / 1e3);
24
2
  export {
25
- p as handlePersonalSign
3
+ o as default
26
4
  };
@@ -1,11 +1,47 @@
1
- import { fromNumber as r } from "./index.native239.js";
2
- import { validateUserConnected as a } from "./index.native89.js";
3
- async function s(t, e) {
4
- const n = await a();
5
- return t.emit("connect", {
6
- chainId: r(e.getState().chainId)
7
- }), n.evmSmartAccountObjects?.map((c) => c.address) || [];
8
- }
1
+ const o = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, t = (c) => {
2
+ const s = o.exec(c);
3
+ if (!s || s[4] && s[1])
4
+ throw new TypeError("Invalid time period format");
5
+ const a = parseFloat(s[2]), r = s[3].toLowerCase();
6
+ let e;
7
+ switch (r) {
8
+ case "sec":
9
+ case "secs":
10
+ case "second":
11
+ case "seconds":
12
+ case "s":
13
+ e = Math.round(a);
14
+ break;
15
+ case "minute":
16
+ case "minutes":
17
+ case "min":
18
+ case "mins":
19
+ case "m":
20
+ e = Math.round(a * 60);
21
+ break;
22
+ case "hour":
23
+ case "hours":
24
+ case "hr":
25
+ case "hrs":
26
+ case "h":
27
+ e = Math.round(a * 3600);
28
+ break;
29
+ case "day":
30
+ case "days":
31
+ case "d":
32
+ e = Math.round(a * 86400);
33
+ break;
34
+ case "week":
35
+ case "weeks":
36
+ case "w":
37
+ e = Math.round(a * 604800);
38
+ break;
39
+ default:
40
+ e = Math.round(a * 31557600);
41
+ break;
42
+ }
43
+ return s[1] === "-" || s[4] === "ago" ? -e : e;
44
+ };
9
45
  export {
10
- s as handleRequestAccounts
46
+ t as default
11
47
  };