@metamask-previews/keyring-api 9.0.0-f9cd26b → 11.0.0-22cd5fe

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 (357) hide show
  1. package/CHANGELOG.md +24 -1
  2. package/dist/{JsonRpcRequest.js → JsonRpcRequest.cjs} +2 -2
  3. package/dist/JsonRpcRequest.cjs.map +1 -0
  4. package/dist/{JsonRpcRequest.d.ts → JsonRpcRequest.d.cts} +3 -2
  5. package/dist/JsonRpcRequest.d.cts.map +1 -0
  6. package/dist/JsonRpcRequest.d.mts +17 -0
  7. package/dist/JsonRpcRequest.d.mts.map +1 -0
  8. package/dist/JsonRpcRequest.mjs +10 -0
  9. package/dist/JsonRpcRequest.mjs.map +1 -0
  10. package/dist/{KeyringClient.js → KeyringClient.cjs} +4 -4
  11. package/dist/KeyringClient.cjs.map +1 -0
  12. package/dist/{KeyringClient.d.ts → KeyringClient.d.cts} +4 -3
  13. package/dist/KeyringClient.d.cts.map +1 -0
  14. package/dist/KeyringClient.d.mts +29 -0
  15. package/dist/KeyringClient.d.mts.map +1 -0
  16. package/dist/KeyringClient.mjs +120 -0
  17. package/dist/KeyringClient.mjs.map +1 -0
  18. package/dist/{KeyringSnapRpcClient.js → KeyringSnapRpcClient.cjs} +2 -2
  19. package/dist/KeyringSnapRpcClient.cjs.map +1 -0
  20. package/dist/{KeyringSnapRpcClient.d.ts → KeyringSnapRpcClient.d.cts} +6 -5
  21. package/dist/KeyringSnapRpcClient.d.cts.map +1 -0
  22. package/dist/KeyringSnapRpcClient.d.mts +40 -0
  23. package/dist/KeyringSnapRpcClient.d.mts.map +1 -0
  24. package/dist/KeyringSnapRpcClient.mjs +63 -0
  25. package/dist/KeyringSnapRpcClient.mjs.map +1 -0
  26. package/dist/api/{account.js → account.cjs} +7 -3
  27. package/dist/api/account.cjs.map +1 -0
  28. package/dist/api/{account.d.ts → account.d.cts} +7 -1
  29. package/dist/api/account.d.cts.map +1 -0
  30. package/dist/api/account.d.mts +75 -0
  31. package/dist/api/account.d.mts.map +1 -0
  32. package/dist/api/account.mjs +65 -0
  33. package/dist/api/account.mjs.map +1 -0
  34. package/dist/api/{balance.js → balance.cjs} +3 -3
  35. package/dist/api/balance.cjs.map +1 -0
  36. package/dist/api/{balance.d.ts → balance.d.cts} +2 -1
  37. package/dist/api/balance.d.cts.map +1 -0
  38. package/dist/api/balance.d.mts +10 -0
  39. package/dist/api/balance.d.mts.map +1 -0
  40. package/dist/api/balance.mjs +8 -0
  41. package/dist/api/balance.mjs.map +1 -0
  42. package/dist/api/{caip.js → caip.cjs} +5 -5
  43. package/dist/api/caip.cjs.map +1 -0
  44. package/dist/api/{caip.d.ts → caip.d.cts} +2 -1
  45. package/dist/api/caip.d.cts.map +1 -0
  46. package/dist/api/caip.d.mts +38 -0
  47. package/dist/api/caip.d.mts.map +1 -0
  48. package/dist/api/caip.mjs +43 -0
  49. package/dist/api/caip.mjs.map +1 -0
  50. package/dist/api/{export.js → export.cjs} +1 -1
  51. package/dist/api/export.cjs.map +1 -0
  52. package/dist/api/{export.d.ts → export.d.cts} +2 -1
  53. package/dist/api/export.d.cts.map +1 -0
  54. package/dist/api/export.d.mts +9 -0
  55. package/dist/api/export.d.mts.map +1 -0
  56. package/dist/api/export.mjs +4 -0
  57. package/dist/api/export.mjs.map +1 -0
  58. package/dist/api/{index.js → index.cjs} +7 -7
  59. package/dist/api/index.cjs.map +1 -0
  60. package/dist/api/index.d.cts +8 -0
  61. package/dist/api/index.d.cts.map +1 -0
  62. package/dist/api/index.d.mts +8 -0
  63. package/dist/api/index.d.mts.map +1 -0
  64. package/dist/api/index.mjs +7 -0
  65. package/dist/api/index.mjs.map +1 -0
  66. package/dist/api/{keyring.js → keyring.cjs} +1 -1
  67. package/dist/api/keyring.cjs.map +1 -0
  68. package/dist/api/{keyring.d.ts → keyring.d.cts} +8 -7
  69. package/dist/api/keyring.d.cts.map +1 -0
  70. package/dist/api/keyring.d.mts +160 -0
  71. package/dist/api/keyring.d.mts.map +1 -0
  72. package/dist/api/keyring.mjs +2 -0
  73. package/dist/api/keyring.mjs.map +1 -0
  74. package/dist/api/{request.js → request.cjs} +3 -3
  75. package/dist/api/request.cjs.map +1 -0
  76. package/dist/api/{request.d.ts → request.d.cts} +3 -2
  77. package/dist/api/request.d.cts.map +1 -0
  78. package/dist/api/request.d.mts +40 -0
  79. package/dist/api/request.d.mts.map +1 -0
  80. package/dist/api/request.mjs +26 -0
  81. package/dist/api/request.mjs.map +1 -0
  82. package/dist/api/{response.js → response.cjs} +2 -2
  83. package/dist/api/response.cjs.map +1 -0
  84. package/dist/api/{response.d.ts → response.d.cts} +2 -1
  85. package/dist/api/response.d.cts.map +1 -0
  86. package/dist/api/response.d.mts +25 -0
  87. package/dist/api/response.d.mts.map +1 -0
  88. package/dist/api/response.mjs +41 -0
  89. package/dist/api/response.mjs.map +1 -0
  90. package/dist/btc/constants.cjs +13 -0
  91. package/dist/btc/constants.cjs.map +1 -0
  92. package/dist/btc/constants.d.cts +9 -0
  93. package/dist/btc/constants.d.cts.map +1 -0
  94. package/dist/btc/constants.d.mts +9 -0
  95. package/dist/btc/constants.d.mts.map +1 -0
  96. package/dist/btc/constants.mjs +10 -0
  97. package/dist/btc/constants.mjs.map +1 -0
  98. package/dist/{utils/index.js → btc/index.cjs} +3 -3
  99. package/dist/btc/index.cjs.map +1 -0
  100. package/dist/btc/index.d.cts +3 -0
  101. package/dist/btc/index.d.cts.map +1 -0
  102. package/dist/btc/index.d.mts +3 -0
  103. package/dist/btc/index.d.mts.map +1 -0
  104. package/dist/btc/index.mjs +3 -0
  105. package/dist/btc/index.mjs.map +1 -0
  106. package/dist/btc/{types.js → types.cjs} +3 -3
  107. package/dist/btc/types.cjs.map +1 -0
  108. package/dist/btc/{types.d.ts → types.d.cts} +4 -1
  109. package/dist/btc/types.d.cts.map +1 -0
  110. package/dist/btc/types.d.mts +36 -0
  111. package/dist/btc/types.d.mts.map +1 -0
  112. package/dist/btc/types.mjs +37 -0
  113. package/dist/btc/types.mjs.map +1 -0
  114. package/dist/{contexts.js → contexts.cjs} +1 -1
  115. package/dist/contexts.cjs.map +1 -0
  116. package/dist/{contexts.d.ts → contexts.d.cts} +1 -0
  117. package/dist/contexts.d.cts.map +1 -0
  118. package/dist/contexts.d.mts +8 -0
  119. package/dist/contexts.d.mts.map +1 -0
  120. package/dist/contexts.mjs +2 -0
  121. package/dist/contexts.mjs.map +1 -0
  122. package/dist/eth/constants.cjs +12 -0
  123. package/dist/eth/constants.cjs.map +1 -0
  124. package/dist/eth/constants.d.cts +8 -0
  125. package/dist/eth/constants.d.cts.map +1 -0
  126. package/dist/eth/constants.d.mts +8 -0
  127. package/dist/eth/constants.d.mts.map +1 -0
  128. package/dist/eth/constants.mjs +9 -0
  129. package/dist/eth/constants.mjs.map +1 -0
  130. package/dist/eth/erc4337/{index.js → index.cjs} +2 -2
  131. package/dist/eth/erc4337/index.cjs.map +1 -0
  132. package/dist/eth/erc4337/index.d.cts +2 -0
  133. package/dist/eth/erc4337/index.d.cts.map +1 -0
  134. package/dist/eth/erc4337/index.d.mts +2 -0
  135. package/dist/eth/erc4337/index.d.mts.map +1 -0
  136. package/dist/eth/erc4337/index.mjs +2 -0
  137. package/dist/eth/erc4337/index.mjs.map +1 -0
  138. package/dist/eth/erc4337/{types.js → types.cjs} +4 -4
  139. package/dist/eth/erc4337/types.cjs.map +1 -0
  140. package/dist/eth/erc4337/{types.d.ts → types.d.cts} +6 -5
  141. package/dist/eth/erc4337/types.d.cts.map +1 -0
  142. package/dist/eth/erc4337/types.d.mts +98 -0
  143. package/dist/eth/erc4337/types.d.mts.map +1 -0
  144. package/dist/eth/erc4337/types.mjs +59 -0
  145. package/dist/eth/erc4337/types.mjs.map +1 -0
  146. package/dist/eth/{index.js → index.cjs} +5 -4
  147. package/dist/eth/index.cjs.map +1 -0
  148. package/dist/eth/index.d.cts +5 -0
  149. package/dist/eth/index.d.cts.map +1 -0
  150. package/dist/eth/index.d.mts +5 -0
  151. package/dist/eth/index.d.mts.map +1 -0
  152. package/dist/eth/index.mjs +5 -0
  153. package/dist/eth/index.mjs.map +1 -0
  154. package/dist/eth/{types.js → types.cjs} +3 -3
  155. package/dist/eth/types.cjs.map +1 -0
  156. package/dist/eth/{types.d.ts → types.d.cts} +6 -1
  157. package/dist/eth/types.d.cts.map +1 -0
  158. package/dist/eth/types.d.mts +85 -0
  159. package/dist/eth/types.d.mts.map +1 -0
  160. package/dist/eth/types.mjs +70 -0
  161. package/dist/eth/types.mjs.map +1 -0
  162. package/dist/eth/{utils.js → utils.cjs} +3 -4
  163. package/dist/eth/{utils.js.map → utils.cjs.map} +1 -1
  164. package/dist/eth/{utils.d.ts → utils.d.cts} +2 -1
  165. package/dist/eth/utils.d.cts.map +1 -0
  166. package/dist/eth/utils.d.mts +9 -0
  167. package/dist/eth/utils.d.mts.map +1 -0
  168. package/dist/eth/utils.mjs +11 -0
  169. package/dist/eth/utils.mjs.map +1 -0
  170. package/dist/{events.js → events.cjs} +1 -1
  171. package/dist/events.cjs.map +1 -0
  172. package/dist/{events.d.ts → events.d.cts} +1 -0
  173. package/dist/events.d.cts.map +1 -0
  174. package/dist/events.d.mts +11 -0
  175. package/dist/events.d.mts.map +1 -0
  176. package/dist/events.mjs +14 -0
  177. package/dist/events.mjs.map +1 -0
  178. package/dist/index.cjs +29 -0
  179. package/dist/index.cjs.map +1 -0
  180. package/dist/index.d.cts +14 -0
  181. package/dist/index.d.cts.map +1 -0
  182. package/dist/index.d.mts +14 -0
  183. package/dist/index.d.mts.map +1 -0
  184. package/dist/index.mjs +13 -0
  185. package/dist/index.mjs.map +1 -0
  186. package/dist/internal/{api.js → api.cjs} +5 -5
  187. package/dist/internal/api.cjs.map +1 -0
  188. package/dist/internal/{api.d.ts → api.d.cts} +16 -4
  189. package/dist/internal/api.d.cts.map +1 -0
  190. package/dist/internal/api.d.mts +431 -0
  191. package/dist/internal/api.d.mts.map +1 -0
  192. package/dist/internal/api.mjs +136 -0
  193. package/dist/internal/api.mjs.map +1 -0
  194. package/dist/internal/eth/{EthKeyring.js → EthKeyring.cjs} +1 -1
  195. package/dist/internal/eth/EthKeyring.cjs.map +1 -0
  196. package/dist/internal/eth/{EthKeyring.d.ts → EthKeyring.d.cts} +4 -3
  197. package/dist/internal/eth/EthKeyring.d.cts.map +1 -0
  198. package/dist/internal/eth/EthKeyring.d.mts +34 -0
  199. package/dist/internal/eth/EthKeyring.d.mts.map +1 -0
  200. package/dist/internal/eth/EthKeyring.mjs +2 -0
  201. package/dist/internal/eth/EthKeyring.mjs.map +1 -0
  202. package/dist/internal/eth/{index.js → index.cjs} +1 -1
  203. package/dist/internal/eth/index.cjs.map +1 -0
  204. package/dist/internal/eth/index.d.cts +2 -0
  205. package/dist/internal/eth/index.d.cts.map +1 -0
  206. package/dist/internal/eth/index.d.mts +2 -0
  207. package/dist/internal/eth/index.d.mts.map +1 -0
  208. package/dist/internal/eth/index.mjs +2 -0
  209. package/dist/internal/eth/index.mjs.map +1 -0
  210. package/dist/internal/{events.js → events.cjs} +5 -5
  211. package/dist/internal/events.cjs.map +1 -0
  212. package/dist/internal/{events.d.ts → events.d.cts} +11 -2
  213. package/dist/internal/events.d.cts.map +1 -0
  214. package/dist/internal/events.d.mts +170 -0
  215. package/dist/internal/events.d.mts.map +1 -0
  216. package/dist/internal/events.mjs +69 -0
  217. package/dist/internal/events.mjs.map +1 -0
  218. package/dist/internal/{index.js → index.cjs} +5 -5
  219. package/dist/internal/index.cjs.map +1 -0
  220. package/dist/internal/index.d.cts +6 -0
  221. package/dist/internal/index.d.cts.map +1 -0
  222. package/dist/internal/index.d.mts +6 -0
  223. package/dist/internal/index.d.mts.map +1 -0
  224. package/dist/internal/index.mjs +5 -0
  225. package/dist/internal/index.mjs.map +1 -0
  226. package/dist/internal/{rpc.js → rpc.cjs} +3 -3
  227. package/dist/internal/rpc.cjs.map +1 -0
  228. package/dist/internal/{rpc.d.ts → rpc.d.cts} +1 -0
  229. package/dist/internal/rpc.d.cts.map +1 -0
  230. package/dist/internal/rpc.d.mts +26 -0
  231. package/dist/internal/rpc.d.mts.map +1 -0
  232. package/dist/internal/rpc.mjs +29 -0
  233. package/dist/internal/{rpc.js.map → rpc.mjs.map} +1 -1
  234. package/dist/internal/{types.js → types.cjs} +6 -6
  235. package/dist/internal/types.cjs.map +1 -0
  236. package/dist/internal/{types.d.ts → types.d.cts} +31 -20
  237. package/dist/internal/types.d.cts.map +1 -0
  238. package/dist/internal/types.d.mts +402 -0
  239. package/dist/internal/types.d.mts.map +1 -0
  240. package/dist/internal/types.mjs +49 -0
  241. package/dist/internal/types.mjs.map +1 -0
  242. package/dist/{rpc-handler.js → rpc-handler.cjs} +6 -6
  243. package/dist/rpc-handler.cjs.map +1 -0
  244. package/dist/{rpc-handler.d.ts → rpc-handler.d.cts} +4 -3
  245. package/dist/rpc-handler.d.cts.map +1 -0
  246. package/dist/rpc-handler.d.mts +30 -0
  247. package/dist/rpc-handler.d.mts.map +1 -0
  248. package/dist/rpc-handler.mjs +131 -0
  249. package/dist/rpc-handler.mjs.map +1 -0
  250. package/dist/{snap-utils.js → snap-utils.cjs} +2 -3
  251. package/dist/snap-utils.cjs.map +1 -0
  252. package/dist/{snap-utils.d.ts → snap-utils.d.cts} +4 -3
  253. package/dist/snap-utils.d.cts.map +1 -0
  254. package/dist/snap-utils.d.mts +12 -0
  255. package/dist/snap-utils.d.mts.map +1 -0
  256. package/dist/snap-utils.mjs +17 -0
  257. package/dist/snap-utils.mjs.map +1 -0
  258. package/dist/sol/constants.cjs +14 -0
  259. package/dist/sol/constants.cjs.map +1 -0
  260. package/dist/sol/constants.d.cts +10 -0
  261. package/dist/sol/constants.d.cts.map +1 -0
  262. package/dist/sol/constants.d.mts +10 -0
  263. package/dist/sol/constants.d.mts.map +1 -0
  264. package/dist/sol/constants.mjs +11 -0
  265. package/dist/sol/constants.mjs.map +1 -0
  266. package/dist/{btc/index.js → sol/index.cjs} +3 -2
  267. package/dist/sol/index.cjs.map +1 -0
  268. package/dist/sol/index.d.cts +3 -0
  269. package/dist/sol/index.d.cts.map +1 -0
  270. package/dist/sol/index.d.mts +3 -0
  271. package/dist/sol/index.d.mts.map +1 -0
  272. package/dist/sol/index.mjs +3 -0
  273. package/dist/sol/index.mjs.map +1 -0
  274. package/dist/sol/{types.js → types.cjs} +3 -3
  275. package/dist/sol/types.cjs.map +1 -0
  276. package/dist/sol/{types.d.ts → types.d.cts} +4 -1
  277. package/dist/sol/types.d.cts.map +1 -0
  278. package/dist/sol/types.d.mts +41 -0
  279. package/dist/sol/types.d.mts.map +1 -0
  280. package/dist/sol/types.mjs +33 -0
  281. package/dist/sol/types.mjs.map +1 -0
  282. package/dist/{superstruct.js → superstruct.cjs} +5 -6
  283. package/dist/superstruct.cjs.map +1 -0
  284. package/dist/{superstruct.d.ts → superstruct.d.cts} +3 -2
  285. package/dist/superstruct.d.cts.map +1 -0
  286. package/dist/superstruct.d.mts +84 -0
  287. package/dist/superstruct.d.mts.map +1 -0
  288. package/dist/superstruct.mjs +74 -0
  289. package/dist/superstruct.mjs.map +1 -0
  290. package/dist/{sol/index.js → utils/index.cjs} +3 -2
  291. package/dist/utils/index.cjs.map +1 -0
  292. package/dist/utils/index.d.cts +3 -0
  293. package/dist/utils/index.d.cts.map +1 -0
  294. package/dist/utils/index.d.mts +3 -0
  295. package/dist/utils/index.d.mts.map +1 -0
  296. package/dist/utils/index.mjs +3 -0
  297. package/dist/utils/index.mjs.map +1 -0
  298. package/dist/utils/{types.js → types.cjs} +2 -2
  299. package/dist/utils/types.cjs.map +1 -0
  300. package/dist/utils/{types.d.ts → types.d.cts} +2 -1
  301. package/dist/utils/types.d.cts.map +1 -0
  302. package/dist/utils/types.d.mts +18 -0
  303. package/dist/utils/types.d.mts.map +1 -0
  304. package/dist/utils/types.mjs +26 -0
  305. package/dist/utils/types.mjs.map +1 -0
  306. package/dist/utils/{typing.js → typing.cjs} +2 -3
  307. package/dist/utils/{typing.js.map → typing.cjs.map} +1 -1
  308. package/dist/utils/{typing.d.ts → typing.d.cts} +1 -0
  309. package/dist/utils/typing.d.cts.map +1 -0
  310. package/dist/utils/typing.d.mts +33 -0
  311. package/dist/utils/typing.d.mts.map +1 -0
  312. package/dist/utils/typing.mjs +17 -0
  313. package/dist/utils/typing.mjs.map +1 -0
  314. package/package.json +19 -8
  315. package/dist/JsonRpcRequest.js.map +0 -1
  316. package/dist/KeyringClient.js.map +0 -1
  317. package/dist/KeyringSnapRpcClient.js.map +0 -1
  318. package/dist/api/account.js.map +0 -1
  319. package/dist/api/balance.js.map +0 -1
  320. package/dist/api/caip.js.map +0 -1
  321. package/dist/api/export.js.map +0 -1
  322. package/dist/api/index.d.ts +0 -7
  323. package/dist/api/index.js.map +0 -1
  324. package/dist/api/keyring.js.map +0 -1
  325. package/dist/api/request.js.map +0 -1
  326. package/dist/api/response.js.map +0 -1
  327. package/dist/btc/index.d.ts +0 -1
  328. package/dist/btc/index.js.map +0 -1
  329. package/dist/btc/types.js.map +0 -1
  330. package/dist/contexts.js.map +0 -1
  331. package/dist/eth/erc4337/index.d.ts +0 -1
  332. package/dist/eth/erc4337/index.js.map +0 -1
  333. package/dist/eth/erc4337/types.js.map +0 -1
  334. package/dist/eth/index.d.ts +0 -3
  335. package/dist/eth/index.js.map +0 -1
  336. package/dist/eth/types.js.map +0 -1
  337. package/dist/events.js.map +0 -1
  338. package/dist/index.d.ts +0 -12
  339. package/dist/index.js +0 -28
  340. package/dist/index.js.map +0 -1
  341. package/dist/internal/api.js.map +0 -1
  342. package/dist/internal/eth/EthKeyring.js.map +0 -1
  343. package/dist/internal/eth/index.d.ts +0 -1
  344. package/dist/internal/eth/index.js.map +0 -1
  345. package/dist/internal/events.js.map +0 -1
  346. package/dist/internal/index.d.ts +0 -5
  347. package/dist/internal/index.js.map +0 -1
  348. package/dist/internal/types.js.map +0 -1
  349. package/dist/rpc-handler.js.map +0 -1
  350. package/dist/snap-utils.js.map +0 -1
  351. package/dist/sol/index.d.ts +0 -1
  352. package/dist/sol/index.js.map +0 -1
  353. package/dist/sol/types.js.map +0 -1
  354. package/dist/superstruct.js.map +0 -1
  355. package/dist/utils/index.d.ts +0 -2
  356. package/dist/utils/index.js.map +0 -1
  357. package/dist/utils/types.js.map +0 -1
@@ -0,0 +1,37 @@
1
+ import { string, array, enums, refine, literal } from "@metamask/superstruct";
2
+ import { bech32 } from "bech32";
3
+ import { KeyringAccountStruct, BtcAccountType } from "../api/index.mjs";
4
+ import { object } from "../superstruct.mjs";
5
+ export const BtcP2wpkhAddressStruct = refine(string(), 'BtcP2wpkhAddressStruct', (address) => {
6
+ try {
7
+ bech32.decode(address);
8
+ }
9
+ catch (error) {
10
+ return new Error(`Could not decode P2WPKH address: ${error.message}`);
11
+ }
12
+ return true;
13
+ });
14
+ /**
15
+ * Supported Bitcoin methods.
16
+ */
17
+ export var BtcMethod;
18
+ (function (BtcMethod) {
19
+ // General transaction methods
20
+ BtcMethod["SendBitcoin"] = "sendBitcoin";
21
+ })(BtcMethod || (BtcMethod = {}));
22
+ export const BtcP2wpkhAccountStruct = object({
23
+ ...KeyringAccountStruct.schema,
24
+ /**
25
+ * Account address.
26
+ */
27
+ address: BtcP2wpkhAddressStruct,
28
+ /**
29
+ * Account type.
30
+ */
31
+ type: literal(`${BtcAccountType.P2wpkh}`),
32
+ /**
33
+ * Account supported methods.
34
+ */
35
+ methods: array(enums([`${BtcMethod.SendBitcoin}`])),
36
+ });
37
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../src/btc/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,8BAA8B;AAC9E,OAAO,EAAE,MAAM,EAAE,eAAe;AAEhC,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,yBAAe;AAC9D,OAAO,EAAE,MAAM,EAAE,2BAAuB;AAExC,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAC1C,MAAM,EAAE,EACR,wBAAwB,EACxB,CAAC,OAAe,EAAE,EAAE;IAClB,IAAI,CAAC;QACH,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,IAAI,KAAK,CACd,oCAAqC,KAAe,CAAC,OAAO,EAAE,CAC/D,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC,CACF,CAAC;AAEF;;GAEG;AACH,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,8BAA8B;IAC9B,wCAA2B,CAAA;AAC7B,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAED,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;IAC3C,GAAG,oBAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,sBAAsB;IAE/B;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,GAAG,cAAc,CAAC,MAAM,EAAE,CAAC;IAEzC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;CACpD,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { string, array, enums, refine, literal } from '@metamask/superstruct';\nimport { bech32 } from 'bech32';\n\nimport { KeyringAccountStruct, BtcAccountType } from '../api';\nimport { object } from '../superstruct';\n\nexport const BtcP2wpkhAddressStruct = refine(\n string(),\n 'BtcP2wpkhAddressStruct',\n (address: string) => {\n try {\n bech32.decode(address);\n } catch (error) {\n return new Error(\n `Could not decode P2WPKH address: ${(error as Error).message}`,\n );\n }\n return true;\n },\n);\n\n/**\n * Supported Bitcoin methods.\n */\nexport enum BtcMethod {\n // General transaction methods\n SendBitcoin = 'sendBitcoin',\n}\n\nexport const BtcP2wpkhAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: BtcP2wpkhAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${BtcAccountType.P2wpkh}`),\n\n /**\n * Account supported methods.\n */\n methods: array(enums([`${BtcMethod.SendBitcoin}`])),\n});\n\nexport type BtcP2wpkhAccount = Infer<typeof BtcP2wpkhAccountStruct>;\n"]}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=contexts.js.map
3
+ //# sourceMappingURL=contexts.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.cjs","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Context used by a Keyring implementation.\n */\nexport type KeyringExecutionContext = {\n /** The chain ID. */\n chainId: string;\n};\n"]}
@@ -5,3 +5,4 @@ export type KeyringExecutionContext = {
5
5
  /** The chain ID. */
6
6
  chainId: string;
7
7
  };
8
+ //# sourceMappingURL=contexts.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.d.cts","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Context used by a Keyring implementation.
3
+ */
4
+ export type KeyringExecutionContext = {
5
+ /** The chain ID. */
6
+ chainId: string;
7
+ };
8
+ //# sourceMappingURL=contexts.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.d.mts","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=contexts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contexts.mjs","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Context used by a Keyring implementation.\n */\nexport type KeyringExecutionContext = {\n /** The chain ID. */\n chainId: string;\n};\n"]}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EthScopes = void 0;
4
+ /**
5
+ * Scopes for EVM account type. See {@link KeyringAccount.scopes}.
6
+ */
7
+ var EthScopes;
8
+ (function (EthScopes) {
9
+ EthScopes["Namespace"] = "eip155";
10
+ EthScopes["Mainnet"] = "eip155:1";
11
+ })(EthScopes || (exports.EthScopes = EthScopes = {}));
12
+ //# sourceMappingURL=constants.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.cjs","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,iCAAoB,CAAA;AACtB,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB","sourcesContent":["/**\n * Scopes for EVM account type. See {@link KeyringAccount.scopes}.\n */\nexport enum EthScopes {\n Namespace = 'eip155',\n Mainnet = 'eip155:1',\n}\n"]}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Scopes for EVM account type. See {@link KeyringAccount.scopes}.
3
+ */
4
+ export declare enum EthScopes {
5
+ Namespace = "eip155",
6
+ Mainnet = "eip155:1"
7
+ }
8
+ //# sourceMappingURL=constants.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.cts","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,OAAO,aAAa;CACrB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Scopes for EVM account type. See {@link KeyringAccount.scopes}.
3
+ */
4
+ export declare enum EthScopes {
5
+ Namespace = "eip155",
6
+ Mainnet = "eip155:1"
7
+ }
8
+ //# sourceMappingURL=constants.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.mts","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,SAAS;IACnB,SAAS,WAAW;IACpB,OAAO,aAAa;CACrB"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Scopes for EVM account type. See {@link KeyringAccount.scopes}.
3
+ */
4
+ export var EthScopes;
5
+ (function (EthScopes) {
6
+ EthScopes["Namespace"] = "eip155";
7
+ EthScopes["Mainnet"] = "eip155:1";
8
+ })(EthScopes || (EthScopes = {}));
9
+ //# sourceMappingURL=constants.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.mjs","sourceRoot":"","sources":["../../src/eth/constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,iCAAoB,CAAA;IACpB,iCAAoB,CAAA;AACtB,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB","sourcesContent":["/**\n * Scopes for EVM account type. See {@link KeyringAccount.scopes}.\n */\nexport enum EthScopes {\n Namespace = 'eip155',\n Mainnet = 'eip155:1',\n}\n"]}
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- //# sourceMappingURL=index.js.map
17
+ __exportStar(require("./types.cjs"), exports);
18
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../../src/eth/erc4337/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAAwB","sourcesContent":["export * from './types';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from "./types.cjs";
2
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../../src/eth/erc4337/index.ts"],"names":[],"mappings":"AAAA,4BAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from "./types.mjs";
2
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/eth/erc4337/index.ts"],"names":[],"mappings":"AAAA,4BAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from "./types.mjs";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/eth/erc4337/index.ts"],"names":[],"mappings":"AAAA,4BAAwB","sourcesContent":["export * from './types';\n"]}
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EthUserOperationPatchStruct = exports.EthBaseUserOperationStruct = exports.EthBaseTransactionStruct = exports.EthUserOperationStruct = void 0;
4
- const superstruct_1 = require("../../superstruct");
5
- const utils_1 = require("../../utils");
6
- const types_1 = require("../types");
4
+ const superstruct_1 = require("../../superstruct.cjs");
5
+ const utils_1 = require("../../utils/index.cjs");
6
+ const types_1 = require("../types.cjs");
7
7
  /**
8
8
  * Struct of a UserOperation as defined by ERC-4337.
9
9
  *
@@ -59,4 +59,4 @@ exports.EthUserOperationPatchStruct = (0, superstruct_1.object)({
59
59
  verificationGasLimit: (0, superstruct_1.exactOptional)(types_1.EthUint256Struct),
60
60
  preVerificationGas: (0, superstruct_1.exactOptional)(types_1.EthUint256Struct),
61
61
  });
62
- //# sourceMappingURL=types.js.map
62
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../../src/eth/erc4337/types.ts"],"names":[],"mappings":";;;AAEA,uDAA0D;AAC1D,iDAAwC;AACxC,wCAA8E;AAE9E;;;;GAIG;AACU,QAAA,sBAAsB,GAAG,IAAA,oBAAM,EAAC;IAC3C,MAAM,EAAE,wBAAgB;IACxB,KAAK,EAAE,wBAAgB;IACvB,QAAQ,EAAE,sBAAc;IACxB,QAAQ,EAAE,sBAAc;IACxB,YAAY,EAAE,wBAAgB;IAC9B,oBAAoB,EAAE,wBAAgB;IACtC,kBAAkB,EAAE,wBAAgB;IACpC,YAAY,EAAE,wBAAgB;IAC9B,oBAAoB,EAAE,wBAAgB;IACtC,gBAAgB,EAAE,sBAAc;IAChC,SAAS,EAAE,sBAAc;CAC1B,CAAC,CAAC;AAIH;;;GAGG;AACU,QAAA,wBAAwB,GAAG,IAAA,oBAAM,EAAC;IAC7C;;OAEG;IACH,EAAE,EAAE,wBAAgB;IAEpB;;OAEG;IACH,KAAK,EAAE,wBAAgB;IAEvB;;OAEG;IACH,IAAI,EAAE,sBAAc;CACrB,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,IAAA,oBAAM,EAAC;IAC/C,KAAK,EAAE,wBAAgB;IACvB,QAAQ,EAAE,sBAAc;IACxB,QAAQ,EAAE,sBAAc;IACxB,SAAS,EAAE,IAAA,2BAAa,EACtB,IAAA,oBAAM,EAAC;QACL,YAAY,EAAE,wBAAgB;QAC9B,oBAAoB,EAAE,wBAAgB;QACtC,kBAAkB,EAAE,wBAAgB;KACrC,CAAC,CACH;IACD,qBAAqB,EAAE,sBAAc;IACrC,cAAc,EAAE,sBAAc;IAC9B,UAAU,EAAE,iBAAS;CACtB,CAAC,CAAC;AAIU,QAAA,2BAA2B,GAAG,IAAA,oBAAM,EAAC;IAChD,gBAAgB,EAAE,sBAAc;IAChC,YAAY,EAAE,IAAA,2BAAa,EAAC,wBAAgB,CAAC;IAC7C,oBAAoB,EAAE,IAAA,2BAAa,EAAC,wBAAgB,CAAC;IACrD,kBAAkB,EAAE,IAAA,2BAAa,EAAC,wBAAgB,CAAC;CACpD,CAAC,CAAC","sourcesContent":["import { type Infer } from '@metamask/superstruct';\n\nimport { exactOptional, object } from '../../superstruct';\nimport { UrlStruct } from '../../utils';\nimport { EthAddressStruct, EthBytesStruct, EthUint256Struct } from '../types';\n\n/**\n * Struct of a UserOperation as defined by ERC-4337.\n *\n * @see https://eips.ethereum.org/EIPS/eip-4337#definitions\n */\nexport const EthUserOperationStruct = object({\n sender: EthAddressStruct,\n nonce: EthUint256Struct,\n initCode: EthBytesStruct,\n callData: EthBytesStruct,\n callGasLimit: EthUint256Struct,\n verificationGasLimit: EthUint256Struct,\n preVerificationGas: EthUint256Struct,\n maxFeePerGas: EthUint256Struct,\n maxPriorityFeePerGas: EthUint256Struct,\n paymasterAndData: EthBytesStruct,\n signature: EthBytesStruct,\n});\n\nexport type EthUserOperation = Infer<typeof EthUserOperationStruct>;\n\n/**\n * Struct containing the most basic transaction information required to\n * construct a UserOperation.\n */\nexport const EthBaseTransactionStruct = object({\n /**\n * Address of the transaction recipient.\n */\n to: EthAddressStruct,\n\n /**\n * Amount of wei to transfer to the recipient.\n */\n value: EthUint256Struct,\n\n /**\n * Data to pass to the recipient.\n */\n data: EthBytesStruct,\n});\n\nexport type EthBaseTransaction = Infer<typeof EthBaseTransactionStruct>;\n\nexport const EthBaseUserOperationStruct = object({\n nonce: EthUint256Struct,\n initCode: EthBytesStruct,\n callData: EthBytesStruct,\n gasLimits: exactOptional(\n object({\n callGasLimit: EthUint256Struct,\n verificationGasLimit: EthUint256Struct,\n preVerificationGas: EthUint256Struct,\n }),\n ),\n dummyPaymasterAndData: EthBytesStruct,\n dummySignature: EthBytesStruct,\n bundlerUrl: UrlStruct,\n});\n\nexport type EthBaseUserOperation = Infer<typeof EthBaseUserOperationStruct>;\n\nexport const EthUserOperationPatchStruct = object({\n paymasterAndData: EthBytesStruct,\n callGasLimit: exactOptional(EthUint256Struct),\n verificationGasLimit: exactOptional(EthUint256Struct),\n preVerificationGas: exactOptional(EthUint256Struct),\n});\n\nexport type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;\n"]}
@@ -1,4 +1,4 @@
1
- import { type Infer } from '@metamask/superstruct';
1
+ import { type Infer } from "@metamask/superstruct";
2
2
  /**
3
3
  * Struct of a UserOperation as defined by ERC-4337.
4
4
  *
@@ -69,7 +69,7 @@ export declare const EthBaseUserOperationStruct: import("@metamask/superstruct")
69
69
  nonce: import("@metamask/superstruct").Struct<string, null>;
70
70
  initCode: import("@metamask/superstruct").Struct<string, null>;
71
71
  callData: import("@metamask/superstruct").Struct<string, null>;
72
- gasLimits: import("@metamask/superstruct").Struct<import("../../superstruct").ExactOptionalTag | {
72
+ gasLimits: import("@metamask/superstruct").Struct<import("../../superstruct.cjs").ExactOptionalTag | {
73
73
  callGasLimit: string;
74
74
  verificationGasLimit: string;
75
75
  preVerificationGas: string;
@@ -90,8 +90,9 @@ export declare const EthUserOperationPatchStruct: import("@metamask/superstruct"
90
90
  preVerificationGas?: string;
91
91
  }, {
92
92
  paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
93
- callGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
94
- verificationGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
95
- preVerificationGas: import("@metamask/superstruct").Struct<string | import("../../superstruct").ExactOptionalTag, null>;
93
+ callGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.cjs").ExactOptionalTag, null>;
94
+ verificationGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.cjs").ExactOptionalTag, null>;
95
+ preVerificationGas: import("@metamask/superstruct").Struct<string | import("../../superstruct.cjs").ExactOptionalTag, null>;
96
96
  }>;
97
97
  export type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;
98
+ //# sourceMappingURL=types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../../src/eth/erc4337/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,8BAA8B;AAMnD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;IACnC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEH,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;EAKtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,98 @@
1
+ import { type Infer } from "@metamask/superstruct";
2
+ /**
3
+ * Struct of a UserOperation as defined by ERC-4337.
4
+ *
5
+ * @see https://eips.ethereum.org/EIPS/eip-4337#definitions
6
+ */
7
+ export declare const EthUserOperationStruct: import("@metamask/superstruct").Struct<{
8
+ sender: string;
9
+ nonce: string;
10
+ initCode: string;
11
+ callData: string;
12
+ callGasLimit: string;
13
+ verificationGasLimit: string;
14
+ preVerificationGas: string;
15
+ maxFeePerGas: string;
16
+ maxPriorityFeePerGas: string;
17
+ paymasterAndData: string;
18
+ signature: string;
19
+ }, {
20
+ sender: import("@metamask/superstruct").Struct<string, null>;
21
+ nonce: import("@metamask/superstruct").Struct<string, null>;
22
+ initCode: import("@metamask/superstruct").Struct<string, null>;
23
+ callData: import("@metamask/superstruct").Struct<string, null>;
24
+ callGasLimit: import("@metamask/superstruct").Struct<string, null>;
25
+ verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
26
+ preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
27
+ maxFeePerGas: import("@metamask/superstruct").Struct<string, null>;
28
+ maxPriorityFeePerGas: import("@metamask/superstruct").Struct<string, null>;
29
+ paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
30
+ signature: import("@metamask/superstruct").Struct<string, null>;
31
+ }>;
32
+ export type EthUserOperation = Infer<typeof EthUserOperationStruct>;
33
+ /**
34
+ * Struct containing the most basic transaction information required to
35
+ * construct a UserOperation.
36
+ */
37
+ export declare const EthBaseTransactionStruct: import("@metamask/superstruct").Struct<{
38
+ value: string;
39
+ data: string;
40
+ to: string;
41
+ }, {
42
+ /**
43
+ * Address of the transaction recipient.
44
+ */
45
+ to: import("@metamask/superstruct").Struct<string, null>;
46
+ /**
47
+ * Amount of wei to transfer to the recipient.
48
+ */
49
+ value: import("@metamask/superstruct").Struct<string, null>;
50
+ /**
51
+ * Data to pass to the recipient.
52
+ */
53
+ data: import("@metamask/superstruct").Struct<string, null>;
54
+ }>;
55
+ export type EthBaseTransaction = Infer<typeof EthBaseTransactionStruct>;
56
+ export declare const EthBaseUserOperationStruct: import("@metamask/superstruct").Struct<{
57
+ nonce: string;
58
+ initCode: string;
59
+ callData: string;
60
+ dummyPaymasterAndData: string;
61
+ dummySignature: string;
62
+ bundlerUrl: string;
63
+ gasLimits?: {
64
+ callGasLimit: string;
65
+ verificationGasLimit: string;
66
+ preVerificationGas: string;
67
+ };
68
+ }, {
69
+ nonce: import("@metamask/superstruct").Struct<string, null>;
70
+ initCode: import("@metamask/superstruct").Struct<string, null>;
71
+ callData: import("@metamask/superstruct").Struct<string, null>;
72
+ gasLimits: import("@metamask/superstruct").Struct<import("../../superstruct.mjs").ExactOptionalTag | {
73
+ callGasLimit: string;
74
+ verificationGasLimit: string;
75
+ preVerificationGas: string;
76
+ }, {
77
+ callGasLimit: import("@metamask/superstruct").Struct<string, null>;
78
+ verificationGasLimit: import("@metamask/superstruct").Struct<string, null>;
79
+ preVerificationGas: import("@metamask/superstruct").Struct<string, null>;
80
+ }>;
81
+ dummyPaymasterAndData: import("@metamask/superstruct").Struct<string, null>;
82
+ dummySignature: import("@metamask/superstruct").Struct<string, null>;
83
+ bundlerUrl: import("@metamask/superstruct").Struct<string, null>;
84
+ }>;
85
+ export type EthBaseUserOperation = Infer<typeof EthBaseUserOperationStruct>;
86
+ export declare const EthUserOperationPatchStruct: import("@metamask/superstruct").Struct<{
87
+ paymasterAndData: string;
88
+ callGasLimit?: string;
89
+ verificationGasLimit?: string;
90
+ preVerificationGas?: string;
91
+ }, {
92
+ paymasterAndData: import("@metamask/superstruct").Struct<string, null>;
93
+ callGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.mjs").ExactOptionalTag, null>;
94
+ verificationGasLimit: import("@metamask/superstruct").Struct<string | import("../../superstruct.mjs").ExactOptionalTag, null>;
95
+ preVerificationGas: import("@metamask/superstruct").Struct<string | import("../../superstruct.mjs").ExactOptionalTag, null>;
96
+ }>;
97
+ export type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;
98
+ //# sourceMappingURL=types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../../../src/eth/erc4337/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,KAAK,EAAE,8BAA8B;AAMnD;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAYjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;;;;IACnC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;EAEH,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAExE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE5E,eAAO,MAAM,2BAA2B;;;;;;;;;;EAKtC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,59 @@
1
+ import { exactOptional, object } from "../../superstruct.mjs";
2
+ import { UrlStruct } from "../../utils/index.mjs";
3
+ import { EthAddressStruct, EthBytesStruct, EthUint256Struct } from "../types.mjs";
4
+ /**
5
+ * Struct of a UserOperation as defined by ERC-4337.
6
+ *
7
+ * @see https://eips.ethereum.org/EIPS/eip-4337#definitions
8
+ */
9
+ export const EthUserOperationStruct = object({
10
+ sender: EthAddressStruct,
11
+ nonce: EthUint256Struct,
12
+ initCode: EthBytesStruct,
13
+ callData: EthBytesStruct,
14
+ callGasLimit: EthUint256Struct,
15
+ verificationGasLimit: EthUint256Struct,
16
+ preVerificationGas: EthUint256Struct,
17
+ maxFeePerGas: EthUint256Struct,
18
+ maxPriorityFeePerGas: EthUint256Struct,
19
+ paymasterAndData: EthBytesStruct,
20
+ signature: EthBytesStruct,
21
+ });
22
+ /**
23
+ * Struct containing the most basic transaction information required to
24
+ * construct a UserOperation.
25
+ */
26
+ export const EthBaseTransactionStruct = object({
27
+ /**
28
+ * Address of the transaction recipient.
29
+ */
30
+ to: EthAddressStruct,
31
+ /**
32
+ * Amount of wei to transfer to the recipient.
33
+ */
34
+ value: EthUint256Struct,
35
+ /**
36
+ * Data to pass to the recipient.
37
+ */
38
+ data: EthBytesStruct,
39
+ });
40
+ export const EthBaseUserOperationStruct = object({
41
+ nonce: EthUint256Struct,
42
+ initCode: EthBytesStruct,
43
+ callData: EthBytesStruct,
44
+ gasLimits: exactOptional(object({
45
+ callGasLimit: EthUint256Struct,
46
+ verificationGasLimit: EthUint256Struct,
47
+ preVerificationGas: EthUint256Struct,
48
+ })),
49
+ dummyPaymasterAndData: EthBytesStruct,
50
+ dummySignature: EthBytesStruct,
51
+ bundlerUrl: UrlStruct,
52
+ });
53
+ export const EthUserOperationPatchStruct = object({
54
+ paymasterAndData: EthBytesStruct,
55
+ callGasLimit: exactOptional(EthUint256Struct),
56
+ verificationGasLimit: exactOptional(EthUint256Struct),
57
+ preVerificationGas: exactOptional(EthUint256Struct),
58
+ });
59
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","sourceRoot":"","sources":["../../../src/eth/erc4337/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,8BAA0B;AAC1D,OAAO,EAAE,SAAS,EAAE,8BAAoB;AACxC,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,gBAAgB,EAAE,qBAAiB;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,MAAM,CAAC;IAC3C,MAAM,EAAE,gBAAgB;IACxB,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,cAAc;IACxB,YAAY,EAAE,gBAAgB;IAC9B,oBAAoB,EAAE,gBAAgB;IACtC,kBAAkB,EAAE,gBAAgB;IACpC,YAAY,EAAE,gBAAgB;IAC9B,oBAAoB,EAAE,gBAAgB;IACtC,gBAAgB,EAAE,cAAc;IAChC,SAAS,EAAE,cAAc;CAC1B,CAAC,CAAC;AAIH;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC;IAC7C;;OAEG;IACH,EAAE,EAAE,gBAAgB;IAEpB;;OAEG;IACH,KAAK,EAAE,gBAAgB;IAEvB;;OAEG;IACH,IAAI,EAAE,cAAc;CACrB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;IAC/C,KAAK,EAAE,gBAAgB;IACvB,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,cAAc;IACxB,SAAS,EAAE,aAAa,CACtB,MAAM,CAAC;QACL,YAAY,EAAE,gBAAgB;QAC9B,oBAAoB,EAAE,gBAAgB;QACtC,kBAAkB,EAAE,gBAAgB;KACrC,CAAC,CACH;IACD,qBAAqB,EAAE,cAAc;IACrC,cAAc,EAAE,cAAc;IAC9B,UAAU,EAAE,SAAS;CACtB,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC;IAChD,gBAAgB,EAAE,cAAc;IAChC,YAAY,EAAE,aAAa,CAAC,gBAAgB,CAAC;IAC7C,oBAAoB,EAAE,aAAa,CAAC,gBAAgB,CAAC;IACrD,kBAAkB,EAAE,aAAa,CAAC,gBAAgB,CAAC;CACpD,CAAC,CAAC","sourcesContent":["import { type Infer } from '@metamask/superstruct';\n\nimport { exactOptional, object } from '../../superstruct';\nimport { UrlStruct } from '../../utils';\nimport { EthAddressStruct, EthBytesStruct, EthUint256Struct } from '../types';\n\n/**\n * Struct of a UserOperation as defined by ERC-4337.\n *\n * @see https://eips.ethereum.org/EIPS/eip-4337#definitions\n */\nexport const EthUserOperationStruct = object({\n sender: EthAddressStruct,\n nonce: EthUint256Struct,\n initCode: EthBytesStruct,\n callData: EthBytesStruct,\n callGasLimit: EthUint256Struct,\n verificationGasLimit: EthUint256Struct,\n preVerificationGas: EthUint256Struct,\n maxFeePerGas: EthUint256Struct,\n maxPriorityFeePerGas: EthUint256Struct,\n paymasterAndData: EthBytesStruct,\n signature: EthBytesStruct,\n});\n\nexport type EthUserOperation = Infer<typeof EthUserOperationStruct>;\n\n/**\n * Struct containing the most basic transaction information required to\n * construct a UserOperation.\n */\nexport const EthBaseTransactionStruct = object({\n /**\n * Address of the transaction recipient.\n */\n to: EthAddressStruct,\n\n /**\n * Amount of wei to transfer to the recipient.\n */\n value: EthUint256Struct,\n\n /**\n * Data to pass to the recipient.\n */\n data: EthBytesStruct,\n});\n\nexport type EthBaseTransaction = Infer<typeof EthBaseTransactionStruct>;\n\nexport const EthBaseUserOperationStruct = object({\n nonce: EthUint256Struct,\n initCode: EthBytesStruct,\n callData: EthBytesStruct,\n gasLimits: exactOptional(\n object({\n callGasLimit: EthUint256Struct,\n verificationGasLimit: EthUint256Struct,\n preVerificationGas: EthUint256Struct,\n }),\n ),\n dummyPaymasterAndData: EthBytesStruct,\n dummySignature: EthBytesStruct,\n bundlerUrl: UrlStruct,\n});\n\nexport type EthBaseUserOperation = Infer<typeof EthBaseUserOperationStruct>;\n\nexport const EthUserOperationPatchStruct = object({\n paymasterAndData: EthBytesStruct,\n callGasLimit: exactOptional(EthUint256Struct),\n verificationGasLimit: exactOptional(EthUint256Struct),\n preVerificationGas: exactOptional(EthUint256Struct),\n});\n\nexport type EthUserOperationPatch = Infer<typeof EthUserOperationPatchStruct>;\n"]}
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./erc4337"), exports);
18
- __exportStar(require("./types"), exports);
19
- __exportStar(require("./utils"), exports);
20
- //# sourceMappingURL=index.js.map
17
+ __exportStar(require("./constants.cjs"), exports);
18
+ __exportStar(require("./erc4337/index.cjs"), exports);
19
+ __exportStar(require("./types.cjs"), exports);
20
+ __exportStar(require("./utils.cjs"), exports);
21
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA4B;AAC5B,sDAA0B;AAC1B,8CAAwB;AACxB,8CAAwB","sourcesContent":["export * from './constants';\nexport * from './erc4337';\nexport * from './types';\nexport * from './utils';\n"]}
@@ -0,0 +1,5 @@
1
+ export * from "./constants.cjs";
2
+ export * from "./erc4337/index.cjs";
3
+ export * from "./types.cjs";
4
+ export * from "./utils.cjs";
5
+ //# sourceMappingURL=index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB"}
@@ -0,0 +1,5 @@
1
+ export * from "./constants.mjs";
2
+ export * from "./erc4337/index.mjs";
3
+ export * from "./types.mjs";
4
+ export * from "./utils.mjs";
5
+ //# sourceMappingURL=index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB"}
@@ -0,0 +1,5 @@
1
+ export * from "./constants.mjs";
2
+ export * from "./erc4337/index.mjs";
3
+ export * from "./types.mjs";
4
+ export * from "./utils.mjs";
5
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/eth/index.ts"],"names":[],"mappings":"AAAA,gCAA4B;AAC5B,oCAA0B;AAC1B,4BAAwB;AACxB,4BAAwB","sourcesContent":["export * from './constants';\nexport * from './erc4337';\nexport * from './types';\nexport * from './utils';\n"]}
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EthErc4337AccountStruct = exports.EthEoaAccountStruct = exports.EthMethod = exports.EthUint256Struct = exports.EthAddressStruct = exports.EthBytesStruct = void 0;
4
4
  const superstruct_1 = require("@metamask/superstruct");
5
- const api_1 = require("../api");
6
- const superstruct_2 = require("../superstruct");
5
+ const api_1 = require("../api/index.cjs");
6
+ const superstruct_2 = require("../superstruct.cjs");
7
7
  exports.EthBytesStruct = (0, superstruct_2.definePattern)('EthBytes', /^0x[0-9a-f]*$/iu);
8
8
  exports.EthAddressStruct = (0, superstruct_2.definePattern)('EthAddress', /^0x[0-9a-f]{40}$/iu);
9
9
  exports.EthUint256Struct = (0, superstruct_2.definePattern)('EthUint256', /^0x([1-9a-f][0-9a-f]*|0)$/iu);
@@ -70,4 +70,4 @@ exports.EthErc4337AccountStruct = (0, superstruct_2.object)({
70
70
  `${EthMethod.SignUserOperation}`,
71
71
  ])),
72
72
  });
73
- //# sourceMappingURL=types.js.map
73
+ //# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.cjs","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":";;;AACA,uDAA8D;AAE9D,0CAA8D;AAC9D,oDAAuD;AAE1C,QAAA,cAAc,GAAG,IAAA,2BAAa,EAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;AAE9D,QAAA,gBAAgB,GAAG,IAAA,2BAAa,EAC3C,YAAY,EACZ,oBAAoB,CACrB,CAAC;AAEW,QAAA,gBAAgB,GAAG,IAAA,2BAAa,EAC3C,YAAY,EACZ,6BAA6B,CAC9B,CAAC;AAEF;;GAEG;AACH,IAAY,SAYX;AAZD,WAAY,SAAS;IACnB,0BAA0B;IAC1B,2CAA8B,CAAA;IAC9B,8BAAiB,CAAA;IACjB,oDAAuC,CAAA;IACvC,qDAAwC,CAAA;IACxC,qDAAwC,CAAA;IACxC,qDAAwC,CAAA;IACxC,mBAAmB;IACnB,8DAAiD,CAAA;IACjD,0DAA6C,CAAA;IAC7C,wDAA2C,CAAA;AAC7C,CAAC,EAZW,SAAS,yBAAT,SAAS,QAYpB;AAEY,QAAA,mBAAmB,GAAG,IAAA,oBAAM,EAAC;IACxC,GAAG,0BAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,wBAAgB;IAEzB;;OAEG;IACH,IAAI,EAAE,IAAA,qBAAO,EAAC,GAAG,oBAAc,CAAC,GAAG,EAAE,CAAC;IAEtC;;OAEG;IACH,OAAO,EAAE,IAAA,mBAAK,EACZ,IAAA,mBAAK,EAAC;QACJ,GAAG,SAAS,CAAC,YAAY,EAAE;QAC3B,GAAG,SAAS,CAAC,IAAI,EAAE;QACnB,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;KAC/B,CAAC,CACH;CACF,CAAC,CAAC;AAIU,QAAA,uBAAuB,GAAG,IAAA,oBAAM,EAAC;IAC5C,GAAG,0BAAoB,CAAC,MAAM;IAE9B;;OAEG;IACH,OAAO,EAAE,wBAAgB;IAEzB;;OAEG;IACH,IAAI,EAAE,IAAA,qBAAO,EAAC,GAAG,oBAAc,CAAC,OAAO,EAAE,CAAC;IAE1C;;OAEG;IACH,OAAO,EAAE,IAAA,mBAAK,EACZ,IAAA,mBAAK,EAAC;QACJ,GAAG,SAAS,CAAC,YAAY,EAAE;QAC3B,GAAG,SAAS,CAAC,IAAI,EAAE;QACnB,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,eAAe,EAAE;QAC9B,GAAG,SAAS,CAAC,oBAAoB,EAAE;QACnC,GAAG,SAAS,CAAC,kBAAkB,EAAE;QACjC,GAAG,SAAS,CAAC,iBAAiB,EAAE;KACjC,CAAC,CACH;CACF,CAAC,CAAC","sourcesContent":["import type { Infer } from '@metamask/superstruct';\nimport { array, enums, literal } from '@metamask/superstruct';\n\nimport { EthAccountType, KeyringAccountStruct } from '../api';\nimport { object, definePattern } from '../superstruct';\n\nexport const EthBytesStruct = definePattern('EthBytes', /^0x[0-9a-f]*$/iu);\n\nexport const EthAddressStruct = definePattern(\n 'EthAddress',\n /^0x[0-9a-f]{40}$/iu,\n);\n\nexport const EthUint256Struct = definePattern(\n 'EthUint256',\n /^0x([1-9a-f][0-9a-f]*|0)$/iu,\n);\n\n/**\n * Supported Ethereum methods.\n */\nexport enum EthMethod {\n // General signing methods\n PersonalSign = 'personal_sign',\n Sign = 'eth_sign',\n SignTransaction = 'eth_signTransaction',\n SignTypedDataV1 = 'eth_signTypedData_v1',\n SignTypedDataV3 = 'eth_signTypedData_v3',\n SignTypedDataV4 = 'eth_signTypedData_v4',\n // ERC-4337 methods\n PrepareUserOperation = 'eth_prepareUserOperation',\n PatchUserOperation = 'eth_patchUserOperation',\n SignUserOperation = 'eth_signUserOperation',\n}\n\nexport const EthEoaAccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Eoa}`),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTransaction}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n ]),\n ),\n});\n\nexport type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;\n\nexport const EthErc4337AccountStruct = object({\n ...KeyringAccountStruct.schema,\n\n /**\n * Account address.\n */\n address: EthAddressStruct,\n\n /**\n * Account type.\n */\n type: literal(`${EthAccountType.Erc4337}`),\n\n /**\n * Account supported methods.\n */\n methods: array(\n enums([\n `${EthMethod.PersonalSign}`,\n `${EthMethod.Sign}`,\n `${EthMethod.SignTypedDataV1}`,\n `${EthMethod.SignTypedDataV3}`,\n `${EthMethod.SignTypedDataV4}`,\n `${EthMethod.PrepareUserOperation}`,\n `${EthMethod.PatchUserOperation}`,\n `${EthMethod.SignUserOperation}`,\n ]),\n ),\n});\n\nexport type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;\n"]}
@@ -1,4 +1,4 @@
1
- import type { Infer } from '@metamask/superstruct';
1
+ import type { Infer } from "@metamask/superstruct";
2
2
  export declare const EthBytesStruct: import("@metamask/superstruct").Struct<string, null>;
3
3
  export declare const EthAddressStruct: import("@metamask/superstruct").Struct<string, null>;
4
4
  export declare const EthUint256Struct: import("@metamask/superstruct").Struct<string, null>;
@@ -20,6 +20,7 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
20
20
  type: "eip155:eoa";
21
21
  id: string;
22
22
  address: string;
23
+ scopes: string[];
23
24
  options: Record<string, import("@metamask/utils").Json>;
24
25
  methods: ("personal_sign" | "eth_sign" | "eth_signTransaction" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4")[];
25
26
  }, {
@@ -43,6 +44,7 @@ export declare const EthEoaAccountStruct: import("@metamask/superstruct").Struct
43
44
  eth_signTypedData_v4: "eth_signTypedData_v4";
44
45
  }>>;
45
46
  id: import("@metamask/superstruct").Struct<string, null>;
47
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
46
48
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
47
49
  }>;
48
50
  export type EthEoaAccount = Infer<typeof EthEoaAccountStruct>;
@@ -50,6 +52,7 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
50
52
  type: "eip155:erc4337";
51
53
  id: string;
52
54
  address: string;
55
+ scopes: string[];
53
56
  options: Record<string, import("@metamask/utils").Json>;
54
57
  methods: ("personal_sign" | "eth_sign" | "eth_signTypedData_v1" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "eth_prepareUserOperation" | "eth_patchUserOperation" | "eth_signUserOperation")[];
55
58
  }, {
@@ -75,6 +78,8 @@ export declare const EthErc4337AccountStruct: import("@metamask/superstruct").St
75
78
  eth_signUserOperation: "eth_signUserOperation";
76
79
  }>>;
77
80
  id: import("@metamask/superstruct").Struct<string, null>;
81
+ scopes: import("@metamask/superstruct").Struct<string[], import("@metamask/superstruct").Struct<string, null>>;
78
82
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
79
83
  }>;
80
84
  export type EthErc4337Account = Infer<typeof EthErc4337AccountStruct>;
85
+ //# sourceMappingURL=types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../../src/eth/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,8BAA8B;AAMnD,eAAO,MAAM,cAAc,sDAA+C,CAAC;AAE3E,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,sDAG5B,CAAC;AAEF;;GAEG;AACH,oBAAY,SAAS;IAEnB,YAAY,kBAAkB;IAC9B,IAAI,aAAa;IACjB,eAAe,wBAAwB;IACvC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IACxC,eAAe,yBAAyB;IAExC,oBAAoB,6BAA6B;IACjD,kBAAkB,2BAA2B;IAC7C,iBAAiB,0BAA0B;CAC5C;AAED,eAAO,MAAM,mBAAmB;;;;;;;;IAG9B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;EAWH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB;;;;;;;;IAGlC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;EAaH,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}