ox 0.14.29 → 1.0.0-beta.1

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 (2487) hide show
  1. package/LICENSE +2 -2
  2. package/dist/core/Abi.d.ts +102 -0
  3. package/dist/core/Abi.d.ts.map +1 -0
  4. package/dist/core/Abi.js +13 -0
  5. package/dist/core/Abi.js.map +1 -0
  6. package/dist/core/AbiConstructor.d.ts +319 -0
  7. package/dist/core/AbiConstructor.d.ts.map +1 -0
  8. package/dist/core/AbiConstructor.js +91 -0
  9. package/dist/core/AbiConstructor.js.map +1 -0
  10. package/dist/core/AbiError.d.ts +507 -0
  11. package/dist/core/AbiError.d.ts.map +1 -0
  12. package/dist/core/AbiError.js +303 -0
  13. package/dist/core/AbiError.js.map +1 -0
  14. package/dist/core/AbiEvent.d.ts +1041 -0
  15. package/dist/core/AbiEvent.d.ts.map +1 -0
  16. package/dist/core/AbiEvent.js +1200 -0
  17. package/dist/core/AbiEvent.js.map +1 -0
  18. package/dist/core/AbiFunction.d.ts +662 -0
  19. package/dist/core/AbiFunction.d.ts.map +1 -0
  20. package/dist/core/AbiFunction.js +290 -0
  21. package/dist/core/AbiFunction.js.map +1 -0
  22. package/dist/core/AbiItem.d.ts +504 -0
  23. package/dist/core/AbiItem.d.ts.map +1 -0
  24. package/dist/core/AbiItem.js +432 -0
  25. package/dist/core/AbiItem.js.map +1 -0
  26. package/dist/core/AbiParameters.d.ts +465 -0
  27. package/dist/core/AbiParameters.d.ts.map +1 -0
  28. package/dist/core/AbiParameters.js +517 -0
  29. package/dist/core/AbiParameters.js.map +1 -0
  30. package/dist/core/AccessList.d.ts +84 -0
  31. package/dist/core/AccessList.d.ts.map +1 -0
  32. package/dist/core/AccessList.js +105 -0
  33. package/dist/core/AccessList.js.map +1 -0
  34. package/dist/core/AccountProof.d.ts +115 -0
  35. package/dist/core/AccountProof.d.ts.map +1 -0
  36. package/dist/core/AccountProof.js +106 -0
  37. package/dist/core/AccountProof.js.map +1 -0
  38. package/dist/core/Address.d.ts +233 -0
  39. package/dist/core/Address.d.ts.map +1 -0
  40. package/dist/core/Address.js +271 -0
  41. package/dist/core/Address.js.map +1 -0
  42. package/dist/core/AesGcm.d.ts.map +1 -0
  43. package/dist/core/AesGcm.js +116 -0
  44. package/dist/core/AesGcm.js.map +1 -0
  45. package/dist/core/Authorization.d.ts +464 -0
  46. package/dist/core/Authorization.d.ts.map +1 -0
  47. package/dist/core/Authorization.js +448 -0
  48. package/dist/core/Authorization.js.map +1 -0
  49. package/dist/core/Base32.d.ts +86 -0
  50. package/dist/core/Base32.d.ts.map +1 -0
  51. package/dist/core/Base32.js +112 -0
  52. package/dist/core/Base32.js.map +1 -0
  53. package/dist/core/Base58.d.ts +122 -0
  54. package/dist/core/Base58.d.ts.map +1 -0
  55. package/dist/core/Base58.js +137 -0
  56. package/dist/core/Base58.js.map +1 -0
  57. package/dist/core/Base64.d.ts +262 -0
  58. package/dist/core/Base64.d.ts.map +1 -0
  59. package/dist/core/Base64.js +318 -0
  60. package/dist/core/Base64.js.map +1 -0
  61. package/dist/core/Bech32m.d.ts +99 -0
  62. package/dist/core/Bech32m.d.ts.map +1 -0
  63. package/dist/core/Bech32m.js +179 -0
  64. package/dist/core/Bech32m.js.map +1 -0
  65. package/dist/core/BinaryStateTree.d.ts +91 -0
  66. package/dist/core/BinaryStateTree.d.ts.map +1 -0
  67. package/dist/core/BinaryStateTree.js +205 -0
  68. package/dist/core/BinaryStateTree.js.map +1 -0
  69. package/dist/core/BlobCells.d.ts +202 -0
  70. package/dist/core/BlobCells.d.ts.map +1 -0
  71. package/dist/core/BlobCells.js +181 -0
  72. package/dist/core/BlobCells.js.map +1 -0
  73. package/dist/core/Blobs.d.ts +436 -0
  74. package/dist/core/Blobs.d.ts.map +1 -0
  75. package/dist/core/Blobs.js +498 -0
  76. package/dist/core/Blobs.js.map +1 -0
  77. package/dist/core/Block.d.ts +195 -0
  78. package/dist/core/Block.d.ts.map +1 -0
  79. package/dist/core/Block.js +158 -0
  80. package/dist/core/Block.js.map +1 -0
  81. package/dist/core/BlockOverrides.d.ts +91 -0
  82. package/dist/core/BlockOverrides.d.ts.map +1 -0
  83. package/dist/core/BlockOverrides.js +103 -0
  84. package/dist/core/BlockOverrides.js.map +1 -0
  85. package/dist/core/Bloom.d.ts +141 -0
  86. package/dist/core/Bloom.d.ts.map +1 -0
  87. package/dist/core/Bloom.js +140 -0
  88. package/dist/core/Bloom.js.map +1 -0
  89. package/dist/core/Bls.d.ts +443 -0
  90. package/dist/core/Bls.d.ts.map +1 -0
  91. package/dist/core/Bls.js +300 -0
  92. package/dist/core/Bls.js.map +1 -0
  93. package/dist/core/BlsPoint.d.ts +212 -0
  94. package/dist/core/BlsPoint.d.ts.map +1 -0
  95. package/dist/core/BlsPoint.js +122 -0
  96. package/dist/core/BlsPoint.js.map +1 -0
  97. package/dist/core/Bytes.d.ts +616 -0
  98. package/dist/core/Bytes.d.ts.map +1 -0
  99. package/dist/core/Bytes.js +638 -0
  100. package/dist/core/Bytes.js.map +1 -0
  101. package/dist/core/Caches.d.ts +13 -0
  102. package/dist/core/Caches.d.ts.map +1 -0
  103. package/dist/core/Caches.js +19 -0
  104. package/dist/core/Caches.js.map +1 -0
  105. package/dist/core/Cbor.d.ts.map +1 -0
  106. package/dist/core/Cbor.js +758 -0
  107. package/dist/core/Cbor.js.map +1 -0
  108. package/dist/core/CompactSize.d.ts +121 -0
  109. package/dist/core/CompactSize.d.ts.map +1 -0
  110. package/dist/core/CompactSize.js +167 -0
  111. package/dist/core/CompactSize.js.map +1 -0
  112. package/dist/core/ContractAddress.d.ts +108 -0
  113. package/dist/core/ContractAddress.d.ts.map +1 -0
  114. package/dist/core/ContractAddress.js +103 -0
  115. package/dist/core/ContractAddress.js.map +1 -0
  116. package/dist/core/CoseKey.d.ts +93 -0
  117. package/dist/core/CoseKey.d.ts.map +1 -0
  118. package/dist/core/CoseKey.js +171 -0
  119. package/dist/core/CoseKey.js.map +1 -0
  120. package/dist/core/Ed25519.d.ts +231 -0
  121. package/dist/core/Ed25519.d.ts.map +1 -0
  122. package/dist/core/Ed25519.js +184 -0
  123. package/dist/core/Ed25519.js.map +1 -0
  124. package/dist/core/Ens.d.ts +88 -0
  125. package/dist/core/Ens.d.ts.map +1 -0
  126. package/dist/core/Ens.js +107 -0
  127. package/dist/core/Ens.js.map +1 -0
  128. package/dist/core/Errors.d.ts.map +1 -0
  129. package/dist/core/Errors.js +95 -0
  130. package/dist/core/Errors.js.map +1 -0
  131. package/dist/core/Fee.d.ts +172 -0
  132. package/dist/core/Fee.d.ts.map +1 -0
  133. package/dist/core/Fee.js +141 -0
  134. package/dist/core/Fee.js.map +1 -0
  135. package/dist/core/Filter.d.ts +103 -0
  136. package/dist/core/Filter.d.ts.map +1 -0
  137. package/dist/core/Filter.js +97 -0
  138. package/dist/core/Filter.js.map +1 -0
  139. package/dist/core/Hash.d.ts +164 -0
  140. package/dist/core/Hash.d.ts.map +1 -0
  141. package/dist/core/Hash.js +164 -0
  142. package/dist/core/Hash.js.map +1 -0
  143. package/dist/core/HdKey.d.ts +138 -0
  144. package/dist/core/HdKey.d.ts.map +1 -0
  145. package/dist/core/HdKey.js +100 -0
  146. package/dist/core/HdKey.js.map +1 -0
  147. package/dist/core/Hex.d.ts +643 -0
  148. package/dist/core/Hex.d.ts.map +1 -0
  149. package/dist/core/Hex.js +718 -0
  150. package/dist/core/Hex.js.map +1 -0
  151. package/dist/core/Json.d.ts +83 -0
  152. package/dist/core/Json.d.ts.map +1 -0
  153. package/dist/core/Json.js +134 -0
  154. package/dist/core/Json.js.map +1 -0
  155. package/dist/core/Keystore.d.ts +332 -0
  156. package/dist/core/Keystore.d.ts.map +1 -0
  157. package/dist/core/Keystore.js +371 -0
  158. package/dist/core/Keystore.js.map +1 -0
  159. package/dist/core/Kzg.d.ts +59 -0
  160. package/dist/core/Kzg.d.ts.map +1 -0
  161. package/dist/core/Kzg.js +30 -0
  162. package/dist/core/Kzg.js.map +1 -0
  163. package/dist/core/Log.d.ts +190 -0
  164. package/dist/core/Log.d.ts.map +1 -0
  165. package/dist/core/Log.js +183 -0
  166. package/dist/core/Log.js.map +1 -0
  167. package/dist/core/Mnemonic.d.ts +163 -0
  168. package/dist/core/Mnemonic.d.ts.map +1 -0
  169. package/dist/core/Mnemonic.js +141 -0
  170. package/dist/core/Mnemonic.js.map +1 -0
  171. package/dist/core/P256.d.ts +271 -0
  172. package/dist/core/P256.d.ts.map +1 -0
  173. package/dist/core/P256.js +185 -0
  174. package/dist/core/P256.js.map +1 -0
  175. package/dist/core/PersonalMessage.d.ts +50 -0
  176. package/dist/core/PersonalMessage.d.ts.map +1 -0
  177. package/dist/core/PersonalMessage.js +58 -0
  178. package/dist/core/PersonalMessage.js.map +1 -0
  179. package/dist/core/Provider.d.ts +402 -0
  180. package/dist/core/Provider.d.ts.map +1 -0
  181. package/dist/core/Provider.js +257 -0
  182. package/dist/core/Provider.js.map +1 -0
  183. package/dist/core/PublicKey.d.ts +323 -0
  184. package/dist/core/PublicKey.d.ts.map +1 -0
  185. package/dist/core/PublicKey.js +393 -0
  186. package/dist/core/PublicKey.js.map +1 -0
  187. package/dist/core/Rlp.d.ts +147 -0
  188. package/dist/core/Rlp.d.ts.map +1 -0
  189. package/dist/core/Rlp.js +485 -0
  190. package/dist/core/Rlp.js.map +1 -0
  191. package/dist/core/RpcRequest.d.ts +152 -0
  192. package/dist/core/RpcRequest.d.ts.map +1 -0
  193. package/dist/core/RpcRequest.js +134 -0
  194. package/dist/core/RpcRequest.js.map +1 -0
  195. package/dist/core/RpcResponse.d.ts +302 -0
  196. package/dist/core/RpcResponse.d.ts.map +1 -0
  197. package/dist/core/RpcResponse.js +348 -0
  198. package/dist/core/RpcResponse.js.map +1 -0
  199. package/dist/core/RpcSchema.d.ts +311 -0
  200. package/dist/core/RpcSchema.d.ts.map +1 -0
  201. package/dist/core/RpcSchema.js +41 -0
  202. package/dist/core/RpcSchema.js.map +1 -0
  203. package/dist/core/RpcTransport.d.ts +66 -0
  204. package/dist/core/RpcTransport.d.ts.map +1 -0
  205. package/dist/core/RpcTransport.js +118 -0
  206. package/dist/core/RpcTransport.js.map +1 -0
  207. package/dist/core/Secp256k1.d.ts +346 -0
  208. package/dist/core/Secp256k1.d.ts.map +1 -0
  209. package/dist/core/Secp256k1.js +238 -0
  210. package/dist/core/Secp256k1.js.map +1 -0
  211. package/dist/core/Signature.d.ts +660 -0
  212. package/dist/core/Signature.d.ts.map +1 -0
  213. package/dist/core/Signature.js +760 -0
  214. package/dist/core/Signature.js.map +1 -0
  215. package/dist/core/Siwe.d.ts +247 -0
  216. package/dist/core/Siwe.d.ts.map +1 -0
  217. package/dist/core/Siwe.js +367 -0
  218. package/dist/core/Siwe.js.map +1 -0
  219. package/dist/core/Solidity.d.ts +142 -0
  220. package/dist/core/Solidity.d.ts.map +1 -0
  221. package/dist/core/Solidity.js +154 -0
  222. package/dist/core/Solidity.js.map +1 -0
  223. package/dist/core/StateOverrides.d.ts +79 -0
  224. package/dist/core/StateOverrides.d.ts.map +1 -0
  225. package/dist/core/StateOverrides.js +78 -0
  226. package/dist/core/StateOverrides.js.map +1 -0
  227. package/dist/core/Transaction.d.ts +230 -0
  228. package/dist/core/Transaction.d.ts.map +1 -0
  229. package/dist/core/Transaction.js +184 -0
  230. package/dist/core/Transaction.js.map +1 -0
  231. package/dist/core/TransactionReceipt.d.ts +265 -0
  232. package/dist/core/TransactionReceipt.d.ts.map +1 -0
  233. package/dist/core/TransactionReceipt.js +223 -0
  234. package/dist/core/TransactionReceipt.js.map +1 -0
  235. package/dist/core/TransactionRequest.d.ts +182 -0
  236. package/dist/core/TransactionRequest.d.ts.map +1 -0
  237. package/dist/core/TransactionRequest.js +338 -0
  238. package/dist/core/TransactionRequest.js.map +1 -0
  239. package/dist/core/TxEnvelope.d.ts +465 -0
  240. package/dist/core/TxEnvelope.d.ts.map +1 -0
  241. package/dist/core/TxEnvelope.js +517 -0
  242. package/dist/core/TxEnvelope.js.map +1 -0
  243. package/dist/core/TxEnvelopeEip1559.d.ts +354 -0
  244. package/dist/core/TxEnvelopeEip1559.d.ts.map +1 -0
  245. package/dist/core/TxEnvelopeEip1559.js +457 -0
  246. package/dist/core/TxEnvelopeEip1559.js.map +1 -0
  247. package/dist/core/TxEnvelopeEip2930.d.ts +349 -0
  248. package/dist/core/TxEnvelopeEip2930.d.ts.map +1 -0
  249. package/dist/core/TxEnvelopeEip2930.js +437 -0
  250. package/dist/core/TxEnvelopeEip2930.js.map +1 -0
  251. package/dist/core/TxEnvelopeEip4844.d.ts +463 -0
  252. package/dist/core/TxEnvelopeEip4844.d.ts.map +1 -0
  253. package/dist/core/TxEnvelopeEip4844.js +623 -0
  254. package/dist/core/TxEnvelopeEip4844.js.map +1 -0
  255. package/dist/core/TxEnvelopeEip7702.d.ts +407 -0
  256. package/dist/core/TxEnvelopeEip7702.d.ts.map +1 -0
  257. package/dist/core/TxEnvelopeEip7702.js +513 -0
  258. package/dist/core/TxEnvelopeEip7702.js.map +1 -0
  259. package/dist/core/TxEnvelopeLegacy.d.ts +345 -0
  260. package/dist/core/TxEnvelopeLegacy.d.ts.map +1 -0
  261. package/dist/core/TxEnvelopeLegacy.js +496 -0
  262. package/dist/core/TxEnvelopeLegacy.js.map +1 -0
  263. package/dist/core/TypedData.d.ts +512 -0
  264. package/dist/core/TypedData.d.ts.map +1 -0
  265. package/dist/core/TypedData.js +690 -0
  266. package/dist/core/TypedData.js.map +1 -0
  267. package/dist/core/ValidatorData.d.ts +62 -0
  268. package/dist/core/ValidatorData.d.ts.map +1 -0
  269. package/dist/core/ValidatorData.js +54 -0
  270. package/dist/core/ValidatorData.js.map +1 -0
  271. package/dist/core/Value.d.ts +158 -0
  272. package/dist/core/Value.d.ts.map +1 -0
  273. package/dist/core/Value.js +230 -0
  274. package/dist/core/Value.js.map +1 -0
  275. package/dist/core/WebAuthnP256.d.ts +336 -0
  276. package/dist/core/WebAuthnP256.d.ts.map +1 -0
  277. package/dist/core/WebAuthnP256.js +298 -0
  278. package/dist/core/WebAuthnP256.js.map +1 -0
  279. package/dist/core/WebCryptoP256.d.ts +226 -0
  280. package/dist/core/WebCryptoP256.d.ts.map +1 -0
  281. package/dist/core/WebCryptoP256.js +215 -0
  282. package/dist/core/WebCryptoP256.js.map +1 -0
  283. package/dist/core/Withdrawal.d.ts +68 -0
  284. package/dist/core/Withdrawal.d.ts.map +1 -0
  285. package/dist/core/Withdrawal.js +66 -0
  286. package/dist/core/Withdrawal.js.map +1 -0
  287. package/dist/core/X25519.d.ts +158 -0
  288. package/dist/core/X25519.d.ts.map +1 -0
  289. package/dist/core/X25519.js +99 -0
  290. package/dist/core/X25519.js.map +1 -0
  291. package/dist/core/internal/abi.d.ts.map +1 -0
  292. package/dist/core/internal/abi.js.map +1 -0
  293. package/dist/core/internal/abiConstructor.d.ts.map +1 -0
  294. package/dist/core/internal/abiConstructor.js.map +1 -0
  295. package/dist/core/internal/abiError.d.ts.map +1 -0
  296. package/dist/core/internal/abiError.js.map +1 -0
  297. package/dist/core/internal/abiEvent.d.ts.map +1 -0
  298. package/dist/core/internal/abiEvent.js.map +1 -0
  299. package/dist/core/internal/abiFunction.d.ts.map +1 -0
  300. package/dist/core/internal/abiFunction.js.map +1 -0
  301. package/dist/core/internal/abiItem.d.ts.map +1 -0
  302. package/dist/core/internal/abiItem.js +142 -0
  303. package/dist/core/internal/abiItem.js.map +1 -0
  304. package/dist/core/internal/abiParameters.d.ts.map +1 -0
  305. package/dist/core/internal/abiParameters.js +473 -0
  306. package/dist/core/internal/abiParameters.js.map +1 -0
  307. package/dist/core/internal/address.d.ts +33 -0
  308. package/dist/core/internal/address.d.ts.map +1 -0
  309. package/dist/core/internal/address.js +80 -0
  310. package/dist/core/internal/address.js.map +1 -0
  311. package/dist/core/internal/base58.d.ts.map +1 -0
  312. package/dist/core/internal/base58.js +86 -0
  313. package/dist/core/internal/base58.js.map +1 -0
  314. package/dist/core/internal/bytes.d.ts +52 -0
  315. package/dist/core/internal/bytes.d.ts.map +1 -0
  316. package/dist/core/internal/bytes.js +78 -0
  317. package/dist/core/internal/bytes.js.map +1 -0
  318. package/dist/core/internal/codec/bech32-base32.d.ts +29 -0
  319. package/dist/core/internal/codec/bech32-base32.d.ts.map +1 -0
  320. package/dist/core/internal/codec/bech32-base32.js +53 -0
  321. package/dist/core/internal/codec/bech32-base32.js.map +1 -0
  322. package/dist/core/internal/codec/errors.d.ts +25 -0
  323. package/dist/core/internal/codec/errors.d.ts.map +1 -0
  324. package/dist/core/internal/codec/errors.js +23 -0
  325. package/dist/core/internal/codec/errors.js.map +1 -0
  326. package/dist/core/internal/codec/hex.d.ts +40 -0
  327. package/dist/core/internal/codec/hex.d.ts.map +1 -0
  328. package/dist/core/internal/codec/hex.js +112 -0
  329. package/dist/core/internal/codec/hex.js.map +1 -0
  330. package/dist/core/internal/codec/int.d.ts +54 -0
  331. package/dist/core/internal/codec/int.d.ts.map +1 -0
  332. package/dist/core/internal/codec/int.js +141 -0
  333. package/dist/core/internal/codec/int.js.map +1 -0
  334. package/dist/core/internal/codec/utf8.d.ts +11 -0
  335. package/dist/core/internal/codec/utf8.d.ts.map +1 -0
  336. package/dist/core/internal/codec/utf8.js +11 -0
  337. package/dist/core/internal/codec/utf8.js.map +1 -0
  338. package/dist/core/internal/cryptoIo.d.ts +37 -0
  339. package/dist/core/internal/cryptoIo.d.ts.map +1 -0
  340. package/dist/core/internal/cryptoIo.js +59 -0
  341. package/dist/core/internal/cryptoIo.js.map +1 -0
  342. package/dist/core/internal/cursor.d.ts +71 -0
  343. package/dist/core/internal/cursor.d.ts.map +1 -0
  344. package/dist/core/internal/cursor.js +193 -0
  345. package/dist/core/internal/cursor.js.map +1 -0
  346. package/dist/core/internal/ens.d.ts +24 -0
  347. package/dist/core/internal/ens.d.ts.map +1 -0
  348. package/dist/core/internal/ens.js +48 -0
  349. package/dist/core/internal/ens.js.map +1 -0
  350. package/dist/core/internal/entropy.d.ts.map +1 -0
  351. package/dist/core/internal/entropy.js.map +1 -0
  352. package/dist/core/internal/errors.d.ts.map +1 -0
  353. package/dist/core/internal/errors.js.map +1 -0
  354. package/dist/core/internal/hdKey.d.ts.map +1 -0
  355. package/dist/core/internal/hdKey.js.map +1 -0
  356. package/dist/core/internal/hex.d.ts +39 -0
  357. package/dist/core/internal/hex.d.ts.map +1 -0
  358. package/dist/core/internal/hex.js +67 -0
  359. package/dist/core/internal/hex.js.map +1 -0
  360. package/dist/core/internal/lru.d.ts +25 -0
  361. package/dist/core/internal/lru.d.ts.map +1 -0
  362. package/dist/core/internal/lru.js +53 -0
  363. package/dist/core/internal/lru.js.map +1 -0
  364. package/dist/core/internal/mnemonic/wordlists.d.ts +11 -0
  365. package/dist/core/internal/mnemonic/wordlists.d.ts.map +1 -0
  366. package/dist/core/internal/mnemonic/wordlists.js +11 -0
  367. package/dist/core/internal/mnemonic/wordlists.js.map +1 -0
  368. package/dist/core/internal/promise.d.ts.map +1 -0
  369. package/dist/core/internal/promise.js +46 -0
  370. package/dist/core/internal/promise.js.map +1 -0
  371. package/dist/core/internal/quantity.d.ts +46 -0
  372. package/dist/core/internal/quantity.d.ts.map +1 -0
  373. package/dist/core/internal/quantity.js +68 -0
  374. package/dist/core/internal/quantity.js.map +1 -0
  375. package/dist/core/internal/register.d.ts.map +1 -0
  376. package/dist/core/internal/register.js.map +1 -0
  377. package/dist/core/internal/rpcSchema.d.ts.map +1 -0
  378. package/dist/core/internal/rpcSchema.js.map +1 -0
  379. package/dist/core/internal/rpcSchemas/eth.d.ts +753 -0
  380. package/dist/core/internal/rpcSchemas/eth.d.ts.map +1 -0
  381. package/dist/core/internal/rpcSchemas/eth.js.map +1 -0
  382. package/dist/core/internal/rpcSchemas/wallet.d.ts +441 -0
  383. package/dist/core/internal/rpcSchemas/wallet.d.ts.map +1 -0
  384. package/dist/core/internal/rpcSchemas/wallet.js.map +1 -0
  385. package/dist/core/internal/rpcTransport.d.ts +35 -0
  386. package/dist/core/internal/rpcTransport.d.ts.map +1 -0
  387. package/dist/core/internal/rpcTransport.js +19 -0
  388. package/dist/core/internal/rpcTransport.js.map +1 -0
  389. package/dist/core/internal/signature.d.ts +2 -0
  390. package/dist/core/internal/signature.d.ts.map +1 -0
  391. package/dist/core/internal/signature.js +5 -0
  392. package/dist/core/internal/signature.js.map +1 -0
  393. package/dist/core/internal/tx.d.ts +103 -0
  394. package/dist/core/internal/tx.d.ts.map +1 -0
  395. package/dist/core/internal/tx.js +167 -0
  396. package/dist/core/internal/tx.js.map +1 -0
  397. package/dist/core/internal/types.d.ts +320 -0
  398. package/dist/core/internal/types.d.ts.map +1 -0
  399. package/dist/core/internal/types.js.map +1 -0
  400. package/dist/core/internal/webauthn.d.ts +26 -0
  401. package/dist/core/internal/webauthn.d.ts.map +1 -0
  402. package/dist/core/internal/webauthn.js +91 -0
  403. package/dist/core/internal/webauthn.js.map +1 -0
  404. package/dist/core/version.d.ts.map +1 -0
  405. package/dist/core/version.js.map +1 -0
  406. package/dist/erc4337/EntryPoint.d.ts.map +1 -0
  407. package/dist/erc4337/EntryPoint.js.map +1 -0
  408. package/dist/erc4337/RpcSchema.d.ts +139 -0
  409. package/dist/erc4337/RpcSchema.d.ts.map +1 -0
  410. package/dist/erc4337/RpcSchema.js.map +1 -0
  411. package/dist/erc4337/UserOperation.d.ts +550 -0
  412. package/dist/erc4337/UserOperation.d.ts.map +1 -0
  413. package/dist/erc4337/UserOperation.js +615 -0
  414. package/dist/erc4337/UserOperation.js.map +1 -0
  415. package/dist/erc4337/UserOperationGas.d.ts +66 -0
  416. package/dist/erc4337/UserOperationGas.d.ts.map +1 -0
  417. package/dist/erc4337/UserOperationGas.js +61 -0
  418. package/dist/erc4337/UserOperationGas.js.map +1 -0
  419. package/dist/erc4337/UserOperationReceipt.d.ts.map +1 -0
  420. package/dist/erc4337/UserOperationReceipt.js.map +1 -0
  421. package/dist/erc4337/index.d.ts +32 -0
  422. package/dist/erc4337/index.d.ts.map +1 -0
  423. package/dist/erc4337/index.js +33 -0
  424. package/dist/erc4337/index.js.map +1 -0
  425. package/dist/erc6492/SignatureErc6492.d.ts +188 -0
  426. package/dist/erc6492/SignatureErc6492.d.ts.map +1 -0
  427. package/dist/erc6492/SignatureErc6492.js +212 -0
  428. package/dist/erc6492/SignatureErc6492.js.map +1 -0
  429. package/dist/erc6492/index.d.ts +27 -0
  430. package/dist/erc6492/index.d.ts.map +1 -0
  431. package/dist/erc6492/index.js +28 -0
  432. package/dist/erc6492/index.js.map +1 -0
  433. package/dist/erc7821/Calls.d.ts +132 -0
  434. package/dist/erc7821/Calls.d.ts.map +1 -0
  435. package/dist/erc7821/Calls.js +112 -0
  436. package/dist/erc7821/Calls.js.map +1 -0
  437. package/dist/erc7821/Execute.d.ts +126 -0
  438. package/dist/erc7821/Execute.d.ts.map +1 -0
  439. package/dist/erc7821/Execute.js +149 -0
  440. package/dist/erc7821/Execute.js.map +1 -0
  441. package/dist/erc7821/index.d.ts +70 -0
  442. package/dist/erc7821/index.d.ts.map +1 -0
  443. package/dist/erc7821/index.js +71 -0
  444. package/dist/erc7821/index.js.map +1 -0
  445. package/dist/erc8010/SignatureErc8010.d.ts +176 -0
  446. package/dist/erc8010/SignatureErc8010.d.ts.map +1 -0
  447. package/dist/erc8010/SignatureErc8010.js +203 -0
  448. package/dist/erc8010/SignatureErc8010.js.map +1 -0
  449. package/dist/erc8010/index.d.ts +50 -0
  450. package/dist/erc8010/index.d.ts.map +1 -0
  451. package/dist/erc8010/index.js +51 -0
  452. package/dist/erc8010/index.js.map +1 -0
  453. package/dist/erc8021/Attribution.d.ts +227 -0
  454. package/dist/erc8021/Attribution.d.ts.map +1 -0
  455. package/dist/erc8021/Attribution.js +330 -0
  456. package/dist/erc8021/Attribution.js.map +1 -0
  457. package/dist/erc8021/index.d.ts +44 -0
  458. package/dist/erc8021/index.d.ts.map +1 -0
  459. package/dist/erc8021/index.js +45 -0
  460. package/dist/erc8021/index.js.map +1 -0
  461. package/dist/index.d.ts +3788 -0
  462. package/dist/index.d.ts.map +1 -0
  463. package/dist/index.docs.d.ts +11 -0
  464. package/dist/index.docs.d.ts.map +1 -0
  465. package/dist/index.docs.js +13 -0
  466. package/dist/index.docs.js.map +1 -0
  467. package/dist/index.js +3788 -0
  468. package/dist/index.js.map +1 -0
  469. package/dist/tempo/AuthorizationTempo.d.ts +745 -0
  470. package/dist/tempo/AuthorizationTempo.d.ts.map +1 -0
  471. package/dist/tempo/AuthorizationTempo.js +728 -0
  472. package/dist/tempo/AuthorizationTempo.js.map +1 -0
  473. package/dist/tempo/Channel.d.ts +184 -0
  474. package/dist/tempo/Channel.d.ts.map +1 -0
  475. package/dist/tempo/Channel.js +165 -0
  476. package/dist/tempo/Channel.js.map +1 -0
  477. package/dist/tempo/KeyAuthorization.d.ts +692 -0
  478. package/dist/tempo/KeyAuthorization.d.ts.map +1 -0
  479. package/dist/tempo/KeyAuthorization.js +790 -0
  480. package/dist/tempo/KeyAuthorization.js.map +1 -0
  481. package/dist/tempo/MultisigConfig.d.ts +357 -0
  482. package/dist/tempo/MultisigConfig.d.ts.map +1 -0
  483. package/dist/tempo/MultisigConfig.js +389 -0
  484. package/dist/tempo/MultisigConfig.js.map +1 -0
  485. package/dist/tempo/Period.d.ts.map +1 -0
  486. package/dist/tempo/Period.js.map +1 -0
  487. package/dist/tempo/PoolId.d.ts +33 -0
  488. package/dist/tempo/PoolId.d.ts.map +1 -0
  489. package/dist/tempo/PoolId.js +31 -0
  490. package/dist/tempo/PoolId.js.map +1 -0
  491. package/dist/tempo/ReceivePolicyReceipt.d.ts +171 -0
  492. package/dist/tempo/ReceivePolicyReceipt.d.ts.map +1 -0
  493. package/dist/tempo/ReceivePolicyReceipt.js +187 -0
  494. package/dist/tempo/ReceivePolicyReceipt.js.map +1 -0
  495. package/dist/tempo/RpcSchemaTempo.d.ts +51 -0
  496. package/dist/tempo/RpcSchemaTempo.d.ts.map +1 -0
  497. package/dist/tempo/RpcSchemaTempo.js.map +1 -0
  498. package/dist/tempo/SignatureEnvelope.d.ts +910 -0
  499. package/dist/tempo/SignatureEnvelope.d.ts.map +1 -0
  500. package/dist/tempo/SignatureEnvelope.js +1224 -0
  501. package/dist/tempo/SignatureEnvelope.js.map +1 -0
  502. package/dist/tempo/Tick.d.ts.map +1 -0
  503. package/dist/tempo/Tick.js +132 -0
  504. package/dist/tempo/Tick.js.map +1 -0
  505. package/dist/tempo/TokenId.d.ts +87 -0
  506. package/dist/tempo/TokenId.d.ts.map +1 -0
  507. package/dist/tempo/TokenId.js +123 -0
  508. package/dist/tempo/TokenId.js.map +1 -0
  509. package/dist/tempo/TokenRole.d.ts.map +1 -0
  510. package/dist/tempo/TokenRole.js.map +1 -0
  511. package/dist/tempo/Transaction.d.ts +210 -0
  512. package/dist/tempo/Transaction.d.ts.map +1 -0
  513. package/dist/tempo/Transaction.js +169 -0
  514. package/dist/tempo/Transaction.js.map +1 -0
  515. package/dist/tempo/TransactionReceipt.d.ts +165 -0
  516. package/dist/tempo/TransactionReceipt.d.ts.map +1 -0
  517. package/dist/tempo/TransactionReceipt.js +138 -0
  518. package/dist/tempo/TransactionReceipt.js.map +1 -0
  519. package/dist/tempo/TransactionRequest.d.ts +164 -0
  520. package/dist/tempo/TransactionRequest.d.ts.map +1 -0
  521. package/dist/tempo/TransactionRequest.js +271 -0
  522. package/dist/tempo/TransactionRequest.js.map +1 -0
  523. package/dist/tempo/TxEnvelopeTempo.d.ts +677 -0
  524. package/dist/tempo/TxEnvelopeTempo.d.ts.map +1 -0
  525. package/dist/tempo/TxEnvelopeTempo.js +760 -0
  526. package/dist/tempo/TxEnvelopeTempo.js.map +1 -0
  527. package/dist/tempo/VirtualAddress.d.ts +128 -0
  528. package/dist/tempo/VirtualAddress.d.ts.map +1 -0
  529. package/dist/tempo/VirtualAddress.js +155 -0
  530. package/dist/tempo/VirtualAddress.js.map +1 -0
  531. package/dist/tempo/VirtualMaster.d.ts +248 -0
  532. package/dist/tempo/VirtualMaster.d.ts.map +1 -0
  533. package/dist/tempo/VirtualMaster.js +508 -0
  534. package/dist/tempo/VirtualMaster.js.map +1 -0
  535. package/dist/tempo/ZoneId.d.ts.map +1 -0
  536. package/dist/tempo/ZoneId.js.map +1 -0
  537. package/dist/tempo/ZoneRpcAuthentication.d.ts +278 -0
  538. package/dist/tempo/ZoneRpcAuthentication.d.ts.map +1 -0
  539. package/dist/tempo/ZoneRpcAuthentication.js +255 -0
  540. package/dist/tempo/ZoneRpcAuthentication.js.map +1 -0
  541. package/dist/tempo/index.d.ts +584 -0
  542. package/dist/tempo/index.d.ts.map +1 -0
  543. package/dist/tempo/index.js +585 -0
  544. package/dist/tempo/index.js.map +1 -0
  545. package/dist/tempo/internal/mine.wasm.d.ts.map +1 -0
  546. package/dist/tempo/internal/mine.wasm.js.map +1 -0
  547. package/dist/tempo/internal/virtualMasterPool.d.ts.map +1 -0
  548. package/dist/tempo/internal/virtualMasterPool.js.map +1 -0
  549. package/dist/trusted-setups/Paths.d.ts.map +1 -0
  550. package/dist/trusted-setups/Paths.js.map +1 -0
  551. package/dist/trusted-setups/index.d.ts.map +1 -0
  552. package/dist/trusted-setups/index.js.map +1 -0
  553. package/dist/trusted-setups/internal/paths.d.ts.map +1 -0
  554. package/dist/trusted-setups/internal/paths.js.map +1 -0
  555. package/dist/webauthn/Authentication.d.ts +339 -0
  556. package/dist/webauthn/Authentication.d.ts.map +1 -0
  557. package/dist/webauthn/Authentication.js +481 -0
  558. package/dist/webauthn/Authentication.js.map +1 -0
  559. package/dist/webauthn/Authenticator.d.ts +188 -0
  560. package/dist/webauthn/Authenticator.d.ts.map +1 -0
  561. package/dist/webauthn/Authenticator.js +217 -0
  562. package/dist/webauthn/Authenticator.js.map +1 -0
  563. package/dist/webauthn/Credential.d.ts +83 -0
  564. package/dist/webauthn/Credential.d.ts.map +1 -0
  565. package/dist/webauthn/Credential.js +105 -0
  566. package/dist/webauthn/Credential.js.map +1 -0
  567. package/dist/webauthn/Registration.d.ts +326 -0
  568. package/dist/webauthn/Registration.d.ts.map +1 -0
  569. package/dist/webauthn/Registration.js +523 -0
  570. package/dist/webauthn/Registration.js.map +1 -0
  571. package/dist/webauthn/Types.d.ts.map +1 -0
  572. package/dist/webauthn/Types.js.map +1 -0
  573. package/dist/webauthn/index.d.ts +32 -0
  574. package/dist/webauthn/index.d.ts.map +1 -0
  575. package/dist/webauthn/index.js +33 -0
  576. package/dist/webauthn/index.js.map +1 -0
  577. package/dist/webauthn/internal/utils.d.ts +61 -0
  578. package/dist/webauthn/internal/utils.d.ts.map +1 -0
  579. package/dist/webauthn/internal/utils.js +105 -0
  580. package/dist/webauthn/internal/utils.js.map +1 -0
  581. package/dist/window/index.d.ts.map +1 -0
  582. package/dist/window/index.js.map +1 -0
  583. package/dist/zod/AccessList.d.ts +16 -0
  584. package/dist/zod/AccessList.d.ts.map +1 -0
  585. package/dist/zod/AccessList.js +16 -0
  586. package/dist/zod/AccessList.js.map +1 -0
  587. package/dist/zod/AccountProof.d.ts +22 -0
  588. package/dist/zod/AccountProof.d.ts.map +1 -0
  589. package/dist/zod/AccountProof.js +23 -0
  590. package/dist/zod/AccountProof.js.map +1 -0
  591. package/dist/zod/Address.d.ts +4 -0
  592. package/dist/zod/Address.d.ts.map +1 -0
  593. package/dist/zod/Address.js +7 -0
  594. package/dist/zod/Address.js.map +1 -0
  595. package/dist/zod/Authorization.d.ts +71 -0
  596. package/dist/zod/Authorization.d.ts.map +1 -0
  597. package/dist/zod/Authorization.js +49 -0
  598. package/dist/zod/Authorization.js.map +1 -0
  599. package/dist/zod/BigInt.d.ts +4 -0
  600. package/dist/zod/BigInt.d.ts.map +1 -0
  601. package/dist/zod/BigInt.js +10 -0
  602. package/dist/zod/BigInt.js.map +1 -0
  603. package/dist/zod/Block.d.ts +456 -0
  604. package/dist/zod/Block.d.ts.map +1 -0
  605. package/dist/zod/Block.js +86 -0
  606. package/dist/zod/Block.js.map +1 -0
  607. package/dist/zod/BlockOverrides.d.ts +18 -0
  608. package/dist/zod/BlockOverrides.d.ts.map +1 -0
  609. package/dist/zod/BlockOverrides.js +17 -0
  610. package/dist/zod/BlockOverrides.js.map +1 -0
  611. package/dist/zod/Bytes.d.ts +8 -0
  612. package/dist/zod/Bytes.d.ts.map +1 -0
  613. package/dist/zod/Bytes.js +38 -0
  614. package/dist/zod/Bytes.js.map +1 -0
  615. package/dist/zod/Fee.d.ts +35 -0
  616. package/dist/zod/Fee.d.ts.map +1 -0
  617. package/dist/zod/Fee.js +32 -0
  618. package/dist/zod/Fee.js.map +1 -0
  619. package/dist/zod/Filter.d.ts +20 -0
  620. package/dist/zod/Filter.d.ts.map +1 -0
  621. package/dist/zod/Filter.js +46 -0
  622. package/dist/zod/Filter.js.map +1 -0
  623. package/dist/zod/Hash.d.ts +3 -0
  624. package/dist/zod/Hash.d.ts.map +1 -0
  625. package/dist/zod/Hash.js +5 -0
  626. package/dist/zod/Hash.js.map +1 -0
  627. package/dist/zod/Hex.d.ts +76 -0
  628. package/dist/zod/Hex.d.ts.map +1 -0
  629. package/dist/zod/Hex.js +82 -0
  630. package/dist/zod/Hex.js.map +1 -0
  631. package/dist/zod/Int.d.ts +68 -0
  632. package/dist/zod/Int.d.ts.map +1 -0
  633. package/dist/zod/Int.js +86 -0
  634. package/dist/zod/Int.js.map +1 -0
  635. package/dist/zod/Log.d.ts +28 -0
  636. package/dist/zod/Log.d.ts.map +1 -0
  637. package/dist/zod/Log.js +34 -0
  638. package/dist/zod/Log.js.map +1 -0
  639. package/dist/zod/Number.d.ts +4 -0
  640. package/dist/zod/Number.d.ts.map +1 -0
  641. package/dist/zod/Number.js +10 -0
  642. package/dist/zod/Number.js.map +1 -0
  643. package/dist/zod/RpcResponse.d.ts +24 -0
  644. package/dist/zod/RpcResponse.d.ts.map +1 -0
  645. package/dist/zod/RpcResponse.js +26 -0
  646. package/dist/zod/RpcResponse.js.map +1 -0
  647. package/dist/zod/RpcSchema.d.ts +3114 -0
  648. package/dist/zod/RpcSchema.d.ts.map +1 -0
  649. package/dist/zod/RpcSchema.js +131 -0
  650. package/dist/zod/RpcSchema.js.map +1 -0
  651. package/dist/zod/Signature.d.ts +22 -0
  652. package/dist/zod/Signature.d.ts.map +1 -0
  653. package/dist/zod/Signature.js +27 -0
  654. package/dist/zod/Signature.js.map +1 -0
  655. package/dist/zod/StateOverrides.d.ts +36 -0
  656. package/dist/zod/StateOverrides.d.ts.map +1 -0
  657. package/dist/zod/StateOverrides.js +29 -0
  658. package/dist/zod/StateOverrides.js.map +1 -0
  659. package/dist/zod/Transaction.d.ts +670 -0
  660. package/dist/zod/Transaction.d.ts.map +1 -0
  661. package/dist/zod/Transaction.js +204 -0
  662. package/dist/zod/Transaction.js.map +1 -0
  663. package/dist/zod/TransactionEnvelope.d.ts +482 -0
  664. package/dist/zod/TransactionEnvelope.d.ts.map +1 -0
  665. package/dist/zod/TransactionEnvelope.js +127 -0
  666. package/dist/zod/TransactionEnvelope.js.map +1 -0
  667. package/dist/zod/TransactionReceipt.d.ts +37 -0
  668. package/dist/zod/TransactionReceipt.d.ts.map +1 -0
  669. package/dist/zod/TransactionReceipt.js +60 -0
  670. package/dist/zod/TransactionReceipt.js.map +1 -0
  671. package/dist/zod/TransactionRequest.d.ts +36 -0
  672. package/dist/zod/TransactionRequest.d.ts.map +1 -0
  673. package/dist/zod/TransactionRequest.js +51 -0
  674. package/dist/zod/TransactionRequest.js.map +1 -0
  675. package/dist/zod/TxEnvelopeEip1559.d.ts +46 -0
  676. package/dist/zod/TxEnvelopeEip1559.d.ts.map +1 -0
  677. package/dist/zod/TxEnvelopeEip1559.js +21 -0
  678. package/dist/zod/TxEnvelopeEip1559.js.map +1 -0
  679. package/dist/zod/TxEnvelopeEip2930.d.ts +44 -0
  680. package/dist/zod/TxEnvelopeEip2930.d.ts.map +1 -0
  681. package/dist/zod/TxEnvelopeEip2930.js +19 -0
  682. package/dist/zod/TxEnvelopeEip2930.js.map +1 -0
  683. package/dist/zod/TxEnvelopeEip4844.d.ts +66 -0
  684. package/dist/zod/TxEnvelopeEip4844.d.ts.map +1 -0
  685. package/dist/zod/TxEnvelopeEip4844.js +34 -0
  686. package/dist/zod/TxEnvelopeEip4844.js.map +1 -0
  687. package/dist/zod/TxEnvelopeEip7702.d.ts +62 -0
  688. package/dist/zod/TxEnvelopeEip7702.d.ts.map +1 -0
  689. package/dist/zod/TxEnvelopeEip7702.js +24 -0
  690. package/dist/zod/TxEnvelopeEip7702.js.map +1 -0
  691. package/dist/zod/TxEnvelopeLegacy.d.ts +36 -0
  692. package/dist/zod/TxEnvelopeLegacy.d.ts.map +1 -0
  693. package/dist/zod/TxEnvelopeLegacy.js +16 -0
  694. package/dist/zod/TxEnvelopeLegacy.js.map +1 -0
  695. package/dist/zod/Uint.d.ts +68 -0
  696. package/dist/zod/Uint.d.ts.map +1 -0
  697. package/dist/zod/Uint.js +86 -0
  698. package/dist/zod/Uint.js.map +1 -0
  699. package/dist/zod/Withdrawal.d.ts +9 -0
  700. package/dist/zod/Withdrawal.d.ts.map +1 -0
  701. package/dist/zod/Withdrawal.js +13 -0
  702. package/dist/zod/Withdrawal.js.map +1 -0
  703. package/dist/zod/index.d.ts +20 -0
  704. package/dist/zod/index.d.ts.map +1 -0
  705. package/dist/zod/index.js +20 -0
  706. package/dist/zod/index.js.map +1 -0
  707. package/dist/zod/internal/Integer.d.ts +10 -0
  708. package/dist/zod/internal/Integer.d.ts.map +1 -0
  709. package/dist/zod/internal/Integer.js +60 -0
  710. package/dist/zod/internal/Integer.js.map +1 -0
  711. package/dist/zod/internal/TransactionEnvelope.d.ts +63 -0
  712. package/dist/zod/internal/TransactionEnvelope.d.ts.map +1 -0
  713. package/dist/zod/internal/TransactionEnvelope.js +49 -0
  714. package/dist/zod/internal/TransactionEnvelope.js.map +1 -0
  715. package/dist/zod/internal/rpcSchemas/Eth.d.ts +2814 -0
  716. package/dist/zod/internal/rpcSchemas/Eth.d.ts.map +1 -0
  717. package/dist/zod/internal/rpcSchemas/Eth.js +279 -0
  718. package/dist/zod/internal/rpcSchemas/Eth.js.map +1 -0
  719. package/dist/zod/internal/rpcSchemas/Wallet.d.ts +224 -0
  720. package/dist/zod/internal/rpcSchemas/Wallet.d.ts.map +1 -0
  721. package/dist/zod/internal/rpcSchemas/Wallet.js +202 -0
  722. package/dist/zod/internal/rpcSchemas/Wallet.js.map +1 -0
  723. package/dist/zod/internal/rpcSchemas/from.d.ts +34 -0
  724. package/dist/zod/internal/rpcSchemas/from.d.ts.map +1 -0
  725. package/dist/zod/internal/rpcSchemas/from.js +28 -0
  726. package/dist/zod/internal/rpcSchemas/from.js.map +1 -0
  727. package/dist/zod/tempo/AuthorizationTempo.d.ts +637 -0
  728. package/dist/zod/tempo/AuthorizationTempo.d.ts.map +1 -0
  729. package/dist/zod/tempo/AuthorizationTempo.js +56 -0
  730. package/dist/zod/tempo/AuthorizationTempo.js.map +1 -0
  731. package/dist/zod/tempo/KeyAuthorization.d.ts +419 -0
  732. package/dist/zod/tempo/KeyAuthorization.d.ts.map +1 -0
  733. package/dist/zod/tempo/KeyAuthorization.js +62 -0
  734. package/dist/zod/tempo/KeyAuthorization.js.map +1 -0
  735. package/dist/zod/tempo/MultisigConfig.d.ts +16 -0
  736. package/dist/zod/tempo/MultisigConfig.d.ts.map +1 -0
  737. package/dist/zod/tempo/MultisigConfig.js +16 -0
  738. package/dist/zod/tempo/MultisigConfig.js.map +1 -0
  739. package/dist/zod/tempo/PoolId.d.ts +3 -0
  740. package/dist/zod/tempo/PoolId.d.ts.map +1 -0
  741. package/dist/zod/tempo/PoolId.js +5 -0
  742. package/dist/zod/tempo/PoolId.js.map +1 -0
  743. package/dist/zod/tempo/RpcSchemaTempo.d.ts +1838 -0
  744. package/dist/zod/tempo/RpcSchemaTempo.d.ts.map +1 -0
  745. package/dist/zod/tempo/RpcSchemaTempo.js +60 -0
  746. package/dist/zod/tempo/RpcSchemaTempo.js.map +1 -0
  747. package/dist/zod/tempo/SignatureEnvelope.d.ts +317 -0
  748. package/dist/zod/tempo/SignatureEnvelope.d.ts.map +1 -0
  749. package/dist/zod/tempo/SignatureEnvelope.js +268 -0
  750. package/dist/zod/tempo/SignatureEnvelope.js.map +1 -0
  751. package/dist/zod/tempo/Tick.d.ts +4 -0
  752. package/dist/zod/tempo/Tick.d.ts.map +1 -0
  753. package/dist/zod/tempo/Tick.js +10 -0
  754. package/dist/zod/tempo/Tick.js.map +1 -0
  755. package/dist/zod/tempo/TokenId.d.ts +6 -0
  756. package/dist/zod/tempo/TokenId.d.ts.map +1 -0
  757. package/dist/zod/tempo/TokenId.js +14 -0
  758. package/dist/zod/tempo/TokenId.js.map +1 -0
  759. package/dist/zod/tempo/TokenRole.d.ts +4 -0
  760. package/dist/zod/tempo/TokenRole.d.ts.map +1 -0
  761. package/dist/zod/tempo/TokenRole.js +6 -0
  762. package/dist/zod/tempo/TokenRole.js.map +1 -0
  763. package/dist/zod/tempo/Transaction.d.ts +1018 -0
  764. package/dist/zod/tempo/Transaction.d.ts.map +1 -0
  765. package/dist/zod/tempo/Transaction.js +74 -0
  766. package/dist/zod/tempo/Transaction.js.map +1 -0
  767. package/dist/zod/tempo/TransactionReceipt.d.ts +39 -0
  768. package/dist/zod/tempo/TransactionReceipt.d.ts.map +1 -0
  769. package/dist/zod/tempo/TransactionReceipt.js +64 -0
  770. package/dist/zod/tempo/TransactionReceipt.js.map +1 -0
  771. package/dist/zod/tempo/TransactionRequest.d.ts +828 -0
  772. package/dist/zod/tempo/TransactionRequest.d.ts.map +1 -0
  773. package/dist/zod/tempo/TransactionRequest.js +242 -0
  774. package/dist/zod/tempo/TransactionRequest.js.map +1 -0
  775. package/dist/zod/tempo/TxEnvelopeTempo.d.ts +646 -0
  776. package/dist/zod/tempo/TxEnvelopeTempo.d.ts.map +1 -0
  777. package/dist/zod/tempo/TxEnvelopeTempo.js +57 -0
  778. package/dist/zod/tempo/TxEnvelopeTempo.js.map +1 -0
  779. package/dist/zod/tempo/VirtualAddress.d.ts +9 -0
  780. package/dist/zod/tempo/VirtualAddress.d.ts.map +1 -0
  781. package/dist/zod/tempo/VirtualAddress.js +13 -0
  782. package/dist/zod/tempo/VirtualAddress.js.map +1 -0
  783. package/dist/zod/tempo/ZoneId.d.ts +6 -0
  784. package/dist/zod/tempo/ZoneId.d.ts.map +1 -0
  785. package/dist/zod/tempo/ZoneId.js +13 -0
  786. package/dist/zod/tempo/ZoneId.js.map +1 -0
  787. package/dist/zod/tempo/ZoneRpcAuthentication.d.ts +210 -0
  788. package/dist/zod/tempo/ZoneRpcAuthentication.d.ts.map +1 -0
  789. package/dist/zod/tempo/ZoneRpcAuthentication.js +37 -0
  790. package/dist/zod/tempo/ZoneRpcAuthentication.js.map +1 -0
  791. package/dist/zod/tempo/z.d.ts +17 -0
  792. package/dist/zod/tempo/z.d.ts.map +1 -0
  793. package/dist/zod/tempo/z.js +18 -0
  794. package/dist/zod/tempo/z.js.map +1 -0
  795. package/dist/zod/z.d.ts +33 -0
  796. package/dist/zod/z.d.ts.map +1 -0
  797. package/dist/zod/z.js +34 -0
  798. package/dist/zod/z.js.map +1 -0
  799. package/package.json +657 -405
  800. package/src/CHANGELOG.md +820 -0
  801. package/src/LICENSE +21 -0
  802. package/src/README.md +92 -0
  803. package/src/core/Abi.ts +126 -0
  804. package/src/core/AbiConstructor.ts +488 -0
  805. package/src/core/AbiError.ts +832 -0
  806. package/src/core/AbiEvent.bench.ts +29 -0
  807. package/src/core/AbiEvent.ts +1976 -0
  808. package/src/core/AbiFunction.bench.ts +54 -0
  809. package/src/core/AbiFunction.ts +1090 -0
  810. package/src/core/AbiItem.bench.ts +40 -0
  811. package/src/core/AbiItem.ts +794 -0
  812. package/src/core/AbiParameters.bench.ts +82 -0
  813. package/src/core/AbiParameters.ts +749 -0
  814. package/src/core/AccessList.ts +126 -0
  815. package/src/core/AccountProof.bench.ts +66 -0
  816. package/src/core/AccountProof.ts +151 -0
  817. package/src/core/Address.bench.ts +92 -0
  818. package/src/core/Address.ts +373 -0
  819. package/src/core/AesGcm.bench.ts +25 -0
  820. package/src/core/AesGcm.ts +208 -0
  821. package/src/core/Authorization.ts +651 -0
  822. package/src/core/Base32.ts +138 -0
  823. package/src/core/Base58.ts +170 -0
  824. package/src/core/Base64.bench.ts +70 -0
  825. package/src/core/Base64.ts +437 -0
  826. package/src/core/Bech32m.ts +242 -0
  827. package/src/core/BinaryStateTree.ts +280 -0
  828. package/src/core/BlobCells.ts +379 -0
  829. package/src/core/Blobs.ts +754 -0
  830. package/src/core/Block.bench.ts +115 -0
  831. package/src/core/Block.ts +306 -0
  832. package/src/core/BlockOverrides.ts +135 -0
  833. package/src/core/Bloom.ts +188 -0
  834. package/src/core/Bls.bench.ts +32 -0
  835. package/src/core/Bls.ts +766 -0
  836. package/src/core/BlsPoint.ts +310 -0
  837. package/src/core/Bls_crypto.bench.ts +23 -0
  838. package/src/core/Bytes.bench.ts +121 -0
  839. package/src/core/Bytes.ts +889 -0
  840. package/src/core/Caches.ts +21 -0
  841. package/src/core/Cbor.bench.ts +58 -0
  842. package/src/core/Cbor.ts +969 -0
  843. package/src/core/CompactSize.ts +203 -0
  844. package/src/core/ContractAddress.ts +171 -0
  845. package/src/core/CoseKey.ts +221 -0
  846. package/src/core/Ed25519.ts +347 -0
  847. package/src/core/Ens.ts +141 -0
  848. package/src/core/Errors.ts +140 -0
  849. package/src/core/Fee.ts +237 -0
  850. package/src/core/Filter.ts +151 -0
  851. package/src/core/Hash.bench.ts +31 -0
  852. package/src/core/Hash.ts +269 -0
  853. package/src/core/HdKey.ts +164 -0
  854. package/src/core/Hex.bench.ts +121 -0
  855. package/src/core/Hex.ts +1002 -0
  856. package/src/core/Json.bench.ts +65 -0
  857. package/src/core/Json.ts +160 -0
  858. package/src/core/Keystore.ts +579 -0
  859. package/src/core/Kzg.ts +80 -0
  860. package/src/core/Log.bench.ts +53 -0
  861. package/src/core/Log.ts +250 -0
  862. package/src/core/Mnemonic.bench.ts +16 -0
  863. package/src/core/Mnemonic.ts +231 -0
  864. package/src/core/P256.ts +415 -0
  865. package/src/core/PersonalMessage.ts +80 -0
  866. package/src/core/Provider.bench.ts +31 -0
  867. package/src/core/Provider.ts +680 -0
  868. package/src/core/PublicKey.ts +567 -0
  869. package/src/core/Rlp.bench.ts +73 -0
  870. package/src/core/Rlp.ts +645 -0
  871. package/src/core/Rlp_tx.bench.ts +97 -0
  872. package/src/core/RpcRequest.bench.ts +41 -0
  873. package/src/core/RpcRequest.ts +207 -0
  874. package/src/core/RpcResponse.bench.ts +65 -0
  875. package/src/core/RpcResponse.ts +640 -0
  876. package/src/core/RpcSchema.ts +364 -0
  877. package/src/core/RpcTransport.bench.ts +42 -0
  878. package/src/core/RpcTransport.ts +225 -0
  879. package/src/core/Secp256k1.ts +510 -0
  880. package/src/core/Signature.bench.ts +56 -0
  881. package/src/core/Signature.ts +1005 -0
  882. package/src/core/Siwe.ts +512 -0
  883. package/src/core/Solidity.ts +166 -0
  884. package/src/core/StateOverrides.ts +134 -0
  885. package/src/core/Transaction.ts +434 -0
  886. package/src/core/TransactionReceipt.ts +333 -0
  887. package/src/core/TransactionRequest.ts +451 -0
  888. package/src/core/TxEnvelope.ts +944 -0
  889. package/src/core/TxEnvelopeEip1559.bench.ts +75 -0
  890. package/src/core/TxEnvelopeEip1559.ts +644 -0
  891. package/src/core/TxEnvelopeEip2930.ts +605 -0
  892. package/src/core/TxEnvelopeEip4844.ts +877 -0
  893. package/src/core/TxEnvelopeEip7702.ts +704 -0
  894. package/src/core/TxEnvelopeLegacy.ts +659 -0
  895. package/src/core/TypedData.ts +1039 -0
  896. package/src/core/ValidatorData.ts +86 -0
  897. package/src/core/Value.ts +278 -0
  898. package/src/core/WebAuthnP256.ts +400 -0
  899. package/src/core/WebCryptoP256.bench.ts +38 -0
  900. package/src/core/WebCryptoP256.ts +388 -0
  901. package/src/core/Withdrawal.ts +87 -0
  902. package/src/core/X25519.ts +204 -0
  903. package/src/core/_test/Abi.test-d.ts +74 -0
  904. package/src/core/_test/Abi.test.ts +124 -0
  905. package/src/core/_test/AbiConstructor.test-d.ts +149 -0
  906. package/src/core/_test/AbiConstructor.test.ts +380 -0
  907. package/src/core/_test/AbiError.test-d.ts +128 -0
  908. package/src/core/_test/AbiError.test.ts +1144 -0
  909. package/src/core/_test/AbiEvent.snap-d.ts +330 -0
  910. package/src/core/_test/AbiEvent.test-d.ts +94 -0
  911. package/src/core/_test/AbiEvent.test.ts +1937 -0
  912. package/src/core/_test/AbiFunction.snap-d.ts +276 -0
  913. package/src/core/_test/AbiFunction.test.ts +1272 -0
  914. package/src/core/_test/AbiItem.snap-d.ts +131 -0
  915. package/src/core/_test/AbiItem.test.ts +2121 -0
  916. package/src/core/_test/AbiParameters.adversarial.fuzz.ts +142 -0
  917. package/src/core/_test/AbiParameters.decode.test.ts +1800 -0
  918. package/src/core/_test/AbiParameters.encode.test.ts +1965 -0
  919. package/src/core/_test/AbiParameters.fuzz.ts +37 -0
  920. package/src/core/_test/AbiParameters.snap-d.ts +66 -0
  921. package/src/core/_test/AbiParameters.test.ts +377 -0
  922. package/src/core/_test/AccessList.test.ts +94 -0
  923. package/src/core/_test/AccountProof.test.ts +116 -0
  924. package/src/core/_test/Address.test.ts +252 -0
  925. package/src/core/_test/AesGcm.test.ts +112 -0
  926. package/src/core/_test/Authorization.test.ts +621 -0
  927. package/src/core/_test/Base.fuzz.ts +43 -0
  928. package/src/core/_test/Base32.test.ts +67 -0
  929. package/src/core/_test/Base58.test.ts +85 -0
  930. package/src/core/_test/Base64.test.ts +106 -0
  931. package/src/core/_test/Bech32m.test.ts +259 -0
  932. package/src/core/_test/BinaryStateTree.test.ts +182 -0
  933. package/src/core/_test/BlobCells.test.ts +276 -0
  934. package/src/core/_test/Blobs.test.ts +924 -0
  935. package/src/core/_test/Block.test.ts +641 -0
  936. package/src/core/_test/BlockOverrides.test.ts +110 -0
  937. package/src/core/_test/Bloom.test.ts +122 -0
  938. package/src/core/_test/Bls.test.ts +350 -0
  939. package/src/core/_test/BlsPoint.test.ts +251 -0
  940. package/src/core/_test/Bytes.test.ts +1659 -0
  941. package/src/core/_test/Caches.test.ts +20 -0
  942. package/src/core/_test/Cbor.fuzz.ts +89 -0
  943. package/src/core/_test/Cbor.test.ts +769 -0
  944. package/src/core/_test/CompactSize.test.ts +176 -0
  945. package/src/core/_test/ContractAddress.test.ts +147 -0
  946. package/src/core/_test/CoseKey.test.ts +107 -0
  947. package/src/core/_test/Ed25519.test-d.ts +155 -0
  948. package/src/core/_test/Ed25519.test.ts +438 -0
  949. package/src/core/_test/Ens.test.ts +212 -0
  950. package/src/core/_test/Errors.test.ts +285 -0
  951. package/src/core/_test/Fee.test.ts +89 -0
  952. package/src/core/_test/Filter.test.ts +149 -0
  953. package/src/core/_test/Hash.test.ts +540 -0
  954. package/src/core/_test/HdKey.test.ts +106 -0
  955. package/src/core/_test/Hex.fuzz.ts +73 -0
  956. package/src/core/_test/Hex.test-d.ts +16 -0
  957. package/src/core/_test/Hex.test.ts +787 -0
  958. package/src/core/_test/Json.test.ts +201 -0
  959. package/src/core/_test/Keystore.test.ts +628 -0
  960. package/src/core/_test/Kzg.test.ts +220 -0
  961. package/src/core/_test/Log.test.ts +223 -0
  962. package/src/core/_test/Mnemonic.test.ts +337 -0
  963. package/src/core/_test/P256.test.ts +612 -0
  964. package/src/core/_test/PersonalMessage.test.ts +56 -0
  965. package/src/core/_test/Provider.test-d.ts +304 -0
  966. package/src/core/_test/Provider.test.ts +914 -0
  967. package/src/core/_test/PublicKey.test-d.ts +52 -0
  968. package/src/core/_test/PublicKey.test.ts +576 -0
  969. package/src/core/_test/Rlp.fuzz.ts +63 -0
  970. package/src/core/_test/Rlp.test-d.ts +21 -0
  971. package/src/core/_test/Rlp.test.ts +339 -0
  972. package/src/core/_test/RpcRequest.test.ts +212 -0
  973. package/src/core/_test/RpcResponse.test.ts +725 -0
  974. package/src/core/_test/RpcSchema.test-d.ts +204 -0
  975. package/src/core/_test/RpcSchema.test.ts +10 -0
  976. package/src/core/_test/RpcTransport.test-d.ts +43 -0
  977. package/src/core/_test/RpcTransport.test.ts +255 -0
  978. package/src/core/_test/Secp256k1.snap-d.ts +44 -0
  979. package/src/core/_test/Secp256k1.test.ts +611 -0
  980. package/src/core/_test/Signature.fuzz.ts +66 -0
  981. package/src/core/_test/Signature.snap-d.ts +91 -0
  982. package/src/core/_test/Signature.test.ts +862 -0
  983. package/src/core/_test/Siwe.test.ts +792 -0
  984. package/src/core/_test/Solidity.test.ts +135 -0
  985. package/src/core/_test/StateOverrides.test.ts +104 -0
  986. package/src/core/_test/Transaction.test.ts +1975 -0
  987. package/src/core/_test/TransactionEnvelope.test-d.ts +182 -0
  988. package/src/core/_test/TransactionEnvelope.test.ts +384 -0
  989. package/src/core/_test/TransactionEnvelopeEip1559.test-d.ts +47 -0
  990. package/src/core/_test/TransactionEnvelopeEip1559.test.ts +790 -0
  991. package/src/core/_test/TransactionEnvelopeEip2930.test-d.ts +74 -0
  992. package/src/core/_test/TransactionEnvelopeEip2930.test.ts +592 -0
  993. package/src/core/_test/TransactionEnvelopeEip4844.test-d.ts +92 -0
  994. package/src/core/_test/TransactionEnvelopeEip4844.test.ts +795 -0
  995. package/src/core/_test/TransactionEnvelopeEip7702.test-d.ts +80 -0
  996. package/src/core/_test/TransactionEnvelopeEip7702.test.ts +984 -0
  997. package/src/core/_test/TransactionEnvelopeLegacy.test-d.ts +69 -0
  998. package/src/core/_test/TransactionEnvelopeLegacy.test.ts +949 -0
  999. package/src/core/_test/TransactionReceipt.test.ts +405 -0
  1000. package/src/core/_test/TransactionRequest.test-d.ts +125 -0
  1001. package/src/core/_test/TransactionRequest.test.ts +430 -0
  1002. package/src/core/_test/TypedData.test-d.ts +151 -0
  1003. package/src/core/_test/TypedData.test.ts +1595 -0
  1004. package/src/core/_test/ValidatorData.test.ts +79 -0
  1005. package/src/core/_test/Value.test.ts +715 -0
  1006. package/src/core/_test/WebAuthnP256.test.ts +1833 -0
  1007. package/src/core/_test/WebCryptoP256.test.ts +279 -0
  1008. package/src/core/_test/Withdrawal.test.ts +51 -0
  1009. package/src/core/_test/X25519.test-d.ts +132 -0
  1010. package/src/core/_test/X25519.test.ts +361 -0
  1011. package/src/core/_test/_snap/Block.test.ts.snap +3436 -0
  1012. package/src/core/_test/index.test.ts +82 -0
  1013. package/src/core/_test/internal/base58.test.ts +11 -0
  1014. package/src/core/_test/internal/cursor.test.ts +649 -0
  1015. package/src/core/_test/internal/ens.test.ts +76 -0
  1016. package/src/core/_test/internal/lru.test.ts +38 -0
  1017. package/src/core/_test/internal/promise.test.ts +64 -0
  1018. package/src/core/_test/internal/rpcTransport.test.ts +47 -0
  1019. package/src/core/_test/internal/uid.test.ts +7 -0
  1020. package/src/core/_test/internal/webauthn.test.ts +43 -0
  1021. package/src/core/internal/abiConstructor.ts +33 -0
  1022. package/src/core/internal/abiError.ts +31 -0
  1023. package/src/core/internal/abiEvent.ts +155 -0
  1024. package/src/core/internal/abiFunction.ts +33 -0
  1025. package/src/core/internal/abiItem.ts +687 -0
  1026. package/src/core/internal/abiParameters.ts +821 -0
  1027. package/src/core/internal/address.ts +79 -0
  1028. package/src/core/internal/base58.ts +102 -0
  1029. package/src/core/internal/bytes.ts +139 -0
  1030. package/src/core/internal/codec/bech32-base32.ts +64 -0
  1031. package/src/core/internal/codec/errors.ts +30 -0
  1032. package/src/core/internal/codec/hex.ts +145 -0
  1033. package/src/core/internal/codec/int.ts +186 -0
  1034. package/src/core/internal/codec/utf8.ts +11 -0
  1035. package/src/core/internal/cryptoIo.ts +74 -0
  1036. package/src/core/internal/cursor.ts +254 -0
  1037. package/src/core/internal/ens.ts +65 -0
  1038. package/src/core/internal/hex.ts +116 -0
  1039. package/src/core/internal/lru.ts +58 -0
  1040. package/src/core/internal/mnemonic/wordlists.ts +10 -0
  1041. package/src/core/internal/promise.ts +66 -0
  1042. package/src/core/internal/quantity.ts +83 -0
  1043. package/src/core/internal/rpcSchemas/eth.ts +767 -0
  1044. package/src/core/internal/rpcSchemas/wallet.ts +460 -0
  1045. package/src/core/internal/rpcTransport.ts +74 -0
  1046. package/src/core/internal/signature.ts +10 -0
  1047. package/src/core/internal/tx.ts +185 -0
  1048. package/src/core/internal/types.ts +450 -0
  1049. package/src/core/internal/webauthn.ts +105 -0
  1050. package/src/erc4337/RpcSchema.ts +159 -0
  1051. package/src/erc4337/UserOperation.bench.ts +87 -0
  1052. package/src/erc4337/UserOperation.ts +1012 -0
  1053. package/src/erc4337/UserOperationGas.ts +116 -0
  1054. package/src/erc4337/_test/UserOperation.snap-d.ts +56 -0
  1055. package/src/erc4337/_test/UserOperation.test.ts +1502 -0
  1056. package/src/erc4337/_test/UserOperationGas.test.ts +93 -0
  1057. package/src/erc4337/_test/UserOperationReceipt.test.ts +403 -0
  1058. package/src/erc4337/index.ts +37 -0
  1059. package/src/erc6492/SignatureErc6492.bench.ts +21 -0
  1060. package/src/erc6492/SignatureErc6492.ts +290 -0
  1061. package/src/erc6492/_test/SignatureErc6492.test.ts +161 -0
  1062. package/src/erc6492/_test/index.test.ts +10 -0
  1063. package/src/erc6492/index.ts +28 -0
  1064. package/src/erc7821/Calls.bench.ts +36 -0
  1065. package/src/erc7821/Calls.ts +161 -0
  1066. package/src/erc7821/Execute.ts +197 -0
  1067. package/src/erc7821/_test/Calls.test.ts +214 -0
  1068. package/src/erc7821/_test/Execute.test.ts +548 -0
  1069. package/src/erc7821/index.ts +72 -0
  1070. package/src/erc8010/SignatureErc8010.ts +266 -0
  1071. package/src/erc8010/_test/SignatureErc8010.test.ts +211 -0
  1072. package/src/erc8010/_test/index.test.ts +10 -0
  1073. package/src/erc8010/index.ts +51 -0
  1074. package/src/erc8021/Attribution.bench.ts +25 -0
  1075. package/src/erc8021/Attribution.ts +516 -0
  1076. package/src/erc8021/_test/Attribution.test.ts +772 -0
  1077. package/src/erc8021/_test/index.test.ts +10 -0
  1078. package/src/erc8021/index.ts +45 -0
  1079. package/src/index.docs.ts +12 -0
  1080. package/src/index.ts +3831 -0
  1081. package/src/tempo/AuthorizationTempo.test.ts +1378 -0
  1082. package/src/tempo/AuthorizationTempo.ts +946 -0
  1083. package/src/tempo/Channel.test.ts +203 -0
  1084. package/src/tempo/Channel.ts +303 -0
  1085. package/src/tempo/KeyAuthorization.test.ts +2443 -0
  1086. package/src/tempo/KeyAuthorization.ts +1183 -0
  1087. package/src/tempo/MultisigConfig.test.ts +236 -0
  1088. package/src/tempo/MultisigConfig.ts +532 -0
  1089. package/src/tempo/Period.test.ts +44 -0
  1090. package/src/tempo/PoolId.test.ts +58 -0
  1091. package/src/tempo/PoolId.ts +42 -0
  1092. package/src/tempo/ReceivePolicyReceipt.test.ts +198 -0
  1093. package/src/tempo/ReceivePolicyReceipt.ts +274 -0
  1094. package/src/tempo/RpcSchemaTempo.ts +55 -0
  1095. package/src/tempo/SignatureEnvelope.test.ts +3031 -0
  1096. package/src/tempo/SignatureEnvelope.ts +1785 -0
  1097. package/src/tempo/Tick.test.ts +281 -0
  1098. package/src/tempo/TokenId.bench.ts +36 -0
  1099. package/src/tempo/TokenId.test.ts +79 -0
  1100. package/src/tempo/TokenId.ts +141 -0
  1101. package/src/tempo/TokenRole.test.ts +16 -0
  1102. package/src/tempo/Transaction.test.ts +529 -0
  1103. package/src/tempo/Transaction.ts +341 -0
  1104. package/src/tempo/TransactionReceipt.ts +200 -0
  1105. package/src/tempo/TransactionRequest.test-d.ts +118 -0
  1106. package/src/tempo/TransactionRequest.test.ts +324 -0
  1107. package/src/tempo/TransactionRequest.ts +382 -0
  1108. package/src/tempo/TxEnvelopeTempo.test.ts +1643 -0
  1109. package/src/tempo/TxEnvelopeTempo.ts +1167 -0
  1110. package/src/tempo/VirtualAddress.bench.ts +43 -0
  1111. package/src/tempo/VirtualAddress.test.ts +78 -0
  1112. package/src/tempo/VirtualAddress.ts +206 -0
  1113. package/src/tempo/VirtualMaster.bench.ts +42 -0
  1114. package/src/tempo/VirtualMaster.test.ts +194 -0
  1115. package/src/tempo/VirtualMaster.ts +732 -0
  1116. package/src/tempo/ZoneId.test.ts +42 -0
  1117. package/src/tempo/ZoneRpcAuthentication.test.ts +226 -0
  1118. package/src/tempo/ZoneRpcAuthentication.ts +427 -0
  1119. package/src/tempo/e2e.test.ts +3207 -0
  1120. package/src/tempo/index.ts +588 -0
  1121. package/src/trusted-setups/_test/Paths.test.ts +10 -0
  1122. package/src/trusted-setups/_test/index.test.ts +10 -0
  1123. package/src/tsconfig.json +15 -0
  1124. package/src/version.ts +2 -0
  1125. package/src/webauthn/Authentication.bench.ts +94 -0
  1126. package/src/webauthn/Authentication.ts +701 -0
  1127. package/src/webauthn/Authenticator.bench.ts +63 -0
  1128. package/src/webauthn/Authenticator.ts +306 -0
  1129. package/src/webauthn/Credential.ts +165 -0
  1130. package/src/webauthn/Registration.bench.ts +108 -0
  1131. package/src/webauthn/Registration.ts +825 -0
  1132. package/src/webauthn/_test/Authentication.browser.test.ts +755 -0
  1133. package/src/webauthn/_test/Authentication.test.ts +1871 -0
  1134. package/src/webauthn/_test/Authenticator.test.ts +57 -0
  1135. package/src/webauthn/_test/Credential.test.ts +147 -0
  1136. package/src/webauthn/_test/Registration.browser.test.ts +899 -0
  1137. package/src/webauthn/_test/Registration.test.ts +1050 -0
  1138. package/src/webauthn/index.ts +37 -0
  1139. package/src/webauthn/internal/utils.ts +149 -0
  1140. package/src/zod/AccessList.ts +21 -0
  1141. package/src/zod/AccountProof.ts +24 -0
  1142. package/src/zod/Address.ts +9 -0
  1143. package/src/zod/Authorization.ts +70 -0
  1144. package/src/zod/BigInt.ts +10 -0
  1145. package/src/zod/Block.ts +108 -0
  1146. package/src/zod/BlockOverrides.ts +17 -0
  1147. package/src/zod/Bytes.ts +59 -0
  1148. package/src/zod/Fee.ts +36 -0
  1149. package/src/zod/Filter.ts +52 -0
  1150. package/src/zod/Hash.ts +5 -0
  1151. package/src/zod/Hex.ts +89 -0
  1152. package/src/zod/Int.ts +98 -0
  1153. package/src/zod/Log.ts +36 -0
  1154. package/src/zod/Number.ts +10 -0
  1155. package/src/zod/RpcResponse.ts +28 -0
  1156. package/src/zod/RpcSchema.ts +268 -0
  1157. package/src/zod/Signature.ts +38 -0
  1158. package/src/zod/StateOverrides.ts +32 -0
  1159. package/src/zod/Transaction.ts +250 -0
  1160. package/src/zod/TransactionEnvelope.ts +147 -0
  1161. package/src/zod/TransactionReceipt.ts +70 -0
  1162. package/src/zod/TransactionRequest.ts +54 -0
  1163. package/src/zod/TxEnvelopeEip1559.ts +27 -0
  1164. package/src/zod/TxEnvelopeEip2930.ts +25 -0
  1165. package/src/zod/TxEnvelopeEip4844.ts +41 -0
  1166. package/src/zod/TxEnvelopeEip7702.ts +30 -0
  1167. package/src/zod/TxEnvelopeLegacy.ts +22 -0
  1168. package/src/zod/Uint.ts +95 -0
  1169. package/src/zod/Withdrawal.ts +13 -0
  1170. package/src/zod/_test/AccessList.test-d.ts +13 -0
  1171. package/src/zod/_test/AccessList.test.ts +44 -0
  1172. package/src/zod/_test/AccountProof.test-d.ts +19 -0
  1173. package/src/zod/_test/AccountProof.test.ts +102 -0
  1174. package/src/zod/_test/Address.test-d.ts +13 -0
  1175. package/src/zod/_test/Address.test.ts +17 -0
  1176. package/src/zod/_test/Authorization.test-d.ts +40 -0
  1177. package/src/zod/_test/Authorization.test.ts +148 -0
  1178. package/src/zod/_test/BigInt.test-d.ts +9 -0
  1179. package/src/zod/_test/BigInt.test.ts +9 -0
  1180. package/src/zod/_test/Block.test-d.ts +30 -0
  1181. package/src/zod/_test/Block.test.ts +231 -0
  1182. package/src/zod/_test/BlockOverrides.test-d.ts +13 -0
  1183. package/src/zod/_test/BlockOverrides.test.ts +99 -0
  1184. package/src/zod/_test/Bytes.test-d.ts +16 -0
  1185. package/src/zod/_test/Bytes.test.ts +26 -0
  1186. package/src/zod/_test/Fee.test-d.ts +31 -0
  1187. package/src/zod/_test/Fee.test.ts +91 -0
  1188. package/src/zod/_test/Filter.test-d.ts +25 -0
  1189. package/src/zod/_test/Filter.test.ts +89 -0
  1190. package/src/zod/_test/Hash.test-d.ts +9 -0
  1191. package/src/zod/_test/Hash.test.ts +11 -0
  1192. package/src/zod/_test/Hex.test-d.ts +11 -0
  1193. package/src/zod/_test/Hex.test.ts +42 -0
  1194. package/src/zod/_test/Int.test-d.ts +15 -0
  1195. package/src/zod/_test/Int.test.ts +43 -0
  1196. package/src/zod/_test/Log.test-d.ts +15 -0
  1197. package/src/zod/_test/Log.test.ts +132 -0
  1198. package/src/zod/_test/Number.test-d.ts +9 -0
  1199. package/src/zod/_test/Number.test.ts +11 -0
  1200. package/src/zod/_test/RpcResponse.test-d.ts +13 -0
  1201. package/src/zod/_test/RpcResponse.test.ts +88 -0
  1202. package/src/zod/_test/RpcSchema.test-d.ts +79 -0
  1203. package/src/zod/_test/RpcSchema.test.ts +291 -0
  1204. package/src/zod/_test/Signature.test-d.ts +25 -0
  1205. package/src/zod/_test/Signature.test.ts +49 -0
  1206. package/src/zod/_test/StateOverrides.test-d.ts +25 -0
  1207. package/src/zod/_test/StateOverrides.test.ts +80 -0
  1208. package/src/zod/_test/Transaction.test-d.ts +49 -0
  1209. package/src/zod/_test/Transaction.test.ts +200 -0
  1210. package/src/zod/_test/TransactionEnvelope.test-d.ts +35 -0
  1211. package/src/zod/_test/TransactionEnvelope.test.ts +204 -0
  1212. package/src/zod/_test/TransactionReceipt.test-d.ts +25 -0
  1213. package/src/zod/_test/TransactionReceipt.test.ts +215 -0
  1214. package/src/zod/_test/TransactionRequest.test-d.ts +13 -0
  1215. package/src/zod/_test/TransactionRequest.test.ts +191 -0
  1216. package/src/zod/_test/TxEnvelope.test-d.ts +67 -0
  1217. package/src/zod/_test/TxEnvelope.test.ts +177 -0
  1218. package/src/zod/_test/Uint.test-d.ts +15 -0
  1219. package/src/zod/_test/Uint.test.ts +45 -0
  1220. package/src/zod/_test/Withdrawal.test-d.ts +13 -0
  1221. package/src/zod/_test/Withdrawal.test.ts +38 -0
  1222. package/src/zod/_test/z.test-d.ts +67 -0
  1223. package/src/zod/_test/z.test.ts +195 -0
  1224. package/src/zod/index.ts +19 -0
  1225. package/src/zod/internal/Integer.ts +73 -0
  1226. package/src/zod/internal/TransactionEnvelope.ts +64 -0
  1227. package/src/zod/internal/rpcSchemas/Eth.ts +337 -0
  1228. package/src/zod/internal/rpcSchemas/Wallet.ts +250 -0
  1229. package/src/zod/internal/rpcSchemas/from.ts +52 -0
  1230. package/src/zod/tempo/AuthorizationTempo.ts +73 -0
  1231. package/src/zod/tempo/KeyAuthorization.ts +70 -0
  1232. package/src/zod/tempo/MultisigConfig.ts +17 -0
  1233. package/src/zod/tempo/PoolId.ts +5 -0
  1234. package/src/zod/tempo/RpcSchemaTempo.ts +87 -0
  1235. package/src/zod/tempo/SignatureEnvelope.ts +319 -0
  1236. package/src/zod/tempo/Tick.ts +16 -0
  1237. package/src/zod/tempo/TokenId.ts +15 -0
  1238. package/src/zod/tempo/TokenRole.ts +6 -0
  1239. package/src/zod/tempo/Transaction.ts +83 -0
  1240. package/src/zod/tempo/TransactionReceipt.ts +74 -0
  1241. package/src/zod/tempo/TransactionRequest.ts +295 -0
  1242. package/src/zod/tempo/TxEnvelopeTempo.ts +69 -0
  1243. package/src/zod/tempo/VirtualAddress.ts +23 -0
  1244. package/src/zod/tempo/ZoneId.ts +19 -0
  1245. package/src/zod/tempo/ZoneRpcAuthentication.ts +46 -0
  1246. package/src/zod/tempo/_test/AuthorizationTempo.test-d.ts +10 -0
  1247. package/src/zod/tempo/_test/AuthorizationTempo.test.ts +50 -0
  1248. package/src/zod/tempo/_test/KeyAuthorization.test-d.ts +13 -0
  1249. package/src/zod/tempo/_test/KeyAuthorization.test.ts +58 -0
  1250. package/src/zod/tempo/_test/PoolId.test-d.ts +8 -0
  1251. package/src/zod/tempo/_test/PoolId.test.ts +16 -0
  1252. package/src/zod/tempo/_test/RpcSchemaTempo.test-d.ts +22 -0
  1253. package/src/zod/tempo/_test/RpcSchemaTempo.test.ts +56 -0
  1254. package/src/zod/tempo/_test/SignatureEnvelope.test-d.ts +19 -0
  1255. package/src/zod/tempo/_test/SignatureEnvelope.test.ts +83 -0
  1256. package/src/zod/tempo/_test/Tick.test-d.ts +8 -0
  1257. package/src/zod/tempo/_test/Tick.test.ts +20 -0
  1258. package/src/zod/tempo/_test/TokenId.test-d.ts +17 -0
  1259. package/src/zod/tempo/_test/TokenId.test.ts +21 -0
  1260. package/src/zod/tempo/_test/TokenRole.test-d.ts +10 -0
  1261. package/src/zod/tempo/_test/TokenRole.test.ts +18 -0
  1262. package/src/zod/tempo/_test/Transaction.test-d.ts +10 -0
  1263. package/src/zod/tempo/_test/Transaction.test.ts +88 -0
  1264. package/src/zod/tempo/_test/TransactionReceipt.test-d.ts +13 -0
  1265. package/src/zod/tempo/_test/TransactionReceipt.test.ts +54 -0
  1266. package/src/zod/tempo/_test/TransactionRequest.test-d.ts +13 -0
  1267. package/src/zod/tempo/_test/TransactionRequest.test.ts +54 -0
  1268. package/src/zod/tempo/_test/TxEnvelopeTempo.test-d.ts +16 -0
  1269. package/src/zod/tempo/_test/TxEnvelopeTempo.test.ts +79 -0
  1270. package/src/zod/tempo/_test/VirtualAddress.test-d.ts +13 -0
  1271. package/src/zod/tempo/_test/VirtualAddress.test.ts +37 -0
  1272. package/src/zod/tempo/_test/ZoneId.test.ts +17 -0
  1273. package/src/zod/tempo/_test/ZoneRpcAuthentication.test-d.ts +16 -0
  1274. package/src/zod/tempo/_test/ZoneRpcAuthentication.test.ts +47 -0
  1275. package/src/zod/tempo/z.ts +17 -0
  1276. package/src/zod/z.ts +101 -0
  1277. package/Abi/package.json +0 -6
  1278. package/AbiConstructor/package.json +0 -6
  1279. package/AbiError/package.json +0 -6
  1280. package/AbiEvent/package.json +0 -6
  1281. package/AbiFunction/package.json +0 -6
  1282. package/AbiItem/package.json +0 -6
  1283. package/AbiParameters/package.json +0 -6
  1284. package/AccessList/package.json +0 -6
  1285. package/AccountProof/package.json +0 -6
  1286. package/Address/package.json +0 -6
  1287. package/AesGcm/package.json +0 -6
  1288. package/Authorization/package.json +0 -6
  1289. package/Base32/package.json +0 -6
  1290. package/Base58/package.json +0 -6
  1291. package/Base64/package.json +0 -6
  1292. package/Bech32m/package.json +0 -6
  1293. package/BinaryStateTree/package.json +0 -6
  1294. package/Blobs/package.json +0 -6
  1295. package/Block/package.json +0 -6
  1296. package/BlockOverrides/package.json +0 -6
  1297. package/Bloom/package.json +0 -6
  1298. package/Bls/package.json +0 -6
  1299. package/BlsPoint/package.json +0 -6
  1300. package/Bytes/package.json +0 -6
  1301. package/CHANGELOG.md +0 -824
  1302. package/Caches/package.json +0 -6
  1303. package/Cbor/package.json +0 -6
  1304. package/CompactSize/package.json +0 -6
  1305. package/ContractAddress/package.json +0 -6
  1306. package/CoseKey/package.json +0 -6
  1307. package/Ed25519/package.json +0 -6
  1308. package/Ens/package.json +0 -6
  1309. package/Errors/package.json +0 -6
  1310. package/Fee/package.json +0 -6
  1311. package/Filter/package.json +0 -6
  1312. package/Hash/package.json +0 -6
  1313. package/HdKey/package.json +0 -6
  1314. package/Hex/package.json +0 -6
  1315. package/Json/package.json +0 -6
  1316. package/Keystore/package.json +0 -6
  1317. package/Kzg/package.json +0 -6
  1318. package/Log/package.json +0 -6
  1319. package/Mnemonic/package.json +0 -6
  1320. package/P256/package.json +0 -6
  1321. package/PersonalMessage/package.json +0 -6
  1322. package/Provider/package.json +0 -6
  1323. package/PublicKey/package.json +0 -6
  1324. package/README.md +0 -93
  1325. package/Rlp/package.json +0 -6
  1326. package/RpcRequest/package.json +0 -6
  1327. package/RpcResponse/package.json +0 -6
  1328. package/RpcSchema/package.json +0 -6
  1329. package/RpcTransport/package.json +0 -6
  1330. package/Secp256k1/package.json +0 -6
  1331. package/Signature/package.json +0 -6
  1332. package/Siwe/package.json +0 -6
  1333. package/Solidity/package.json +0 -6
  1334. package/StateOverrides/package.json +0 -6
  1335. package/Transaction/package.json +0 -6
  1336. package/TransactionReceipt/package.json +0 -6
  1337. package/TransactionRequest/package.json +0 -6
  1338. package/TxEnvelope/package.json +0 -6
  1339. package/TxEnvelopeEip1559/package.json +0 -6
  1340. package/TxEnvelopeEip2930/package.json +0 -6
  1341. package/TxEnvelopeEip4844/package.json +0 -6
  1342. package/TxEnvelopeEip7702/package.json +0 -6
  1343. package/TxEnvelopeLegacy/package.json +0 -6
  1344. package/TypedData/package.json +0 -6
  1345. package/ValidatorData/package.json +0 -6
  1346. package/Value/package.json +0 -6
  1347. package/WebAuthnP256/package.json +0 -6
  1348. package/WebCryptoP256/package.json +0 -6
  1349. package/Withdrawal/package.json +0 -6
  1350. package/X25519/package.json +0 -6
  1351. package/_cjs/core/Abi.js +0 -15
  1352. package/_cjs/core/Abi.js.map +0 -1
  1353. package/_cjs/core/AbiConstructor.js +0 -51
  1354. package/_cjs/core/AbiConstructor.js.map +0 -1
  1355. package/_cjs/core/AbiError.js +0 -108
  1356. package/_cjs/core/AbiError.js.map +0 -1
  1357. package/_cjs/core/AbiEvent.js +0 -348
  1358. package/_cjs/core/AbiEvent.js.map +0 -1
  1359. package/_cjs/core/AbiFunction.js +0 -107
  1360. package/_cjs/core/AbiFunction.js.map +0 -1
  1361. package/_cjs/core/AbiItem.js +0 -195
  1362. package/_cjs/core/AbiItem.js.map +0 -1
  1363. package/_cjs/core/AbiParameters.js +0 -227
  1364. package/_cjs/core/AbiParameters.js.map +0 -1
  1365. package/_cjs/core/AccessList.js +0 -51
  1366. package/_cjs/core/AccessList.js.map +0 -1
  1367. package/_cjs/core/AccountProof.js +0 -3
  1368. package/_cjs/core/AccountProof.js.map +0 -1
  1369. package/_cjs/core/Address.js +0 -116
  1370. package/_cjs/core/Address.js.map +0 -1
  1371. package/_cjs/core/AesGcm.js +0 -51
  1372. package/_cjs/core/AesGcm.js.map +0 -1
  1373. package/_cjs/core/Authorization.js +0 -96
  1374. package/_cjs/core/Authorization.js.map +0 -1
  1375. package/_cjs/core/Base32.js +0 -73
  1376. package/_cjs/core/Base32.js.map +0 -1
  1377. package/_cjs/core/Base58.js +0 -46
  1378. package/_cjs/core/Base58.js.map +0 -1
  1379. package/_cjs/core/Base64.js +0 -70
  1380. package/_cjs/core/Base64.js.map +0 -1
  1381. package/_cjs/core/Bech32m.js +0 -205
  1382. package/_cjs/core/Bech32m.js.map +0 -1
  1383. package/_cjs/core/BinaryStateTree.js +0 -141
  1384. package/_cjs/core/BinaryStateTree.js.map +0 -1
  1385. package/_cjs/core/Blobs.js +0 -244
  1386. package/_cjs/core/Blobs.js.map +0 -1
  1387. package/_cjs/core/Block.js +0 -85
  1388. package/_cjs/core/Block.js.map +0 -1
  1389. package/_cjs/core/BlockOverrides.js +0 -63
  1390. package/_cjs/core/BlockOverrides.js.map +0 -1
  1391. package/_cjs/core/Bloom.js +0 -21
  1392. package/_cjs/core/Bloom.js.map +0 -1
  1393. package/_cjs/core/Bls.js +0 -86
  1394. package/_cjs/core/Bls.js.map +0 -1
  1395. package/_cjs/core/BlsPoint.js +0 -28
  1396. package/_cjs/core/BlsPoint.js.map +0 -1
  1397. package/_cjs/core/Bytes.js +0 -257
  1398. package/_cjs/core/Bytes.js.map +0 -1
  1399. package/_cjs/core/Caches.js +0 -14
  1400. package/_cjs/core/Caches.js.map +0 -1
  1401. package/_cjs/core/Cbor.js +0 -748
  1402. package/_cjs/core/Cbor.js.map +0 -1
  1403. package/_cjs/core/CompactSize.js +0 -91
  1404. package/_cjs/core/CompactSize.js.map +0 -1
  1405. package/_cjs/core/ContractAddress.js +0 -36
  1406. package/_cjs/core/ContractAddress.js.map +0 -1
  1407. package/_cjs/core/CoseKey.js +0 -41
  1408. package/_cjs/core/CoseKey.js.map +0 -1
  1409. package/_cjs/core/Ed25519.js +0 -71
  1410. package/_cjs/core/Ed25519.js.map +0 -1
  1411. package/_cjs/core/Ens.js +0 -34
  1412. package/_cjs/core/Ens.js.map +0 -1
  1413. package/_cjs/core/Errors.js +0 -139
  1414. package/_cjs/core/Errors.js.map +0 -1
  1415. package/_cjs/core/Fee.js +0 -3
  1416. package/_cjs/core/Fee.js.map +0 -1
  1417. package/_cjs/core/Filter.js +0 -41
  1418. package/_cjs/core/Filter.js.map +0 -1
  1419. package/_cjs/core/Hash.js +0 -45
  1420. package/_cjs/core/Hash.js.map +0 -1
  1421. package/_cjs/core/HdKey.js +0 -26
  1422. package/_cjs/core/HdKey.js.map +0 -1
  1423. package/_cjs/core/Hex.js +0 -301
  1424. package/_cjs/core/Hex.js.map +0 -1
  1425. package/_cjs/core/Json.js +0 -49
  1426. package/_cjs/core/Json.js.map +0 -1
  1427. package/_cjs/core/Keystore.js +0 -183
  1428. package/_cjs/core/Keystore.js.map +0 -1
  1429. package/_cjs/core/Kzg.js +0 -13
  1430. package/_cjs/core/Kzg.js.map +0 -1
  1431. package/_cjs/core/Log.js +0 -33
  1432. package/_cjs/core/Log.js.map +0 -1
  1433. package/_cjs/core/Mnemonic.js +0 -51
  1434. package/_cjs/core/Mnemonic.js.map +0 -1
  1435. package/_cjs/core/P256.js +0 -79
  1436. package/_cjs/core/P256.js.map +0 -1
  1437. package/_cjs/core/PersonalMessage.js +0 -14
  1438. package/_cjs/core/PersonalMessage.js.map +0 -1
  1439. package/_cjs/core/Provider.js +0 -436
  1440. package/_cjs/core/Provider.js.map +0 -1
  1441. package/_cjs/core/PublicKey.js +0 -186
  1442. package/_cjs/core/PublicKey.js.map +0 -1
  1443. package/_cjs/core/Rlp.js +0 -173
  1444. package/_cjs/core/Rlp.js.map +0 -1
  1445. package/_cjs/core/RpcRequest.js +0 -25
  1446. package/_cjs/core/RpcRequest.js.map +0 -1
  1447. package/_cjs/core/RpcResponse.js +0 -444
  1448. package/_cjs/core/RpcResponse.js.map +0 -1
  1449. package/_cjs/core/RpcSchema.js +0 -7
  1450. package/_cjs/core/RpcSchema.js.map +0 -1
  1451. package/_cjs/core/RpcTransport.js +0 -94
  1452. package/_cjs/core/RpcTransport.js.map +0 -1
  1453. package/_cjs/core/Secp256k1.js +0 -80
  1454. package/_cjs/core/Secp256k1.js.map +0 -1
  1455. package/_cjs/core/Signature.js +0 -288
  1456. package/_cjs/core/Signature.js.map +0 -1
  1457. package/_cjs/core/Siwe.js +0 -230
  1458. package/_cjs/core/Siwe.js.map +0 -1
  1459. package/_cjs/core/Solidity.js +0 -104
  1460. package/_cjs/core/Solidity.js.map +0 -1
  1461. package/_cjs/core/StateOverrides.js +0 -48
  1462. package/_cjs/core/StateOverrides.js.map +0 -1
  1463. package/_cjs/core/Transaction.js +0 -114
  1464. package/_cjs/core/Transaction.js.map +0 -1
  1465. package/_cjs/core/TransactionReceipt.js +0 -74
  1466. package/_cjs/core/TransactionReceipt.js.map +0 -1
  1467. package/_cjs/core/TransactionRequest.js +0 -78
  1468. package/_cjs/core/TransactionRequest.js.map +0 -1
  1469. package/_cjs/core/TxEnvelope.js +0 -80
  1470. package/_cjs/core/TxEnvelope.js.map +0 -1
  1471. package/_cjs/core/TxEnvelopeEip1559.js +0 -174
  1472. package/_cjs/core/TxEnvelopeEip1559.js.map +0 -1
  1473. package/_cjs/core/TxEnvelopeEip2930.js +0 -158
  1474. package/_cjs/core/TxEnvelopeEip2930.js.map +0 -1
  1475. package/_cjs/core/TxEnvelopeEip4844.js +0 -216
  1476. package/_cjs/core/TxEnvelopeEip4844.js.map +0 -1
  1477. package/_cjs/core/TxEnvelopeEip7702.js +0 -149
  1478. package/_cjs/core/TxEnvelopeEip7702.js.map +0 -1
  1479. package/_cjs/core/TxEnvelopeLegacy.js +0 -213
  1480. package/_cjs/core/TxEnvelopeLegacy.js.map +0 -1
  1481. package/_cjs/core/TypedData.js +0 -325
  1482. package/_cjs/core/TypedData.js.map +0 -1
  1483. package/_cjs/core/ValidatorData.js +0 -14
  1484. package/_cjs/core/ValidatorData.js.map +0 -1
  1485. package/_cjs/core/Value.js +0 -90
  1486. package/_cjs/core/Value.js.map +0 -1
  1487. package/_cjs/core/WebAuthnP256.js +0 -26
  1488. package/_cjs/core/WebAuthnP256.js.map +0 -1
  1489. package/_cjs/core/WebCryptoP256.js +0 -76
  1490. package/_cjs/core/WebCryptoP256.js.map +0 -1
  1491. package/_cjs/core/Withdrawal.js +0 -22
  1492. package/_cjs/core/Withdrawal.js.map +0 -1
  1493. package/_cjs/core/X25519.js +0 -45
  1494. package/_cjs/core/X25519.js.map +0 -1
  1495. package/_cjs/core/internal/abi.js +0 -11
  1496. package/_cjs/core/internal/abi.js.map +0 -1
  1497. package/_cjs/core/internal/abiConstructor.js +0 -3
  1498. package/_cjs/core/internal/abiConstructor.js.map +0 -1
  1499. package/_cjs/core/internal/abiError.js +0 -3
  1500. package/_cjs/core/internal/abiError.js.map +0 -1
  1501. package/_cjs/core/internal/abiEvent.js +0 -3
  1502. package/_cjs/core/internal/abiEvent.js.map +0 -1
  1503. package/_cjs/core/internal/abiFunction.js +0 -3
  1504. package/_cjs/core/internal/abiFunction.js.map +0 -1
  1505. package/_cjs/core/internal/abiItem.js +0 -110
  1506. package/_cjs/core/internal/abiItem.js.map +0 -1
  1507. package/_cjs/core/internal/abiParameters.js +0 -422
  1508. package/_cjs/core/internal/abiParameters.js.map +0 -1
  1509. package/_cjs/core/internal/base58.js +0 -88
  1510. package/_cjs/core/internal/base58.js.map +0 -1
  1511. package/_cjs/core/internal/bytes.js +0 -88
  1512. package/_cjs/core/internal/bytes.js.map +0 -1
  1513. package/_cjs/core/internal/cursor.js +0 -210
  1514. package/_cjs/core/internal/cursor.js.map +0 -1
  1515. package/_cjs/core/internal/ens.js +0 -43
  1516. package/_cjs/core/internal/ens.js.map +0 -1
  1517. package/_cjs/core/internal/entropy.js +0 -9
  1518. package/_cjs/core/internal/entropy.js.map +0 -1
  1519. package/_cjs/core/internal/errors.js +0 -28
  1520. package/_cjs/core/internal/errors.js.map +0 -1
  1521. package/_cjs/core/internal/hdKey.js +0 -19
  1522. package/_cjs/core/internal/hdKey.js.map +0 -1
  1523. package/_cjs/core/internal/hex.js +0 -68
  1524. package/_cjs/core/internal/hex.js.map +0 -1
  1525. package/_cjs/core/internal/lru.js +0 -34
  1526. package/_cjs/core/internal/lru.js.map +0 -1
  1527. package/_cjs/core/internal/mnemonic/wordlists.js +0 -24
  1528. package/_cjs/core/internal/mnemonic/wordlists.js.map +0 -1
  1529. package/_cjs/core/internal/promise.js +0 -48
  1530. package/_cjs/core/internal/promise.js.map +0 -1
  1531. package/_cjs/core/internal/register.js +0 -3
  1532. package/_cjs/core/internal/register.js.map +0 -1
  1533. package/_cjs/core/internal/rpcSchema.js +0 -3
  1534. package/_cjs/core/internal/rpcSchema.js.map +0 -1
  1535. package/_cjs/core/internal/rpcSchemas/eth.js +0 -3
  1536. package/_cjs/core/internal/rpcSchemas/eth.js.map +0 -1
  1537. package/_cjs/core/internal/rpcSchemas/wallet.js +0 -3
  1538. package/_cjs/core/internal/rpcSchemas/wallet.js.map +0 -1
  1539. package/_cjs/core/internal/rpcTransport.js +0 -18
  1540. package/_cjs/core/internal/rpcTransport.js.map +0 -1
  1541. package/_cjs/core/internal/types.js +0 -3
  1542. package/_cjs/core/internal/types.js.map +0 -1
  1543. package/_cjs/core/internal/uid.js +0 -17
  1544. package/_cjs/core/internal/uid.js.map +0 -1
  1545. package/_cjs/core/internal/webauthn.js +0 -48
  1546. package/_cjs/core/internal/webauthn.js.map +0 -1
  1547. package/_cjs/core/version.js +0 -5
  1548. package/_cjs/core/version.js.map +0 -1
  1549. package/_cjs/erc4337/EntryPoint.js +0 -2011
  1550. package/_cjs/erc4337/EntryPoint.js.map +0 -1
  1551. package/_cjs/erc4337/RpcSchema.js +0 -3
  1552. package/_cjs/erc4337/RpcSchema.js.map +0 -1
  1553. package/_cjs/erc4337/UserOperation.js +0 -265
  1554. package/_cjs/erc4337/UserOperation.js.map +0 -1
  1555. package/_cjs/erc4337/UserOperationGas.js +0 -31
  1556. package/_cjs/erc4337/UserOperationGas.js.map +0 -1
  1557. package/_cjs/erc4337/UserOperationReceipt.js +0 -35
  1558. package/_cjs/erc4337/UserOperationReceipt.js.map +0 -1
  1559. package/_cjs/erc4337/index.js +0 -9
  1560. package/_cjs/erc4337/index.js.map +0 -1
  1561. package/_cjs/erc6492/SignatureErc6492.js +0 -101
  1562. package/_cjs/erc6492/SignatureErc6492.js.map +0 -1
  1563. package/_cjs/erc6492/index.js +0 -5
  1564. package/_cjs/erc6492/index.js.map +0 -1
  1565. package/_cjs/erc7821/Calls.js +0 -39
  1566. package/_cjs/erc7821/Calls.js.map +0 -1
  1567. package/_cjs/erc7821/Execute.js +0 -75
  1568. package/_cjs/erc7821/Execute.js.map +0 -1
  1569. package/_cjs/erc7821/index.js +0 -6
  1570. package/_cjs/erc7821/index.js.map +0 -1
  1571. package/_cjs/erc8010/SignatureErc8010.js +0 -90
  1572. package/_cjs/erc8010/SignatureErc8010.js.map +0 -1
  1573. package/_cjs/erc8010/index.js +0 -5
  1574. package/_cjs/erc8010/index.js.map +0 -1
  1575. package/_cjs/erc8021/Attribution.js +0 -170
  1576. package/_cjs/erc8021/Attribution.js.map +0 -1
  1577. package/_cjs/erc8021/index.js +0 -5
  1578. package/_cjs/erc8021/index.js.map +0 -1
  1579. package/_cjs/index.docs.js +0 -12
  1580. package/_cjs/index.docs.js.map +0 -1
  1581. package/_cjs/index.js +0 -77
  1582. package/_cjs/index.js.map +0 -1
  1583. package/_cjs/package.json +0 -1
  1584. package/_cjs/tempo/AuthorizationTempo.js +0 -106
  1585. package/_cjs/tempo/AuthorizationTempo.js.map +0 -1
  1586. package/_cjs/tempo/Channel.js +0 -71
  1587. package/_cjs/tempo/Channel.js.map +0 -1
  1588. package/_cjs/tempo/KeyAuthorization.js +0 -366
  1589. package/_cjs/tempo/KeyAuthorization.js.map +0 -1
  1590. package/_cjs/tempo/MultisigConfig.js +0 -135
  1591. package/_cjs/tempo/MultisigConfig.js.map +0 -1
  1592. package/_cjs/tempo/Period.js +0 -31
  1593. package/_cjs/tempo/Period.js.map +0 -1
  1594. package/_cjs/tempo/PoolId.js +0 -10
  1595. package/_cjs/tempo/PoolId.js.map +0 -1
  1596. package/_cjs/tempo/ReceivePolicyReceipt.js +0 -80
  1597. package/_cjs/tempo/ReceivePolicyReceipt.js.map +0 -1
  1598. package/_cjs/tempo/RpcSchemaTempo.js +0 -3
  1599. package/_cjs/tempo/RpcSchemaTempo.js.map +0 -1
  1600. package/_cjs/tempo/SignatureEnvelope.js +0 -643
  1601. package/_cjs/tempo/SignatureEnvelope.js.map +0 -1
  1602. package/_cjs/tempo/TempoAddress.js +0 -49
  1603. package/_cjs/tempo/TempoAddress.js.map +0 -1
  1604. package/_cjs/tempo/Tick.js +0 -77
  1605. package/_cjs/tempo/Tick.js.map +0 -1
  1606. package/_cjs/tempo/TokenId.js +0 -41
  1607. package/_cjs/tempo/TokenId.js.map +0 -1
  1608. package/_cjs/tempo/TokenRole.js +0 -26
  1609. package/_cjs/tempo/TokenRole.js.map +0 -1
  1610. package/_cjs/tempo/Transaction.js +0 -80
  1611. package/_cjs/tempo/Transaction.js.map +0 -1
  1612. package/_cjs/tempo/TransactionReceipt.js +0 -26
  1613. package/_cjs/tempo/TransactionReceipt.js.map +0 -1
  1614. package/_cjs/tempo/TransactionRequest.js +0 -96
  1615. package/_cjs/tempo/TransactionRequest.js.map +0 -1
  1616. package/_cjs/tempo/TxEnvelopeTempo.js +0 -315
  1617. package/_cjs/tempo/TxEnvelopeTempo.js.map +0 -1
  1618. package/_cjs/tempo/VirtualAddress.js +0 -70
  1619. package/_cjs/tempo/VirtualAddress.js.map +0 -1
  1620. package/_cjs/tempo/VirtualMaster.js +0 -278
  1621. package/_cjs/tempo/VirtualMaster.js.map +0 -1
  1622. package/_cjs/tempo/ZoneId.js +0 -13
  1623. package/_cjs/tempo/ZoneId.js.map +0 -1
  1624. package/_cjs/tempo/ZoneRpcAuthentication.js +0 -101
  1625. package/_cjs/tempo/ZoneRpcAuthentication.js.map +0 -1
  1626. package/_cjs/tempo/index.js +0 -25
  1627. package/_cjs/tempo/index.js.map +0 -1
  1628. package/_cjs/tempo/internal/mine.wasm.js +0 -6
  1629. package/_cjs/tempo/internal/mine.wasm.js.map +0 -1
  1630. package/_cjs/tempo/internal/virtualMasterPool.js +0 -187
  1631. package/_cjs/tempo/internal/virtualMasterPool.js.map +0 -1
  1632. package/_cjs/trusted-setups/Paths.js +0 -6
  1633. package/_cjs/trusted-setups/Paths.js.map +0 -1
  1634. package/_cjs/trusted-setups/index.js +0 -5
  1635. package/_cjs/trusted-setups/index.js.map +0 -1
  1636. package/_cjs/trusted-setups/internal/paths.js +0 -11
  1637. package/_cjs/trusted-setups/internal/paths.js.map +0 -1
  1638. package/_cjs/version.js +0 -5
  1639. package/_cjs/version.js.map +0 -1
  1640. package/_cjs/webauthn/Authentication.js +0 -257
  1641. package/_cjs/webauthn/Authentication.js.map +0 -1
  1642. package/_cjs/webauthn/Authenticator.js +0 -55
  1643. package/_cjs/webauthn/Authenticator.js.map +0 -1
  1644. package/_cjs/webauthn/Credential.js +0 -66
  1645. package/_cjs/webauthn/Credential.js.map +0 -1
  1646. package/_cjs/webauthn/Registration.js +0 -359
  1647. package/_cjs/webauthn/Registration.js.map +0 -1
  1648. package/_cjs/webauthn/Types.js +0 -3
  1649. package/_cjs/webauthn/Types.js.map +0 -1
  1650. package/_cjs/webauthn/index.js +0 -9
  1651. package/_cjs/webauthn/index.js.map +0 -1
  1652. package/_cjs/webauthn/internal/utils.js +0 -53
  1653. package/_cjs/webauthn/internal/utils.js.map +0 -1
  1654. package/_cjs/window/index.js +0 -3
  1655. package/_cjs/window/index.js.map +0 -1
  1656. package/_esm/core/Abi.js +0 -13
  1657. package/_esm/core/Abi.js.map +0 -1
  1658. package/_esm/core/AbiConstructor.js +0 -49
  1659. package/_esm/core/AbiConstructor.js.map +0 -1
  1660. package/_esm/core/AbiError.js +0 -315
  1661. package/_esm/core/AbiError.js.map +0 -1
  1662. package/_esm/core/AbiEvent.js +0 -852
  1663. package/_esm/core/AbiEvent.js.map +0 -1
  1664. package/_esm/core/AbiFunction.js +0 -332
  1665. package/_esm/core/AbiFunction.js.map +0 -1
  1666. package/_esm/core/AbiItem.js +0 -492
  1667. package/_esm/core/AbiItem.js.map +0 -1
  1668. package/_esm/core/AbiParameters.js +0 -532
  1669. package/_esm/core/AbiParameters.js.map +0 -1
  1670. package/_esm/core/AccessList.js +0 -105
  1671. package/_esm/core/AccessList.js.map +0 -1
  1672. package/_esm/core/AccountProof.js +0 -2
  1673. package/_esm/core/AccountProof.js.map +0 -1
  1674. package/_esm/core/Address.js +0 -255
  1675. package/_esm/core/Address.js.map +0 -1
  1676. package/_esm/core/AesGcm.js +0 -112
  1677. package/_esm/core/AesGcm.js.map +0 -1
  1678. package/_esm/core/Authorization.js +0 -416
  1679. package/_esm/core/Authorization.js.map +0 -1
  1680. package/_esm/core/Base32.js +0 -119
  1681. package/_esm/core/Base32.js.map +0 -1
  1682. package/_esm/core/Base58.js +0 -124
  1683. package/_esm/core/Base58.js.map +0 -1
  1684. package/_esm/core/Base64.js +0 -218
  1685. package/_esm/core/Base64.js.map +0 -1
  1686. package/_esm/core/Bech32m.js +0 -238
  1687. package/_esm/core/Bech32m.js.map +0 -1
  1688. package/_esm/core/BinaryStateTree.js +0 -196
  1689. package/_esm/core/BinaryStateTree.js.map +0 -1
  1690. package/_esm/core/Blobs.js +0 -596
  1691. package/_esm/core/Blobs.js.map +0 -1
  1692. package/_esm/core/Block.js +0 -171
  1693. package/_esm/core/Block.js.map +0 -1
  1694. package/_esm/core/BlockOverrides.js +0 -117
  1695. package/_esm/core/BlockOverrides.js.map +0 -1
  1696. package/_esm/core/Bloom.js +0 -52
  1697. package/_esm/core/Bloom.js.map +0 -1
  1698. package/_esm/core/Bls.js +0 -242
  1699. package/_esm/core/Bls.js.map +0 -1
  1700. package/_esm/core/BlsPoint.js +0 -51
  1701. package/_esm/core/BlsPoint.js.map +0 -1
  1702. package/_esm/core/Bytes.js +0 -666
  1703. package/_esm/core/Bytes.js.map +0 -1
  1704. package/_esm/core/Caches.js +0 -19
  1705. package/_esm/core/Caches.js.map +0 -1
  1706. package/_esm/core/Cbor.js +0 -830
  1707. package/_esm/core/Cbor.js.map +0 -1
  1708. package/_esm/core/CompactSize.js +0 -150
  1709. package/_esm/core/CompactSize.js.map +0 -1
  1710. package/_esm/core/ContractAddress.js +0 -101
  1711. package/_esm/core/ContractAddress.js.map +0 -1
  1712. package/_esm/core/CoseKey.js +0 -74
  1713. package/_esm/core/CoseKey.js.map +0 -1
  1714. package/_esm/core/Ed25519.js +0 -173
  1715. package/_esm/core/Ed25519.js.map +0 -1
  1716. package/_esm/core/Ens.js +0 -75
  1717. package/_esm/core/Ens.js.map +0 -1
  1718. package/_esm/core/Errors.js +0 -145
  1719. package/_esm/core/Errors.js.map +0 -1
  1720. package/_esm/core/Fee.js +0 -2
  1721. package/_esm/core/Fee.js.map +0 -1
  1722. package/_esm/core/Filter.js +0 -94
  1723. package/_esm/core/Filter.js.map +0 -1
  1724. package/_esm/core/Hash.js +0 -154
  1725. package/_esm/core/Hash.js.map +0 -1
  1726. package/_esm/core/HdKey.js +0 -96
  1727. package/_esm/core/HdKey.js.map +0 -1
  1728. package/_esm/core/Hex.js +0 -716
  1729. package/_esm/core/Hex.js.map +0 -1
  1730. package/_esm/core/Json.js +0 -108
  1731. package/_esm/core/Json.js.map +0 -1
  1732. package/_esm/core/Keystore.js +0 -343
  1733. package/_esm/core/Keystore.js.map +0 -1
  1734. package/_esm/core/Kzg.js +0 -28
  1735. package/_esm/core/Kzg.js.map +0 -1
  1736. package/_esm/core/Log.js +0 -175
  1737. package/_esm/core/Log.js.map +0 -1
  1738. package/_esm/core/Mnemonic.js +0 -139
  1739. package/_esm/core/Mnemonic.js.map +0 -1
  1740. package/_esm/core/P256.js +0 -183
  1741. package/_esm/core/P256.js.map +0 -1
  1742. package/_esm/core/PersonalMessage.js +0 -42
  1743. package/_esm/core/PersonalMessage.js.map +0 -1
  1744. package/_esm/core/Provider.js +0 -482
  1745. package/_esm/core/Provider.js.map +0 -1
  1746. package/_esm/core/PublicKey.js +0 -377
  1747. package/_esm/core/PublicKey.js.map +0 -1
  1748. package/_esm/core/Rlp.js +0 -249
  1749. package/_esm/core/Rlp.js.map +0 -1
  1750. package/_esm/core/RpcRequest.js +0 -125
  1751. package/_esm/core/RpcRequest.js.map +0 -1
  1752. package/_esm/core/RpcResponse.js +0 -547
  1753. package/_esm/core/RpcResponse.js.map +0 -1
  1754. package/_esm/core/RpcSchema.js +0 -46
  1755. package/_esm/core/RpcSchema.js.map +0 -1
  1756. package/_esm/core/RpcTransport.js +0 -107
  1757. package/_esm/core/RpcTransport.js.map +0 -1
  1758. package/_esm/core/Secp256k1.js +0 -218
  1759. package/_esm/core/Secp256k1.js.map +0 -1
  1760. package/_esm/core/Signature.js +0 -647
  1761. package/_esm/core/Signature.js.map +0 -1
  1762. package/_esm/core/Siwe.js +0 -371
  1763. package/_esm/core/Siwe.js.map +0 -1
  1764. package/_esm/core/Solidity.js +0 -104
  1765. package/_esm/core/Solidity.js.map +0 -1
  1766. package/_esm/core/StateOverrides.js +0 -78
  1767. package/_esm/core/StateOverrides.js.map +0 -1
  1768. package/_esm/core/Transaction.js +0 -180
  1769. package/_esm/core/Transaction.js.map +0 -1
  1770. package/_esm/core/TransactionReceipt.js +0 -223
  1771. package/_esm/core/TransactionReceipt.js.map +0 -1
  1772. package/_esm/core/TransactionRequest.js +0 -129
  1773. package/_esm/core/TransactionRequest.js.map +0 -1
  1774. package/_esm/core/TxEnvelope.js +0 -139
  1775. package/_esm/core/TxEnvelope.js.map +0 -1
  1776. package/_esm/core/TxEnvelopeEip1559.js +0 -433
  1777. package/_esm/core/TxEnvelopeEip1559.js.map +0 -1
  1778. package/_esm/core/TxEnvelopeEip2930.js +0 -416
  1779. package/_esm/core/TxEnvelopeEip2930.js.map +0 -1
  1780. package/_esm/core/TxEnvelopeEip4844.js +0 -518
  1781. package/_esm/core/TxEnvelopeEip4844.js.map +0 -1
  1782. package/_esm/core/TxEnvelopeEip7702.js +0 -421
  1783. package/_esm/core/TxEnvelopeEip7702.js.map +0 -1
  1784. package/_esm/core/TxEnvelopeLegacy.js +0 -471
  1785. package/_esm/core/TxEnvelopeLegacy.js.map +0 -1
  1786. package/_esm/core/TypedData.js +0 -627
  1787. package/_esm/core/TypedData.js.map +0 -1
  1788. package/_esm/core/ValidatorData.js +0 -48
  1789. package/_esm/core/ValidatorData.js.map +0 -1
  1790. package/_esm/core/Value.js +0 -184
  1791. package/_esm/core/Value.js.map +0 -1
  1792. package/_esm/core/WebAuthnP256.js +0 -282
  1793. package/_esm/core/WebAuthnP256.js.map +0 -1
  1794. package/_esm/core/WebCryptoP256.js +0 -182
  1795. package/_esm/core/WebCryptoP256.js.map +0 -1
  1796. package/_esm/core/Withdrawal.js +0 -66
  1797. package/_esm/core/Withdrawal.js.map +0 -1
  1798. package/_esm/core/X25519.js +0 -97
  1799. package/_esm/core/X25519.js.map +0 -1
  1800. package/_esm/core/internal/abi.js.map +0 -1
  1801. package/_esm/core/internal/abiConstructor.js.map +0 -1
  1802. package/_esm/core/internal/abiError.js.map +0 -1
  1803. package/_esm/core/internal/abiEvent.js.map +0 -1
  1804. package/_esm/core/internal/abiFunction.js.map +0 -1
  1805. package/_esm/core/internal/abiItem.js +0 -122
  1806. package/_esm/core/internal/abiItem.js.map +0 -1
  1807. package/_esm/core/internal/abiParameters.js +0 -465
  1808. package/_esm/core/internal/abiParameters.js.map +0 -1
  1809. package/_esm/core/internal/base58.js +0 -88
  1810. package/_esm/core/internal/base58.js.map +0 -1
  1811. package/_esm/core/internal/bytes.js +0 -86
  1812. package/_esm/core/internal/bytes.js.map +0 -1
  1813. package/_esm/core/internal/cursor.js +0 -207
  1814. package/_esm/core/internal/cursor.js.map +0 -1
  1815. package/_esm/core/internal/ens.js +0 -47
  1816. package/_esm/core/internal/ens.js.map +0 -1
  1817. package/_esm/core/internal/entropy.js.map +0 -1
  1818. package/_esm/core/internal/errors.js.map +0 -1
  1819. package/_esm/core/internal/hdKey.js.map +0 -1
  1820. package/_esm/core/internal/hex.js +0 -66
  1821. package/_esm/core/internal/hex.js.map +0 -1
  1822. package/_esm/core/internal/lru.js +0 -36
  1823. package/_esm/core/internal/lru.js.map +0 -1
  1824. package/_esm/core/internal/mnemonic/wordlists.js +0 -11
  1825. package/_esm/core/internal/mnemonic/wordlists.js.map +0 -1
  1826. package/_esm/core/internal/promise.js +0 -49
  1827. package/_esm/core/internal/promise.js.map +0 -1
  1828. package/_esm/core/internal/register.js.map +0 -1
  1829. package/_esm/core/internal/rpcSchema.js.map +0 -1
  1830. package/_esm/core/internal/rpcSchemas/eth.js.map +0 -1
  1831. package/_esm/core/internal/rpcSchemas/wallet.js.map +0 -1
  1832. package/_esm/core/internal/rpcTransport.js +0 -16
  1833. package/_esm/core/internal/rpcTransport.js.map +0 -1
  1834. package/_esm/core/internal/types.js.map +0 -1
  1835. package/_esm/core/internal/uid.js +0 -15
  1836. package/_esm/core/internal/uid.js.map +0 -1
  1837. package/_esm/core/internal/webauthn.js +0 -62
  1838. package/_esm/core/internal/webauthn.js.map +0 -1
  1839. package/_esm/core/version.js.map +0 -1
  1840. package/_esm/erc4337/EntryPoint.js.map +0 -1
  1841. package/_esm/erc4337/RpcSchema.js.map +0 -1
  1842. package/_esm/erc4337/UserOperation.js +0 -547
  1843. package/_esm/erc4337/UserOperation.js.map +0 -1
  1844. package/_esm/erc4337/UserOperationGas.js +0 -61
  1845. package/_esm/erc4337/UserOperationGas.js.map +0 -1
  1846. package/_esm/erc4337/UserOperationReceipt.js.map +0 -1
  1847. package/_esm/erc4337/index.js +0 -31
  1848. package/_esm/erc4337/index.js.map +0 -1
  1849. package/_esm/erc6492/SignatureErc6492.js +0 -197
  1850. package/_esm/erc6492/SignatureErc6492.js.map +0 -1
  1851. package/_esm/erc6492/index.js +0 -25
  1852. package/_esm/erc6492/index.js.map +0 -1
  1853. package/_esm/erc7821/Calls.js +0 -101
  1854. package/_esm/erc7821/Calls.js.map +0 -1
  1855. package/_esm/erc7821/Execute.js +0 -151
  1856. package/_esm/erc7821/Execute.js.map +0 -1
  1857. package/_esm/erc7821/index.js +0 -69
  1858. package/_esm/erc7821/index.js.map +0 -1
  1859. package/_esm/erc8010/SignatureErc8010.js +0 -180
  1860. package/_esm/erc8010/SignatureErc8010.js.map +0 -1
  1861. package/_esm/erc8010/index.js +0 -40
  1862. package/_esm/erc8010/index.js.map +0 -1
  1863. package/_esm/erc8021/Attribution.js +0 -327
  1864. package/_esm/erc8021/Attribution.js.map +0 -1
  1865. package/_esm/erc8021/index.js +0 -40
  1866. package/_esm/erc8021/index.js.map +0 -1
  1867. package/_esm/index.docs.js +0 -12
  1868. package/_esm/index.docs.js.map +0 -1
  1869. package/_esm/index.js +0 -3649
  1870. package/_esm/index.js.map +0 -1
  1871. package/_esm/package.json +0 -1
  1872. package/_esm/tempo/AuthorizationTempo.js +0 -669
  1873. package/_esm/tempo/AuthorizationTempo.js.map +0 -1
  1874. package/_esm/tempo/Channel.js +0 -158
  1875. package/_esm/tempo/Channel.js.map +0 -1
  1876. package/_esm/tempo/KeyAuthorization.js +0 -756
  1877. package/_esm/tempo/KeyAuthorization.js.map +0 -1
  1878. package/_esm/tempo/MultisigConfig.js +0 -363
  1879. package/_esm/tempo/MultisigConfig.js.map +0 -1
  1880. package/_esm/tempo/Period.js.map +0 -1
  1881. package/_esm/tempo/PoolId.js +0 -28
  1882. package/_esm/tempo/PoolId.js.map +0 -1
  1883. package/_esm/tempo/ReceivePolicyReceipt.js +0 -176
  1884. package/_esm/tempo/ReceivePolicyReceipt.js.map +0 -1
  1885. package/_esm/tempo/RpcSchemaTempo.js.map +0 -1
  1886. package/_esm/tempo/SignatureEnvelope.js +0 -1174
  1887. package/_esm/tempo/SignatureEnvelope.js.map +0 -1
  1888. package/_esm/tempo/TempoAddress.js +0 -112
  1889. package/_esm/tempo/TempoAddress.js.map +0 -1
  1890. package/_esm/tempo/Tick.js +0 -147
  1891. package/_esm/tempo/Tick.js.map +0 -1
  1892. package/_esm/tempo/TokenId.js +0 -103
  1893. package/_esm/tempo/TokenId.js.map +0 -1
  1894. package/_esm/tempo/TokenRole.js.map +0 -1
  1895. package/_esm/tempo/Transaction.js +0 -167
  1896. package/_esm/tempo/Transaction.js.map +0 -1
  1897. package/_esm/tempo/TransactionReceipt.js +0 -138
  1898. package/_esm/tempo/TransactionReceipt.js.map +0 -1
  1899. package/_esm/tempo/TransactionRequest.js +0 -161
  1900. package/_esm/tempo/TransactionRequest.js.map +0 -1
  1901. package/_esm/tempo/TxEnvelopeTempo.js +0 -693
  1902. package/_esm/tempo/TxEnvelopeTempo.js.map +0 -1
  1903. package/_esm/tempo/VirtualAddress.js +0 -154
  1904. package/_esm/tempo/VirtualAddress.js.map +0 -1
  1905. package/_esm/tempo/VirtualMaster.js +0 -483
  1906. package/_esm/tempo/VirtualMaster.js.map +0 -1
  1907. package/_esm/tempo/ZoneId.js.map +0 -1
  1908. package/_esm/tempo/ZoneRpcAuthentication.js +0 -256
  1909. package/_esm/tempo/ZoneRpcAuthentication.js.map +0 -1
  1910. package/_esm/tempo/index.js +0 -550
  1911. package/_esm/tempo/index.js.map +0 -1
  1912. package/_esm/tempo/internal/mine.wasm.js.map +0 -1
  1913. package/_esm/tempo/internal/virtualMasterPool.js.map +0 -1
  1914. package/_esm/trusted-setups/Paths.js.map +0 -1
  1915. package/_esm/trusted-setups/index.js.map +0 -1
  1916. package/_esm/trusted-setups/internal/paths.js.map +0 -1
  1917. package/_esm/version.js +0 -3
  1918. package/_esm/version.js.map +0 -1
  1919. package/_esm/webauthn/Authentication.js +0 -467
  1920. package/_esm/webauthn/Authentication.js.map +0 -1
  1921. package/_esm/webauthn/Authenticator.js +0 -176
  1922. package/_esm/webauthn/Authenticator.js.map +0 -1
  1923. package/_esm/webauthn/Credential.js +0 -114
  1924. package/_esm/webauthn/Credential.js.map +0 -1
  1925. package/_esm/webauthn/Registration.js +0 -525
  1926. package/_esm/webauthn/Registration.js.map +0 -1
  1927. package/_esm/webauthn/Types.js.map +0 -1
  1928. package/_esm/webauthn/index.js +0 -31
  1929. package/_esm/webauthn/index.js.map +0 -1
  1930. package/_esm/webauthn/internal/utils.js +0 -52
  1931. package/_esm/webauthn/internal/utils.js.map +0 -1
  1932. package/_esm/window/index.js.map +0 -1
  1933. package/_types/core/Abi.d.ts +0 -131
  1934. package/_types/core/Abi.d.ts.map +0 -1
  1935. package/_types/core/AbiConstructor.d.ts +0 -329
  1936. package/_types/core/AbiConstructor.d.ts.map +0 -1
  1937. package/_types/core/AbiError.d.ts +0 -517
  1938. package/_types/core/AbiError.d.ts.map +0 -1
  1939. package/_types/core/AbiEvent.d.ts +0 -930
  1940. package/_types/core/AbiEvent.d.ts.map +0 -1
  1941. package/_types/core/AbiFunction.d.ts +0 -669
  1942. package/_types/core/AbiFunction.d.ts.map +0 -1
  1943. package/_types/core/AbiItem.d.ts +0 -562
  1944. package/_types/core/AbiItem.d.ts.map +0 -1
  1945. package/_types/core/AbiParameters.d.ts +0 -465
  1946. package/_types/core/AbiParameters.d.ts.map +0 -1
  1947. package/_types/core/AccessList.d.ts +0 -83
  1948. package/_types/core/AccessList.d.ts.map +0 -1
  1949. package/_types/core/AccountProof.d.ts +0 -32
  1950. package/_types/core/AccountProof.d.ts.map +0 -1
  1951. package/_types/core/Address.d.ts +0 -229
  1952. package/_types/core/Address.d.ts.map +0 -1
  1953. package/_types/core/AesGcm.d.ts.map +0 -1
  1954. package/_types/core/Authorization.d.ts +0 -432
  1955. package/_types/core/Authorization.d.ts.map +0 -1
  1956. package/_types/core/Base32.d.ts +0 -79
  1957. package/_types/core/Base32.d.ts.map +0 -1
  1958. package/_types/core/Base58.d.ts +0 -113
  1959. package/_types/core/Base58.d.ts.map +0 -1
  1960. package/_types/core/Base64.d.ts +0 -226
  1961. package/_types/core/Base64.d.ts.map +0 -1
  1962. package/_types/core/Bech32m.d.ts +0 -93
  1963. package/_types/core/Bech32m.d.ts.map +0 -1
  1964. package/_types/core/BinaryStateTree.d.ts +0 -82
  1965. package/_types/core/BinaryStateTree.d.ts.map +0 -1
  1966. package/_types/core/Blobs.d.ts +0 -523
  1967. package/_types/core/Blobs.d.ts.map +0 -1
  1968. package/_types/core/Block.d.ts +0 -195
  1969. package/_types/core/Block.d.ts.map +0 -1
  1970. package/_types/core/BlockOverrides.d.ts +0 -89
  1971. package/_types/core/BlockOverrides.d.ts.map +0 -1
  1972. package/_types/core/Bloom.d.ts +0 -48
  1973. package/_types/core/Bloom.d.ts.map +0 -1
  1974. package/_types/core/Bls.d.ts +0 -480
  1975. package/_types/core/Bls.d.ts.map +0 -1
  1976. package/_types/core/BlsPoint.d.ts +0 -175
  1977. package/_types/core/BlsPoint.d.ts.map +0 -1
  1978. package/_types/core/Bytes.d.ts +0 -608
  1979. package/_types/core/Bytes.d.ts.map +0 -1
  1980. package/_types/core/Caches.d.ts +0 -13
  1981. package/_types/core/Caches.d.ts.map +0 -1
  1982. package/_types/core/Cbor.d.ts.map +0 -1
  1983. package/_types/core/CompactSize.d.ts +0 -107
  1984. package/_types/core/CompactSize.d.ts.map +0 -1
  1985. package/_types/core/ContractAddress.d.ts +0 -106
  1986. package/_types/core/ContractAddress.d.ts.map +0 -1
  1987. package/_types/core/CoseKey.d.ts +0 -56
  1988. package/_types/core/CoseKey.d.ts.map +0 -1
  1989. package/_types/core/Ed25519.d.ts +0 -220
  1990. package/_types/core/Ed25519.d.ts.map +0 -1
  1991. package/_types/core/Ens.d.ts +0 -63
  1992. package/_types/core/Ens.d.ts.map +0 -1
  1993. package/_types/core/Errors.d.ts.map +0 -1
  1994. package/_types/core/Fee.d.ts +0 -41
  1995. package/_types/core/Fee.d.ts.map +0 -1
  1996. package/_types/core/Filter.d.ts +0 -94
  1997. package/_types/core/Filter.d.ts.map +0 -1
  1998. package/_types/core/Hash.d.ts +0 -160
  1999. package/_types/core/Hash.d.ts.map +0 -1
  2000. package/_types/core/HdKey.d.ts +0 -134
  2001. package/_types/core/HdKey.d.ts.map +0 -1
  2002. package/_types/core/Hex.d.ts +0 -648
  2003. package/_types/core/Hex.d.ts.map +0 -1
  2004. package/_types/core/Json.d.ts +0 -78
  2005. package/_types/core/Json.d.ts.map +0 -1
  2006. package/_types/core/Keystore.d.ts +0 -322
  2007. package/_types/core/Keystore.d.ts.map +0 -1
  2008. package/_types/core/Kzg.d.ts +0 -39
  2009. package/_types/core/Kzg.d.ts.map +0 -1
  2010. package/_types/core/Log.d.ts +0 -188
  2011. package/_types/core/Log.d.ts.map +0 -1
  2012. package/_types/core/Mnemonic.d.ts +0 -161
  2013. package/_types/core/Mnemonic.d.ts.map +0 -1
  2014. package/_types/core/P256.d.ts +0 -225
  2015. package/_types/core/P256.d.ts.map +0 -1
  2016. package/_types/core/PersonalMessage.d.ts +0 -43
  2017. package/_types/core/PersonalMessage.d.ts.map +0 -1
  2018. package/_types/core/Provider.d.ts +0 -399
  2019. package/_types/core/Provider.d.ts.map +0 -1
  2020. package/_types/core/PublicKey.d.ts +0 -309
  2021. package/_types/core/PublicKey.d.ts.map +0 -1
  2022. package/_types/core/Rlp.d.ts +0 -136
  2023. package/_types/core/Rlp.d.ts.map +0 -1
  2024. package/_types/core/RpcRequest.d.ts +0 -140
  2025. package/_types/core/RpcRequest.d.ts.map +0 -1
  2026. package/_types/core/RpcResponse.d.ts +0 -304
  2027. package/_types/core/RpcResponse.d.ts.map +0 -1
  2028. package/_types/core/RpcSchema.d.ts +0 -310
  2029. package/_types/core/RpcSchema.d.ts.map +0 -1
  2030. package/_types/core/RpcTransport.d.ts +0 -62
  2031. package/_types/core/RpcTransport.d.ts.map +0 -1
  2032. package/_types/core/Secp256k1.d.ts +0 -279
  2033. package/_types/core/Secp256k1.d.ts.map +0 -1
  2034. package/_types/core/Signature.d.ts +0 -550
  2035. package/_types/core/Signature.d.ts.map +0 -1
  2036. package/_types/core/Siwe.d.ts +0 -246
  2037. package/_types/core/Siwe.d.ts.map +0 -1
  2038. package/_types/core/Solidity.d.ts +0 -100
  2039. package/_types/core/Solidity.d.ts.map +0 -1
  2040. package/_types/core/StateOverrides.d.ts +0 -79
  2041. package/_types/core/StateOverrides.d.ts.map +0 -1
  2042. package/_types/core/Transaction.d.ts +0 -230
  2043. package/_types/core/Transaction.d.ts.map +0 -1
  2044. package/_types/core/TransactionReceipt.d.ts +0 -265
  2045. package/_types/core/TransactionReceipt.d.ts.map +0 -1
  2046. package/_types/core/TransactionRequest.d.ts +0 -109
  2047. package/_types/core/TransactionRequest.d.ts.map +0 -1
  2048. package/_types/core/TxEnvelope.d.ts +0 -141
  2049. package/_types/core/TxEnvelope.d.ts.map +0 -1
  2050. package/_types/core/TxEnvelopeEip1559.d.ts +0 -343
  2051. package/_types/core/TxEnvelopeEip1559.d.ts.map +0 -1
  2052. package/_types/core/TxEnvelopeEip2930.d.ts +0 -340
  2053. package/_types/core/TxEnvelopeEip2930.d.ts.map +0 -1
  2054. package/_types/core/TxEnvelopeEip4844.d.ts +0 -395
  2055. package/_types/core/TxEnvelopeEip4844.d.ts.map +0 -1
  2056. package/_types/core/TxEnvelopeEip7702.d.ts +0 -354
  2057. package/_types/core/TxEnvelopeEip7702.d.ts.map +0 -1
  2058. package/_types/core/TxEnvelopeLegacy.d.ts +0 -334
  2059. package/_types/core/TxEnvelopeLegacy.d.ts.map +0 -1
  2060. package/_types/core/TypedData.d.ts +0 -473
  2061. package/_types/core/TypedData.d.ts.map +0 -1
  2062. package/_types/core/ValidatorData.d.ts +0 -58
  2063. package/_types/core/ValidatorData.d.ts.map +0 -1
  2064. package/_types/core/Value.d.ts +0 -141
  2065. package/_types/core/Value.d.ts.map +0 -1
  2066. package/_types/core/WebAuthnP256.d.ts +0 -320
  2067. package/_types/core/WebAuthnP256.d.ts.map +0 -1
  2068. package/_types/core/WebCryptoP256.d.ts +0 -187
  2069. package/_types/core/WebCryptoP256.d.ts.map +0 -1
  2070. package/_types/core/Withdrawal.d.ts +0 -68
  2071. package/_types/core/Withdrawal.d.ts.map +0 -1
  2072. package/_types/core/X25519.d.ts +0 -127
  2073. package/_types/core/X25519.d.ts.map +0 -1
  2074. package/_types/core/internal/abi.d.ts.map +0 -1
  2075. package/_types/core/internal/abiConstructor.d.ts.map +0 -1
  2076. package/_types/core/internal/abiError.d.ts.map +0 -1
  2077. package/_types/core/internal/abiEvent.d.ts.map +0 -1
  2078. package/_types/core/internal/abiFunction.d.ts.map +0 -1
  2079. package/_types/core/internal/abiItem.d.ts.map +0 -1
  2080. package/_types/core/internal/abiParameters.d.ts.map +0 -1
  2081. package/_types/core/internal/base58.d.ts.map +0 -1
  2082. package/_types/core/internal/bytes.d.ts +0 -52
  2083. package/_types/core/internal/bytes.d.ts.map +0 -1
  2084. package/_types/core/internal/cursor.d.ts +0 -70
  2085. package/_types/core/internal/cursor.d.ts.map +0 -1
  2086. package/_types/core/internal/ens.d.ts +0 -23
  2087. package/_types/core/internal/ens.d.ts.map +0 -1
  2088. package/_types/core/internal/entropy.d.ts.map +0 -1
  2089. package/_types/core/internal/errors.d.ts.map +0 -1
  2090. package/_types/core/internal/hdKey.d.ts.map +0 -1
  2091. package/_types/core/internal/hex.d.ts +0 -39
  2092. package/_types/core/internal/hex.d.ts.map +0 -1
  2093. package/_types/core/internal/lru.d.ts +0 -13
  2094. package/_types/core/internal/lru.d.ts.map +0 -1
  2095. package/_types/core/internal/mnemonic/wordlists.d.ts +0 -11
  2096. package/_types/core/internal/mnemonic/wordlists.d.ts.map +0 -1
  2097. package/_types/core/internal/promise.d.ts.map +0 -1
  2098. package/_types/core/internal/register.d.ts.map +0 -1
  2099. package/_types/core/internal/rpcSchema.d.ts.map +0 -1
  2100. package/_types/core/internal/rpcSchemas/eth.d.ts +0 -766
  2101. package/_types/core/internal/rpcSchemas/eth.d.ts.map +0 -1
  2102. package/_types/core/internal/rpcSchemas/wallet.d.ts +0 -452
  2103. package/_types/core/internal/rpcSchemas/wallet.d.ts.map +0 -1
  2104. package/_types/core/internal/rpcTransport.d.ts +0 -35
  2105. package/_types/core/internal/rpcTransport.d.ts.map +0 -1
  2106. package/_types/core/internal/types.d.ts +0 -284
  2107. package/_types/core/internal/types.d.ts.map +0 -1
  2108. package/_types/core/internal/uid.d.ts +0 -3
  2109. package/_types/core/internal/uid.d.ts.map +0 -1
  2110. package/_types/core/internal/webauthn.d.ts +0 -26
  2111. package/_types/core/internal/webauthn.d.ts.map +0 -1
  2112. package/_types/core/version.d.ts.map +0 -1
  2113. package/_types/erc4337/EntryPoint.d.ts.map +0 -1
  2114. package/_types/erc4337/RpcSchema.d.ts +0 -159
  2115. package/_types/erc4337/RpcSchema.d.ts.map +0 -1
  2116. package/_types/erc4337/UserOperation.d.ts +0 -524
  2117. package/_types/erc4337/UserOperation.d.ts.map +0 -1
  2118. package/_types/erc4337/UserOperationGas.d.ts +0 -62
  2119. package/_types/erc4337/UserOperationGas.d.ts.map +0 -1
  2120. package/_types/erc4337/UserOperationReceipt.d.ts.map +0 -1
  2121. package/_types/erc4337/index.d.ts +0 -33
  2122. package/_types/erc4337/index.d.ts.map +0 -1
  2123. package/_types/erc6492/SignatureErc6492.d.ts +0 -180
  2124. package/_types/erc6492/SignatureErc6492.d.ts.map +0 -1
  2125. package/_types/erc6492/index.d.ts +0 -27
  2126. package/_types/erc6492/index.d.ts.map +0 -1
  2127. package/_types/erc7821/Calls.d.ts +0 -102
  2128. package/_types/erc7821/Calls.d.ts.map +0 -1
  2129. package/_types/erc7821/Execute.d.ts +0 -126
  2130. package/_types/erc7821/Execute.d.ts.map +0 -1
  2131. package/_types/erc7821/index.d.ts +0 -71
  2132. package/_types/erc7821/index.d.ts.map +0 -1
  2133. package/_types/erc8010/SignatureErc8010.d.ts +0 -170
  2134. package/_types/erc8010/SignatureErc8010.d.ts.map +0 -1
  2135. package/_types/erc8010/index.d.ts +0 -42
  2136. package/_types/erc8010/index.d.ts.map +0 -1
  2137. package/_types/erc8021/Attribution.d.ts +0 -227
  2138. package/_types/erc8021/Attribution.d.ts.map +0 -1
  2139. package/_types/erc8021/index.d.ts +0 -42
  2140. package/_types/erc8021/index.d.ts.map +0 -1
  2141. package/_types/index.d.ts +0 -3652
  2142. package/_types/index.d.ts.map +0 -1
  2143. package/_types/index.docs.d.ts +0 -10
  2144. package/_types/index.docs.d.ts.map +0 -1
  2145. package/_types/tempo/AuthorizationTempo.d.ts +0 -688
  2146. package/_types/tempo/AuthorizationTempo.d.ts.map +0 -1
  2147. package/_types/tempo/Channel.d.ts +0 -175
  2148. package/_types/tempo/Channel.d.ts.map +0 -1
  2149. package/_types/tempo/KeyAuthorization.d.ts +0 -636
  2150. package/_types/tempo/KeyAuthorization.d.ts.map +0 -1
  2151. package/_types/tempo/MultisigConfig.d.ts +0 -326
  2152. package/_types/tempo/MultisigConfig.d.ts.map +0 -1
  2153. package/_types/tempo/Period.d.ts.map +0 -1
  2154. package/_types/tempo/PoolId.d.ts +0 -34
  2155. package/_types/tempo/PoolId.d.ts.map +0 -1
  2156. package/_types/tempo/ReceivePolicyReceipt.d.ts +0 -168
  2157. package/_types/tempo/ReceivePolicyReceipt.d.ts.map +0 -1
  2158. package/_types/tempo/RpcSchemaTempo.d.ts +0 -51
  2159. package/_types/tempo/RpcSchemaTempo.d.ts.map +0 -1
  2160. package/_types/tempo/SignatureEnvelope.d.ts +0 -833
  2161. package/_types/tempo/SignatureEnvelope.d.ts.map +0 -1
  2162. package/_types/tempo/TempoAddress.d.ts +0 -103
  2163. package/_types/tempo/TempoAddress.d.ts.map +0 -1
  2164. package/_types/tempo/Tick.d.ts.map +0 -1
  2165. package/_types/tempo/TokenId.d.ts +0 -86
  2166. package/_types/tempo/TokenId.d.ts.map +0 -1
  2167. package/_types/tempo/TokenRole.d.ts.map +0 -1
  2168. package/_types/tempo/Transaction.d.ts +0 -208
  2169. package/_types/tempo/Transaction.d.ts.map +0 -1
  2170. package/_types/tempo/TransactionReceipt.d.ts +0 -165
  2171. package/_types/tempo/TransactionReceipt.d.ts.map +0 -1
  2172. package/_types/tempo/TransactionRequest.d.ts +0 -116
  2173. package/_types/tempo/TransactionRequest.d.ts.map +0 -1
  2174. package/_types/tempo/TxEnvelopeTempo.d.ts +0 -593
  2175. package/_types/tempo/TxEnvelopeTempo.d.ts.map +0 -1
  2176. package/_types/tempo/VirtualAddress.d.ts +0 -129
  2177. package/_types/tempo/VirtualAddress.d.ts.map +0 -1
  2178. package/_types/tempo/VirtualMaster.d.ts +0 -237
  2179. package/_types/tempo/VirtualMaster.d.ts.map +0 -1
  2180. package/_types/tempo/ZoneId.d.ts.map +0 -1
  2181. package/_types/tempo/ZoneRpcAuthentication.d.ts +0 -268
  2182. package/_types/tempo/ZoneRpcAuthentication.d.ts.map +0 -1
  2183. package/_types/tempo/index.d.ts +0 -552
  2184. package/_types/tempo/index.d.ts.map +0 -1
  2185. package/_types/tempo/internal/mine.wasm.d.ts.map +0 -1
  2186. package/_types/tempo/internal/virtualMasterPool.d.ts.map +0 -1
  2187. package/_types/trusted-setups/Paths.d.ts.map +0 -1
  2188. package/_types/trusted-setups/index.d.ts.map +0 -1
  2189. package/_types/trusted-setups/internal/paths.d.ts.map +0 -1
  2190. package/_types/version.d.ts +0 -3
  2191. package/_types/version.d.ts.map +0 -1
  2192. package/_types/webauthn/Authentication.d.ts +0 -324
  2193. package/_types/webauthn/Authentication.d.ts.map +0 -1
  2194. package/_types/webauthn/Authenticator.d.ts +0 -182
  2195. package/_types/webauthn/Authenticator.d.ts.map +0 -1
  2196. package/_types/webauthn/Credential.d.ts +0 -77
  2197. package/_types/webauthn/Credential.d.ts.map +0 -1
  2198. package/_types/webauthn/Registration.d.ts +0 -308
  2199. package/_types/webauthn/Registration.d.ts.map +0 -1
  2200. package/_types/webauthn/Types.d.ts.map +0 -1
  2201. package/_types/webauthn/index.d.ts +0 -33
  2202. package/_types/webauthn/index.d.ts.map +0 -1
  2203. package/_types/webauthn/internal/utils.d.ts +0 -17
  2204. package/_types/webauthn/internal/utils.d.ts.map +0 -1
  2205. package/_types/window/index.d.ts.map +0 -1
  2206. package/core/Abi.ts +0 -155
  2207. package/core/AbiConstructor.ts +0 -477
  2208. package/core/AbiError.ts +0 -794
  2209. package/core/AbiEvent.ts +0 -1402
  2210. package/core/AbiFunction.ts +0 -1055
  2211. package/core/AbiItem.ts +0 -841
  2212. package/core/AbiParameters.ts +0 -716
  2213. package/core/AccessList.ts +0 -124
  2214. package/core/AccountProof.ts +0 -35
  2215. package/core/Address.ts +0 -341
  2216. package/core/AesGcm.ts +0 -204
  2217. package/core/Authorization.ts +0 -619
  2218. package/core/Base32.ts +0 -134
  2219. package/core/Base58.ts +0 -156
  2220. package/core/Base64.ts +0 -309
  2221. package/core/Bech32m.ts +0 -263
  2222. package/core/BinaryStateTree.ts +0 -271
  2223. package/core/Blobs.ts +0 -943
  2224. package/core/Block.ts +0 -324
  2225. package/core/BlockOverrides.ts +0 -146
  2226. package/core/Bloom.ts +0 -73
  2227. package/core/Bls.ts +0 -635
  2228. package/core/BlsPoint.ts +0 -220
  2229. package/core/Bytes.ts +0 -886
  2230. package/core/Caches.ts +0 -21
  2231. package/core/Cbor.ts +0 -976
  2232. package/core/CompactSize.ts +0 -169
  2233. package/core/ContractAddress.ts +0 -169
  2234. package/core/CoseKey.ts +0 -93
  2235. package/core/Ed25519.ts +0 -339
  2236. package/core/Ens.ts +0 -104
  2237. package/core/Errors.ts +0 -143
  2238. package/core/Fee.ts +0 -57
  2239. package/core/Filter.ts +0 -136
  2240. package/core/Hash.ts +0 -259
  2241. package/core/HdKey.ts +0 -160
  2242. package/core/Hex.ts +0 -970
  2243. package/core/Json.ts +0 -133
  2244. package/core/Keystore.ts +0 -546
  2245. package/core/Kzg.ts +0 -48
  2246. package/core/Log.ts +0 -240
  2247. package/core/Mnemonic.ts +0 -229
  2248. package/core/P256.ts +0 -356
  2249. package/core/PersonalMessage.ts +0 -63
  2250. package/core/Provider.ts +0 -685
  2251. package/core/PublicKey.ts +0 -521
  2252. package/core/Rlp.ts +0 -367
  2253. package/core/RpcRequest.ts +0 -198
  2254. package/core/RpcResponse.ts +0 -626
  2255. package/core/RpcSchema.ts +0 -356
  2256. package/core/RpcTransport.ts +0 -194
  2257. package/core/Secp256k1.ts +0 -425
  2258. package/core/Signature.ts +0 -843
  2259. package/core/Siwe.ts +0 -511
  2260. package/core/Solidity.ts +0 -109
  2261. package/core/StateOverrides.ts +0 -131
  2262. package/core/Transaction.ts +0 -431
  2263. package/core/TransactionReceipt.ts +0 -333
  2264. package/core/TransactionRequest.ts +0 -208
  2265. package/core/TxEnvelope.ts +0 -205
  2266. package/core/TxEnvelopeEip1559.ts +0 -618
  2267. package/core/TxEnvelopeEip2930.ts +0 -583
  2268. package/core/TxEnvelopeEip4844.ts +0 -724
  2269. package/core/TxEnvelopeEip7702.ts +0 -604
  2270. package/core/TxEnvelopeLegacy.ts +0 -634
  2271. package/core/TypedData.ts +0 -911
  2272. package/core/ValidatorData.ts +0 -80
  2273. package/core/Value.ts +0 -224
  2274. package/core/WebAuthnP256.ts +0 -384
  2275. package/core/WebCryptoP256.ts +0 -323
  2276. package/core/Withdrawal.ts +0 -87
  2277. package/core/X25519.ts +0 -202
  2278. package/core/internal/abiConstructor.ts +0 -32
  2279. package/core/internal/abiError.ts +0 -30
  2280. package/core/internal/abiEvent.ts +0 -154
  2281. package/core/internal/abiFunction.ts +0 -32
  2282. package/core/internal/abiItem.ts +0 -593
  2283. package/core/internal/abiParameters.ts +0 -811
  2284. package/core/internal/base58.ts +0 -103
  2285. package/core/internal/bytes.ts +0 -152
  2286. package/core/internal/cursor.ts +0 -252
  2287. package/core/internal/ens.ts +0 -64
  2288. package/core/internal/hex.ts +0 -124
  2289. package/core/internal/lru.ts +0 -34
  2290. package/core/internal/mnemonic/wordlists.ts +0 -10
  2291. package/core/internal/promise.ts +0 -65
  2292. package/core/internal/rpcSchemas/eth.ts +0 -820
  2293. package/core/internal/rpcSchemas/wallet.ts +0 -471
  2294. package/core/internal/rpcTransport.ts +0 -69
  2295. package/core/internal/types.ts +0 -414
  2296. package/core/internal/webauthn.ts +0 -83
  2297. package/erc4337/EntryPoint/package.json +0 -6
  2298. package/erc4337/RpcSchema/package.json +0 -6
  2299. package/erc4337/RpcSchema.ts +0 -179
  2300. package/erc4337/UserOperation/package.json +0 -6
  2301. package/erc4337/UserOperation.ts +0 -943
  2302. package/erc4337/UserOperationGas/package.json +0 -6
  2303. package/erc4337/UserOperationGas.ts +0 -109
  2304. package/erc4337/UserOperationReceipt/package.json +0 -6
  2305. package/erc4337/index.ts +0 -38
  2306. package/erc4337/package.json +0 -6
  2307. package/erc6492/SignatureErc6492/package.json +0 -6
  2308. package/erc6492/SignatureErc6492.ts +0 -263
  2309. package/erc6492/index.ts +0 -28
  2310. package/erc6492/package.json +0 -6
  2311. package/erc7821/Calls/package.json +0 -6
  2312. package/erc7821/Calls.ts +0 -148
  2313. package/erc7821/Execute/package.json +0 -6
  2314. package/erc7821/Execute.ts +0 -197
  2315. package/erc7821/index.ts +0 -73
  2316. package/erc7821/package.json +0 -6
  2317. package/erc8010/SignatureErc8010/package.json +0 -6
  2318. package/erc8010/SignatureErc8010.ts +0 -228
  2319. package/erc8010/index.ts +0 -43
  2320. package/erc8010/package.json +0 -6
  2321. package/erc8021/Attribution/package.json +0 -6
  2322. package/erc8021/Attribution.ts +0 -519
  2323. package/erc8021/index.ts +0 -43
  2324. package/erc8021/package.json +0 -6
  2325. package/index.docs/package.json +0 -6
  2326. package/index.docs.ts +0 -11
  2327. package/index.ts +0 -3694
  2328. package/tempo/AuthorizationTempo/package.json +0 -6
  2329. package/tempo/AuthorizationTempo.test.ts +0 -1306
  2330. package/tempo/AuthorizationTempo.ts +0 -893
  2331. package/tempo/Channel/package.json +0 -6
  2332. package/tempo/Channel.test.ts +0 -203
  2333. package/tempo/Channel.ts +0 -299
  2334. package/tempo/KeyAuthorization/package.json +0 -6
  2335. package/tempo/KeyAuthorization.test.ts +0 -2468
  2336. package/tempo/KeyAuthorization.ts +0 -1155
  2337. package/tempo/MultisigConfig/package.json +0 -6
  2338. package/tempo/MultisigConfig.test.ts +0 -236
  2339. package/tempo/MultisigConfig.ts +0 -501
  2340. package/tempo/Period/package.json +0 -6
  2341. package/tempo/Period.test.ts +0 -44
  2342. package/tempo/PoolId/package.json +0 -6
  2343. package/tempo/PoolId.test.ts +0 -42
  2344. package/tempo/PoolId.ts +0 -43
  2345. package/tempo/ReceivePolicyReceipt/package.json +0 -6
  2346. package/tempo/ReceivePolicyReceipt.test.ts +0 -198
  2347. package/tempo/ReceivePolicyReceipt.ts +0 -263
  2348. package/tempo/RpcSchemaTempo/package.json +0 -6
  2349. package/tempo/RpcSchemaTempo.ts +0 -55
  2350. package/tempo/SignatureEnvelope/package.json +0 -6
  2351. package/tempo/SignatureEnvelope.test.ts +0 -3003
  2352. package/tempo/SignatureEnvelope.ts +0 -1714
  2353. package/tempo/TempoAddress/package.json +0 -6
  2354. package/tempo/TempoAddress.test.ts +0 -89
  2355. package/tempo/TempoAddress.ts +0 -144
  2356. package/tempo/Tick/package.json +0 -6
  2357. package/tempo/Tick.test.ts +0 -281
  2358. package/tempo/TokenId/package.json +0 -6
  2359. package/tempo/TokenId.test.ts +0 -93
  2360. package/tempo/TokenId.ts +0 -128
  2361. package/tempo/TokenRole/package.json +0 -6
  2362. package/tempo/TokenRole.test.ts +0 -16
  2363. package/tempo/Transaction/package.json +0 -6
  2364. package/tempo/Transaction.test.ts +0 -529
  2365. package/tempo/Transaction.ts +0 -339
  2366. package/tempo/TransactionReceipt/package.json +0 -6
  2367. package/tempo/TransactionReceipt.ts +0 -200
  2368. package/tempo/TransactionRequest/package.json +0 -6
  2369. package/tempo/TransactionRequest.test.ts +0 -198
  2370. package/tempo/TransactionRequest.ts +0 -245
  2371. package/tempo/TxEnvelopeTempo/package.json +0 -6
  2372. package/tempo/TxEnvelopeTempo.test.ts +0 -1646
  2373. package/tempo/TxEnvelopeTempo.ts +0 -1100
  2374. package/tempo/VirtualAddress/package.json +0 -6
  2375. package/tempo/VirtualAddress.test.ts +0 -88
  2376. package/tempo/VirtualAddress.ts +0 -201
  2377. package/tempo/VirtualMaster/package.json +0 -6
  2378. package/tempo/VirtualMaster.test.ts +0 -204
  2379. package/tempo/VirtualMaster.ts +0 -711
  2380. package/tempo/ZoneId/package.json +0 -6
  2381. package/tempo/ZoneId.test.ts +0 -42
  2382. package/tempo/ZoneRpcAuthentication/package.json +0 -6
  2383. package/tempo/ZoneRpcAuthentication.test.ts +0 -226
  2384. package/tempo/ZoneRpcAuthentication.ts +0 -423
  2385. package/tempo/e2e.test.ts +0 -3196
  2386. package/tempo/index.ts +0 -556
  2387. package/tempo/package.json +0 -6
  2388. package/trusted-setups/Paths/package.json +0 -6
  2389. package/trusted-setups/package.json +0 -6
  2390. package/version.ts +0 -2
  2391. package/webauthn/Authentication/package.json +0 -6
  2392. package/webauthn/Authentication.ts +0 -683
  2393. package/webauthn/Authenticator/package.json +0 -6
  2394. package/webauthn/Authenticator.ts +0 -259
  2395. package/webauthn/Credential/package.json +0 -6
  2396. package/webauthn/Credential.ts +0 -171
  2397. package/webauthn/Registration/package.json +0 -6
  2398. package/webauthn/Registration.ts +0 -820
  2399. package/webauthn/Types/package.json +0 -6
  2400. package/webauthn/index.ts +0 -38
  2401. package/webauthn/internal/utils.ts +0 -63
  2402. package/webauthn/package.json +0 -6
  2403. package/window/package.json +0 -6
  2404. /package/{_types → dist}/core/AesGcm.d.ts +0 -0
  2405. /package/{_types → dist}/core/Cbor.d.ts +0 -0
  2406. /package/{_types → dist}/core/Errors.d.ts +0 -0
  2407. /package/{_types → dist}/core/internal/abi.d.ts +0 -0
  2408. /package/{_esm → dist}/core/internal/abi.js +0 -0
  2409. /package/{_types → dist}/core/internal/abiConstructor.d.ts +0 -0
  2410. /package/{_esm → dist}/core/internal/abiConstructor.js +0 -0
  2411. /package/{_types → dist}/core/internal/abiError.d.ts +0 -0
  2412. /package/{_esm → dist}/core/internal/abiError.js +0 -0
  2413. /package/{_types → dist}/core/internal/abiEvent.d.ts +0 -0
  2414. /package/{_esm → dist}/core/internal/abiEvent.js +0 -0
  2415. /package/{_types → dist}/core/internal/abiFunction.d.ts +0 -0
  2416. /package/{_esm → dist}/core/internal/abiFunction.js +0 -0
  2417. /package/{_types → dist}/core/internal/abiItem.d.ts +0 -0
  2418. /package/{_types → dist}/core/internal/abiParameters.d.ts +0 -0
  2419. /package/{_types → dist}/core/internal/base58.d.ts +0 -0
  2420. /package/{_types → dist}/core/internal/entropy.d.ts +0 -0
  2421. /package/{_esm → dist}/core/internal/entropy.js +0 -0
  2422. /package/{_types → dist}/core/internal/errors.d.ts +0 -0
  2423. /package/{_esm → dist}/core/internal/errors.js +0 -0
  2424. /package/{_types → dist}/core/internal/hdKey.d.ts +0 -0
  2425. /package/{_esm → dist}/core/internal/hdKey.js +0 -0
  2426. /package/{_types → dist}/core/internal/promise.d.ts +0 -0
  2427. /package/{_types → dist}/core/internal/register.d.ts +0 -0
  2428. /package/{_esm → dist}/core/internal/register.js +0 -0
  2429. /package/{_types → dist}/core/internal/rpcSchema.d.ts +0 -0
  2430. /package/{_esm → dist}/core/internal/rpcSchema.js +0 -0
  2431. /package/{_esm → dist}/core/internal/rpcSchemas/eth.js +0 -0
  2432. /package/{_esm → dist}/core/internal/rpcSchemas/wallet.js +0 -0
  2433. /package/{_esm → dist}/core/internal/types.js +0 -0
  2434. /package/{_types → dist}/core/version.d.ts +0 -0
  2435. /package/{_esm → dist}/core/version.js +0 -0
  2436. /package/{_types → dist}/erc4337/EntryPoint.d.ts +0 -0
  2437. /package/{_esm → dist}/erc4337/EntryPoint.js +0 -0
  2438. /package/{_esm → dist}/erc4337/RpcSchema.js +0 -0
  2439. /package/{_types → dist}/erc4337/UserOperationReceipt.d.ts +0 -0
  2440. /package/{_esm → dist}/erc4337/UserOperationReceipt.js +0 -0
  2441. /package/{_types → dist}/tempo/Period.d.ts +0 -0
  2442. /package/{_esm → dist}/tempo/Period.js +0 -0
  2443. /package/{_esm → dist}/tempo/RpcSchemaTempo.js +0 -0
  2444. /package/{_types → dist}/tempo/Tick.d.ts +0 -0
  2445. /package/{_types → dist}/tempo/TokenRole.d.ts +0 -0
  2446. /package/{_esm → dist}/tempo/TokenRole.js +0 -0
  2447. /package/{_types → dist}/tempo/ZoneId.d.ts +0 -0
  2448. /package/{_esm → dist}/tempo/ZoneId.js +0 -0
  2449. /package/{_types → dist}/tempo/internal/mine.wasm.d.ts +0 -0
  2450. /package/{_esm → dist}/tempo/internal/mine.wasm.js +0 -0
  2451. /package/{_types → dist}/tempo/internal/virtualMasterPool.d.ts +0 -0
  2452. /package/{_esm → dist}/tempo/internal/virtualMasterPool.js +0 -0
  2453. /package/{_types → dist}/trusted-setups/Paths.d.ts +0 -0
  2454. /package/{_esm → dist}/trusted-setups/Paths.js +0 -0
  2455. /package/{_types → dist}/trusted-setups/index.d.ts +0 -0
  2456. /package/{_esm → dist}/trusted-setups/index.js +0 -0
  2457. /package/{_types → dist}/trusted-setups/internal/paths.d.ts +0 -0
  2458. /package/{_esm → dist}/trusted-setups/internal/paths.js +0 -0
  2459. /package/{_types → dist}/webauthn/Types.d.ts +0 -0
  2460. /package/{_esm → dist}/webauthn/Types.js +0 -0
  2461. /package/{_types → dist}/window/index.d.ts +0 -0
  2462. /package/{_esm → dist}/window/index.js +0 -0
  2463. /package/{core → src/core}/internal/abi.ts +0 -0
  2464. /package/{core → src/core}/internal/entropy.ts +0 -0
  2465. /package/{core → src/core}/internal/errors.ts +0 -0
  2466. /package/{core → src/core}/internal/hdKey.ts +0 -0
  2467. /package/{core → src/core}/internal/register.ts +0 -0
  2468. /package/{core → src/core}/internal/rpcSchema.ts +0 -0
  2469. /package/{core → src/core}/internal/uid.ts +0 -0
  2470. /package/{core → src/core}/version.ts +0 -0
  2471. /package/{erc4337 → src/erc4337}/EntryPoint.ts +0 -0
  2472. /package/{erc4337 → src/erc4337}/UserOperationReceipt.ts +0 -0
  2473. /package/{tempo → src/tempo}/Period.ts +0 -0
  2474. /package/{tempo → src/tempo}/Tick.ts +0 -0
  2475. /package/{tempo → src/tempo}/TokenRole.ts +0 -0
  2476. /package/{tempo → src/tempo}/ZoneId.ts +0 -0
  2477. /package/{tempo → src/tempo}/internal/mine.c +0 -0
  2478. /package/{tempo → src/tempo}/internal/mine.wasm.ts +0 -0
  2479. /package/{tempo → src/tempo}/internal/virtualMasterPool.ts +0 -0
  2480. /package/{trusted-setups → src/trusted-setups}/Paths.ts +0 -0
  2481. /package/{trusted-setups → src/trusted-setups}/index.ts +0 -0
  2482. /package/{trusted-setups → src/trusted-setups}/internal/paths.ts +0 -0
  2483. /package/{trusted-setups → src/trusted-setups}/internal/setups/mainnet.json +0 -0
  2484. /package/{trusted-setups → src/trusted-setups}/internal/setups/mainnet.txt +0 -0
  2485. /package/{tsdoc.json → src/tsdoc.json} +0 -0
  2486. /package/{webauthn → src/webauthn}/Types.ts +0 -0
  2487. /package/{window → src/window}/index.ts +0 -0
package/dist/index.js ADDED
@@ -0,0 +1,3788 @@
1
+ /** @entrypointCategory Core */
2
+ // biome-ignore lint/complexity/noUselessEmptyExport: tsdoc
3
+ /**
4
+ * Utilities & types for working with [Application Binary Interfaces (ABIs)](https://docs.soliditylang.org/en/latest/abi-spec.html)
5
+ *
6
+ * :::note
7
+ *
8
+ * If you are looking for ABI parameter **encoding** & **decoding** functions, see {@link ox#AbiParameters.(encode:function)} & {@link ox#AbiParameters.(decode:function)}.
9
+ *
10
+ * :::
11
+ *
12
+ * @example
13
+ * ### Instantiating JSON ABIs
14
+ *
15
+ * An {@link ox#Abi.Abi} can be instantiated from a JSON ABI by using {@link ox#Abi.(from:function)}:
16
+ *
17
+ * ```ts twoslash
18
+ * import { Abi } from 'ox'
19
+ *
20
+ * const abi = Abi.from([
21
+ * {
22
+ * type: 'function',
23
+ * name: 'approve',
24
+ * stateMutability: 'nonpayable',
25
+ * inputs: [
26
+ * {
27
+ * name: 'spender',
28
+ * type: 'address'
29
+ * },
30
+ * {
31
+ * name: 'amount',
32
+ * type: 'uint256'
33
+ * }
34
+ * ],
35
+ * outputs: [{ type: 'bool' }]
36
+ * }
37
+ * ])
38
+ *
39
+ * abi
40
+ * //^?
41
+ * ```
42
+ *
43
+ * @example
44
+ * ### Instantiating Human Readable ABIs
45
+ *
46
+ * An {@link ox#Abi.Abi} can be instantiated from a human-readable ABI by using {@link ox#Abi.(from:function)}:
47
+ *
48
+ * ```ts twoslash
49
+ * import { Abi } from 'ox'
50
+ *
51
+ * const abi = Abi.from([
52
+ * 'function approve(address spender, uint256 amount) returns (bool)'
53
+ * ])
54
+ *
55
+ * abi
56
+ * //^?
57
+ * ```
58
+ *
59
+ * @example
60
+ * ### Formatting ABIs
61
+ *
62
+ * An {@link ox#Abi.Abi} can be formatted into a human-readable ABI by using {@link ox#Abi.(format:function)}:
63
+ *
64
+ * ```ts twoslash
65
+ * import { Abi } from 'ox'
66
+ * const abi = Abi.from([
67
+ * {
68
+ * type: 'function',
69
+ * name: 'approve',
70
+ * stateMutability: 'nonpayable',
71
+ * inputs: [
72
+ * {
73
+ * name: 'spender',
74
+ * type: 'address'
75
+ * },
76
+ * {
77
+ * name: 'amount',
78
+ * type: 'uint256'
79
+ * }
80
+ * ],
81
+ * outputs: [{ type: 'bool' }]
82
+ * }
83
+ * ])
84
+ * //---cut---
85
+ * const formatted = Abi.format(abi)
86
+ *
87
+ * formatted
88
+ * // ^?
89
+ * ```
90
+ *
91
+ * @category ABI
92
+ */
93
+ export * as Abi from './core/Abi.js';
94
+ /**
95
+ * Utilities & types for working with [Constructors](https://docs.soliditylang.org/en/latest/abi-spec.html#json) on ABIs.
96
+ *
97
+ * `AbiConstructor` is a sub-type of [`AbiItem`](/api/AbiItem).
98
+ *
99
+ * @example
100
+ * ### Instantiating via JSON ABI
101
+ *
102
+ * An `AbiConstructor` can be instantiated from a JSON ABI by using {@link ox#AbiConstructor.(fromAbi:function)}:
103
+ *
104
+ * ```ts twoslash
105
+ * import { Abi, AbiConstructor } from 'ox'
106
+ *
107
+ * const abi = Abi.from([
108
+ * 'constructor(address owner)',
109
+ * 'function foo()',
110
+ * 'event Transfer(address owner, address to, uint256 tokenId)',
111
+ * 'function bar(string a) returns (uint256 x)'
112
+ * ])
113
+ *
114
+ * const item = AbiConstructor.fromAbi(abi) // [!code focus]
115
+ * // ^?
116
+ * ```
117
+ *
118
+ * @example
119
+ * ### Instantiating via Human-Readable ABI Item
120
+ *
121
+ * An `AbiConstructor` can be instantiated from a human-readable ABI by using {@link ox#AbiConstructor.(from:function)}:
122
+ *
123
+ * ```ts twoslash
124
+ * import { AbiConstructor } from 'ox'
125
+ *
126
+ * const constructor = AbiConstructor.from(
127
+ * 'constructor(address owner)'
128
+ * )
129
+ *
130
+ * constructor
131
+ * //^?
132
+ * ```
133
+ *
134
+ * @example
135
+ * ### Encoding to Deploy Data
136
+ *
137
+ * Constructor arguments can be ABI-encoded using {@link ox#AbiConstructor.(encode:function)} (with bytecode) into deploy data. This data can then be passed to a transaction to deploy a contract.
138
+ *
139
+ * ```ts twoslash
140
+ * import { AbiConstructor } from 'ox'
141
+ *
142
+ * const constructor = AbiConstructor.from(
143
+ * 'constructor(address, uint256)'
144
+ * )
145
+ *
146
+ * const data = AbiConstructor.encode(constructor, {
147
+ * // [!code focus]
148
+ * bytecode: '0x...', // [!code focus]
149
+ * args: ['0xd8da6bf26964af9d7eed9e03e53415d37aa96045', 123n] // [!code focus]
150
+ * }) // [!code focus]
151
+ * ```
152
+ *
153
+ * @category ABI
154
+ */
155
+ export * as AbiConstructor from './core/AbiConstructor.js';
156
+ /**
157
+ * Utilities & types for working with [Errors](https://docs.soliditylang.org/en/latest/abi-spec.html#json) on ABIs.
158
+ *
159
+ * `AbiError` is a sub-type of [`AbiItem`](/api/AbiItem).
160
+ *
161
+ * @example
162
+ * ### Instantiating via JSON ABI
163
+ *
164
+ * An `AbiError` can be instantiated from a JSON ABI by using {@link ox#AbiError.(fromAbi:function)}:
165
+ *
166
+ * ```ts twoslash
167
+ * import { Abi, AbiError } from 'ox'
168
+ *
169
+ * const abi = Abi.from([
170
+ * 'function foo()',
171
+ * 'error BadSignatureV(uint8 v)',
172
+ * 'function bar(string a) returns (uint256 x)'
173
+ * ])
174
+ *
175
+ * const item = AbiError.fromAbi(abi, 'BadSignatureV') // [!code focus]
176
+ * // ^?
177
+ * ```
178
+ *
179
+ * @example
180
+ * ### Instantiating via Human-Readable ABI Item
181
+ *
182
+ * An `AbiError` can be instantiated from a human-readable ABI by using {@link ox#AbiError.(from:function)}:
183
+ *
184
+ * ```ts twoslash
185
+ * import { AbiError } from 'ox'
186
+ *
187
+ * const error = AbiError.from('error BadSignatureV(uint8 v)')
188
+ *
189
+ * error
190
+ * //^?
191
+ * ```
192
+ *
193
+ * @example
194
+ * ### Decoding Error Data
195
+ *
196
+ * Error data can be ABI-decoded using the {@link ox#AbiError.(decode:function)} function.
197
+ *
198
+ * ```ts twoslash
199
+ * // @noErrors
200
+ * import { Abi, AbiError } from 'ox'
201
+ *
202
+ * const abi = Abi.from([...])
203
+ * const error = AbiError.fromAbi(abi, 'InvalidSignature')
204
+ *
205
+ * const value = AbiError.decode(error, '0xecde634900000000000000000000000000000000000000000000000000000000000001a400000000000000000000000000000000000000000000000000000000000000450000000000000000000000000000000000000000000000000000000000000001') // [!code focus]
206
+ * // @log: [420n, 69n, 1]
207
+ * ```
208
+ *
209
+ * @category ABI
210
+ */
211
+ export * as AbiError from './core/AbiError.js';
212
+ /**
213
+ * Utilities & types for working with [Events](https://docs.soliditylang.org/en/latest/abi-spec.html#json) on ABIs.
214
+ *
215
+ * `AbiEvent` is a sub-type of [`AbiItem`](/api/AbiItem).
216
+ *
217
+ * @example
218
+ * ### Instantiating via JSON ABI
219
+ *
220
+ * An `AbiEvent` can be instantiated from a JSON ABI by using {@link ox#AbiEvent.(fromAbi:function)}:
221
+ *
222
+ * ```ts twoslash
223
+ * import { Abi, AbiEvent } from 'ox'
224
+ *
225
+ * const abi = Abi.from([
226
+ * 'function foo()',
227
+ * 'event Transfer(address owner, address to, uint256 tokenId)',
228
+ * 'function bar(string a) returns (uint256 x)'
229
+ * ])
230
+ *
231
+ * const item = AbiEvent.fromAbi(abi, 'Transfer') // [!code focus]
232
+ * // ^?
233
+ * ```
234
+ *
235
+ * @example
236
+ * ### Instantiating via Human-Readable ABI Item
237
+ *
238
+ * An `AbiEvent` can be instantiated from a human-readable ABI by using {@link ox#AbiEvent.(from:function)}:
239
+ *
240
+ * ```ts twoslash
241
+ * import { AbiEvent } from 'ox'
242
+ *
243
+ * const transfer = AbiEvent.from(
244
+ * 'event Transfer(address indexed from, address indexed to, uint256 value)' // [!code hl]
245
+ * )
246
+ *
247
+ * transfer
248
+ * //^?
249
+ * ```
250
+ *
251
+ * @example
252
+ * ### Encoding to Event Topics
253
+ *
254
+ * Encode an `AbiEvent` into topics using {@link ox#AbiEvent.(encode:function)}:
255
+ *
256
+ * ```ts twoslash
257
+ * import { AbiEvent } from 'ox'
258
+ *
259
+ * const transfer = AbiEvent.from(
260
+ * 'event Transfer(address indexed from, address indexed to, uint256 value)'
261
+ * )
262
+ *
263
+ * const { topics } = AbiEvent.encode(transfer, {
264
+ * from: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266', // [!code hl]
265
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8' // [!code hl]
266
+ * })
267
+ * // @log: [
268
+ * // @log: '0x406dade31f7ae4b5dbc276258c28dde5ae6d5c2773c5745802c493a2360e55e0',
269
+ * // @log: '0x00000000000000000000000000000000f39fd6e51aad88f6f4ce6ab8827279cfffb92266',
270
+ * // @log: '0x0000000000000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c8'
271
+ * // @log: ]
272
+ * ```
273
+ *
274
+ * @example
275
+ * ### Decoding Event Topics and Data
276
+ *
277
+ * Event topics and data can be decoded using {@link ox#AbiEvent.(decode:function)}:
278
+ *
279
+ * ```ts twoslash
280
+ * import { AbiEvent } from 'ox'
281
+ *
282
+ * const transfer = AbiEvent.from(
283
+ * 'event Transfer(address indexed from, address indexed to, uint256 value)'
284
+ * )
285
+ *
286
+ * const log = {
287
+ * // ...
288
+ * data: '0x0000000000000000000000000000000000000000000000000000000000000001',
289
+ * topics: [
290
+ * '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
291
+ * '0x000000000000000000000000a5cc3c03994db5b0d9a5eedd10cabab0813678ac',
292
+ * '0x000000000000000000000000a5cc3c03994db5b0d9a5eedd10cabab0813678ac'
293
+ * ]
294
+ * } as const
295
+ *
296
+ * const decoded = AbiEvent.decode(transfer, log)
297
+ * // @log: {
298
+ * // @log: from: '0xa5cc3c03994db5b0d9a5eedd10cabab0813678ac',
299
+ * // @log: to: '0xa5cc3c03994db5b0d9a5eedd10cabab0813678ac',
300
+ * // @log: value: 1n
301
+ * // @log: }
302
+ * ```
303
+ *
304
+ * @category ABI
305
+ */
306
+ export * as AbiEvent from './core/AbiEvent.js';
307
+ /**
308
+ * Utilities & types for working with [Functions](https://docs.soliditylang.org/en/latest/abi-spec.html#json) on ABIs.
309
+ *
310
+ * `AbiFunction` is a sub-type of [`AbiItem`](/api/AbiItem).
311
+ *
312
+ * @example
313
+ * ### Instantiating via JSON ABI
314
+ *
315
+ * An `AbiFunction` can be instantiated from a JSON ABI by using {@link ox#AbiFunction.(fromAbi:function)}:
316
+ *
317
+ * ```ts twoslash
318
+ * import { Abi, AbiFunction } from 'ox'
319
+ *
320
+ * const abi = Abi.from([
321
+ * 'function foo()',
322
+ * 'event Transfer(address owner, address to, uint256 tokenId)',
323
+ * 'function bar(string a) returns (uint256 x)'
324
+ * ])
325
+ *
326
+ * const item = AbiFunction.fromAbi(abi, 'bar') // [!code focus]
327
+ * // ^?
328
+ * ```
329
+ *
330
+ * @example
331
+ * ### Instantiating via Human-Readable ABI Item
332
+ *
333
+ * An `AbiFunction` can be instantiated from a human-readable ABI by using {@link ox#AbiFunction.(from:function)}:
334
+ *
335
+ * ```ts twoslash
336
+ * import { AbiFunction } from 'ox'
337
+ *
338
+ * const bar = AbiFunction.from(
339
+ * 'function bar(string a) returns (uint256 x)'
340
+ * )
341
+ *
342
+ * bar
343
+ * //^?
344
+ * ```
345
+ *
346
+ * @example
347
+ * ### Encoding to Function Data
348
+ *
349
+ * A Function and its arguments can be ABI-encoded into data using the {@link ox#AbiFunction.(encodeData:function)} function. The output of this function can then be passed to `eth_sendTransaction` or `eth_call` as the `data` parameter.
350
+ *
351
+ * ```ts twoslash
352
+ * import { AbiFunction } from 'ox'
353
+ *
354
+ * const approve = AbiFunction.from(
355
+ * 'function approve(address, uint256)'
356
+ * )
357
+ *
358
+ * const data = AbiFunction.encodeData(
359
+ * // [!code focus]
360
+ * approve, // [!code focus]
361
+ * ['0xd8da6bf26964af9d7eed9e03e53415d37aa96045', 69420n] // [!code focus]
362
+ * ) // [!code focus]
363
+ * // @log: '0x095ea7b3000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000000000000010f2c'
364
+ * ```
365
+ *
366
+ * @example
367
+ * ### Decoding a Function's Result
368
+ *
369
+ * A Function's result can be ABI-decoded using the {@link ox#AbiFunction.(decodeResult:function)} function.
370
+ *
371
+ * ```ts twoslash
372
+ * import { AbiFunction } from 'ox'
373
+ *
374
+ * const data =
375
+ * '0x000000000000000000000000000000000000000000000000000000000000002a'
376
+ * // ↑ Example data that could be returned from a contract call via `eth_call`.
377
+ *
378
+ * const totalSupply = AbiFunction.from(
379
+ * 'function totalSupply() returns (uint256)'
380
+ * )
381
+ *
382
+ * const output = AbiFunction.decodeResult(totalSupply, data) // [!code focus]
383
+ * // @log: 42n
384
+ * ```
385
+ *
386
+ * @category ABI
387
+ */
388
+ export * as AbiFunction from './core/AbiFunction.js';
389
+ /**
390
+ * Utilities & types for working with [ABI Items](https://docs.soliditylang.org/en/latest/abi-spec.html#json)
391
+ *
392
+ * The `AbiItem` type is a super-type of:
393
+ * - [`AbiConstructor`](/api/AbiConstructor)
394
+ * - [`AbiFunction`](/api/AbiFunction)
395
+ * - [`AbiEvent`](/api/AbiEvent)
396
+ * - [`AbiError`](/api/AbiError)
397
+ *
398
+ * @example
399
+ * ### Instantiating via JSON ABI
400
+ *
401
+ * An `AbiItem` can be instantiated from a JSON ABI by using {@link ox#AbiItem.(fromAbi:function)}:
402
+ *
403
+ * ```ts twoslash
404
+ * import { Abi, AbiItem } from 'ox'
405
+ *
406
+ * const abi = Abi.from([
407
+ * 'function foo()',
408
+ * 'event Transfer(address owner, address to, uint256 tokenId)',
409
+ * 'function bar(string a) returns (uint256 x)'
410
+ * ])
411
+ *
412
+ * const item = AbiItem.fromAbi(abi, 'Transfer') // [!code focus]
413
+ * // ^?
414
+ * ```
415
+ *
416
+ * @example
417
+ * ### Instantiating via Human-Readable ABI Item
418
+ *
419
+ * A Human Readable ABI can be parsed into a typed ABI object:
420
+ *
421
+ * ```ts twoslash
422
+ * import { AbiItem } from 'ox'
423
+ *
424
+ * const abiItem = AbiItem.from(
425
+ * 'function approve(address spender, uint256 amount) returns (bool)'
426
+ * )
427
+ *
428
+ * abiItem
429
+ * //^?
430
+ * ```
431
+ *
432
+ * @example
433
+ * ### Formatting ABI Items
434
+ *
435
+ * An `AbiItem` can be formatted into a human-readable ABI Item by using {@link ox#AbiItem.(format:function)}:
436
+ *
437
+ * ```ts twoslash
438
+ * import { AbiItem } from 'ox'
439
+ *
440
+ * const abiItem = AbiItem.from(
441
+ * 'function approve(address spender, uint256 amount) returns (bool)'
442
+ * )
443
+ *
444
+ * const formatted = AbiItem.format(abiItem)
445
+ * // @log: 'function approve(address spender, uint256 amount) returns (bool)'
446
+ * ```
447
+ *
448
+ * @category ABI
449
+ */
450
+ export * as AbiItem from './core/AbiItem.js';
451
+ /**
452
+ * Utilities & types for encoding, decoding, and working with [ABI Parameters](https://docs.soliditylang.org/en/latest/abi-spec.html#types)
453
+ *
454
+ * @example
455
+ * ### Encoding ABI Parameters
456
+ *
457
+ * ABI Parameters can be ABI-encoded as per the [Application Binary Interface (ABI) Specification](https://docs.soliditylang.org/en/latest/abi-spec) using {@link ox#AbiParameters.(encode:function)}:
458
+ *
459
+ * ```ts twoslash
460
+ * import { AbiParameters } from 'ox'
461
+ *
462
+ * const data = AbiParameters.encode(
463
+ * AbiParameters.from('string, uint, bool'),
464
+ * ['wagmi', 420n, true]
465
+ * )
466
+ * ```
467
+ *
468
+ * :::tip
469
+ *
470
+ * The example above uses {@link ox#AbiParameters.(from:function)} to specify human-readable ABI Parameters.
471
+ *
472
+ * However, you can also pass JSON-ABI Parameters:
473
+ *
474
+ * ```ts
475
+ * import { AbiParameters } from 'ox'
476
+ *
477
+ * const data = AbiParameters.encode(
478
+ * [{ type: 'string' }, { type: 'uint' }, { type: 'bool' }],
479
+ * ['wagmi', 420n, true]
480
+ * )
481
+ * ```
482
+ *
483
+ * :::
484
+ *
485
+ * @example
486
+ * ### Decoding ABI Parameters
487
+ *
488
+ * ABI-encoded data can be decoded using {@link ox#AbiParameters.(decode:function)}:
489
+ *
490
+ * ```ts twoslash
491
+ * import { AbiParameters } from 'ox'
492
+ *
493
+ * const data = AbiParameters.decode(
494
+ * AbiParameters.from('string, uint, bool'),
495
+ * '0x000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000001a4000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000057761676d69000000000000000000000000000000000000000000000000000000'
496
+ * )
497
+ * // @log: ['wagmi', 420n, true]
498
+ * ```
499
+ *
500
+ * @example
501
+ * ### JSON-ABI Parameters
502
+ *
503
+ * JSON-ABI Parameters can be instantiated using {@link ox#AbiParameters.(from:function)}:
504
+ *
505
+ * ```ts twoslash
506
+ * import { AbiParameters } from 'ox'
507
+ *
508
+ * const parameters = AbiParameters.from([
509
+ * {
510
+ * name: 'spender',
511
+ * type: 'address'
512
+ * },
513
+ * {
514
+ * name: 'amount',
515
+ * type: 'uint256'
516
+ * }
517
+ * ])
518
+ *
519
+ * parameters
520
+ * //^?
521
+ * ```
522
+ *
523
+ * @example
524
+ * ### Human Readable ABI Parameters
525
+ *
526
+ * Human Readable ABI Parameters can be instantiated using {@link ox#AbiParameters.(from:function)}:
527
+ *
528
+ * ```ts twoslash
529
+ * import { AbiParameters } from 'ox'
530
+ *
531
+ * const parameters = AbiParameters.from(
532
+ * 'address spender, uint256 amount'
533
+ * )
534
+ *
535
+ * parameters
536
+ * //^?
537
+ * ```
538
+ *
539
+ * @category ABI
540
+ */
541
+ export * as AbiParameters from './core/AbiParameters.js';
542
+ /**
543
+ * Utilities & types for working with Access Lists as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/4140e528360fea53c34a766d86a000c6c039100e/src/schemas/transaction.yaml#L73)
544
+ *
545
+ * @category Execution Spec
546
+ */
547
+ export * as AccessList from './core/AccessList.js';
548
+ /**
549
+ * Utilities & types for working with Account Proofs as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/state.yaml)
550
+ *
551
+ * @category Execution Spec
552
+ */
553
+ export * as AccountProof from './core/AccountProof.js';
554
+ /**
555
+ * Utility functions for working with Ethereum addresses.
556
+ *
557
+ * @example
558
+ * ### Instantiating Addresses
559
+ *
560
+ * An {@link ox#Address.Address} can be instantiated from a hex string using {@link ox#Address.(from:function)}:
561
+ *
562
+ * ```ts twoslash
563
+ * import { Address } from 'ox'
564
+ *
565
+ * const address = Address.from(
566
+ * '0xa0cf798816d4b9b9866b5330eea46a18382f251e'
567
+ * )
568
+ * // @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
569
+ * ```
570
+ *
571
+ * @example
572
+ * ### Validating Addresses
573
+ *
574
+ * The {@link ox#Address.(validate:function)} function will return `true` if the address is valid, and `false` otherwise:
575
+ *
576
+ * ```ts twoslash
577
+ * import { Address } from 'ox'
578
+ *
579
+ * const valid = Address.validate(
580
+ * '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
581
+ * )
582
+ * // @log: true
583
+ * ```
584
+ *
585
+ * The {@link ox#Address.(assert:function)} function will throw an error if the address is invalid:
586
+ *
587
+ * ```ts twoslash
588
+ * import { Address } from 'ox'
589
+ *
590
+ * Address.assert('0xdeadbeef')
591
+ * // @error: InvalidAddressError: Address "0xdeadbeef" is invalid.
592
+ * ```
593
+ *
594
+ * @example
595
+ * ### Addresses from ECDSA Public Keys
596
+ *
597
+ * An {@link ox#Address.Address} can be computed from an ECDSA public key using {@link ox#Address.(fromPublicKey:function)}:
598
+ *
599
+ * ```ts twoslash
600
+ * import { Address, Secp256k1 } from 'ox'
601
+ *
602
+ * const privateKey = Secp256k1.randomPrivateKey()
603
+ * const publicKey = Secp256k1.getPublicKey({ privateKey })
604
+ *
605
+ * const address = Address.fromPublicKey(publicKey)
606
+ * // @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'
607
+ * ```
608
+ *
609
+ * @category Addresses
610
+ */
611
+ export * as Address from './core/Address.js';
612
+ /**
613
+ * Utilities & types for working with AES-GCM encryption. Internally uses the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API).
614
+ *
615
+ * @example
616
+ * ### Encrypting Data
617
+ *
618
+ * Data can be encrypted using {@link ox#AesGcm.(encrypt:function)}:
619
+ *
620
+ * ```ts twoslash
621
+ * import { AesGcm, Hex } from 'ox'
622
+ *
623
+ * const key = await AesGcm.getKey({ password: 'qwerty' })
624
+ * const secret = Hex.fromString('i am a secret message')
625
+ *
626
+ * const encrypted = await AesGcm.encrypt(secret, key) // [!code focus]
627
+ * // @log: '0x5e257b25bcf53d5431e54e5a68ca0138306d31bb6154f35a97bb8ea18111e7d82bcf619d3c76c4650688bc5310eed80b8fc86d1e3e'
628
+ * ```
629
+ *
630
+ * @example
631
+ * ### Decrypting Data
632
+ *
633
+ * Data can be decrypted using {@link ox#AesGcm.(decrypt:function)}:
634
+ *
635
+ * ```ts twoslash
636
+ * import { AesGcm, Hex } from 'ox'
637
+ *
638
+ * const key = await AesGcm.getKey({ password: 'qwerty' })
639
+ * const encrypted = await AesGcm.encrypt(
640
+ * Hex.fromString('i am a secret message'),
641
+ * key
642
+ * )
643
+ *
644
+ * const decrypted = await AesGcm.decrypt(encrypted, key) // [!code focus]
645
+ * // @log: Hex.fromString('i am a secret message')
646
+ * ```
647
+ *
648
+ * @category Crypto
649
+ */
650
+ export * as AesGcm from './core/AesGcm.js';
651
+ /**
652
+ * Utility functions for working with [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization lists & tuples.
653
+ *
654
+ * @example
655
+ * ### Instantiating Authorizations
656
+ *
657
+ * An Authorization can be instantiated using {@link ox#Authorization.(from:function)}:
658
+ *
659
+ * ```ts twoslash
660
+ * import { Authorization } from 'ox'
661
+ *
662
+ * const authorization = Authorization.from({
663
+ * address: '0x1234567890abcdef1234567890abcdef12345678',
664
+ * chainId: 1,
665
+ * nonce: 69n
666
+ * })
667
+ * ```
668
+ *
669
+ * @example
670
+ * ### Computing Sign Payload
671
+ *
672
+ * A signing payload can be computed using {@link ox#Authorization.(getSignPayload:function)}. The result can then be passed to signing functions like {@link ox#Secp256k1.(sign:function)}.
673
+ *
674
+ * ```ts twoslash
675
+ * import { Authorization, Secp256k1 } from 'ox'
676
+ *
677
+ * const authorization = Authorization.from({
678
+ * address: '0x1234567890abcdef1234567890abcdef12345678',
679
+ * chainId: 1,
680
+ * nonce: 69n
681
+ * })
682
+ *
683
+ * const payload = Authorization.getSignPayload(authorization) // [!code focus]
684
+ *
685
+ * const signature = Secp256k1.sign({
686
+ * payload,
687
+ * privateKey: '0x...'
688
+ * })
689
+ * ```
690
+ *
691
+ * @example
692
+ * ### Attaching Signatures to Authorizations
693
+ *
694
+ * A signature can be attached to an Authorization using {@link ox#Authorization.(from:function)}:
695
+ *
696
+ * ```ts twoslash
697
+ * import {
698
+ * Authorization,
699
+ * Secp256k1,
700
+ * TxEnvelopeEip7702,
701
+ * Value
702
+ * } from 'ox'
703
+ *
704
+ * const authorization = Authorization.from({
705
+ * address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',
706
+ * chainId: 1,
707
+ * nonce: 40n
708
+ * })
709
+ *
710
+ * const signature = Secp256k1.sign({
711
+ * payload: Authorization.getSignPayload(authorization),
712
+ * privateKey: '0x...'
713
+ * })
714
+ *
715
+ * const authorization_signed = Authorization.from(
716
+ * authorization,
717
+ * { signature }
718
+ * ) // [!code focus]
719
+ *
720
+ * const envelope = TxEnvelopeEip7702.from({
721
+ * authorizationList: [authorization_signed],
722
+ * chainId: 1,
723
+ * maxFeePerGas: Value.fromGwei('10'),
724
+ * to: '0x0000000000000000000000000000000000000000',
725
+ * value: Value.fromEther('1')
726
+ * })
727
+ * ```
728
+ *
729
+ * @category Authorization (EIP-7702)
730
+ */
731
+ export * as Authorization from './core/Authorization.js';
732
+ /**
733
+ * Utility functions for working with Base32 values using the [BIP-173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki) bech32 alphabet.
734
+ *
735
+ * @example
736
+ * ### Encoding to Base32
737
+ *
738
+ * ```ts twoslash
739
+ * import { Base32 } from 'ox'
740
+ *
741
+ * const value = Base32.fromHex('0x00ff00')
742
+ * ```
743
+ *
744
+ * @example
745
+ * ### Decoding Base32
746
+ *
747
+ * ```ts twoslash
748
+ * import { Base32 } from 'ox'
749
+ *
750
+ * const value = Base32.toBytes('qrlsq')
751
+ * ```
752
+ *
753
+ * @category Data
754
+ */
755
+ export * as Base32 from './core/Base32.js';
756
+ /**
757
+ * Utility functions for working with [Base58](https://digitalbazaar.github.io/base58-spec/) values.
758
+ *
759
+ * @example
760
+ * ### Encoding to Base58
761
+ *
762
+ * Values can be encoded to Base58 with:
763
+ *
764
+ * - {@link ox#Base58.(fromString:function)}, or
765
+ *
766
+ * - {@link ox#Base58.(fromBytes:function)}, or
767
+ *
768
+ * - {@link ox#Base58.(fromHex:function)}
769
+ *
770
+ * ```ts twoslash
771
+ * import { Base58 } from 'ox'
772
+ *
773
+ * const value_string = Base58.fromString('Hello World!')
774
+ * // @log: '2NEpo7TZRRrLZSi2U'
775
+ *
776
+ * const value_bytes = Base58.fromBytes(
777
+ * new Uint8Array([
778
+ * 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33
779
+ * ])
780
+ * )
781
+ * // @log: '2NEpo7TZRRrLZSi2U'
782
+ *
783
+ * const value_hex = Base58.fromHex(
784
+ * '0x48656c6c6f20576f726c6421'
785
+ * )
786
+ * // @log: '2NEpo7TZRRrLZSi2U'
787
+ * ```
788
+ *
789
+ * @example
790
+ * ### Decoding Base58
791
+ *
792
+ * Values can be decoded from Base58 with:
793
+ *
794
+ * - {@link ox#Base58.(toString:function)}, or
795
+ *
796
+ * - {@link ox#Base58.(toBytes:function)}, or
797
+ *
798
+ * - {@link ox#Base58.(toHex:function)}
799
+ *
800
+ * ```ts twoslash
801
+ * import { Base58 } from 'ox'
802
+ *
803
+ * const value_string = Base58.toString('2NEpo7TZRRrLZSi2U')
804
+ * // @log: 'Hello World!'
805
+ *
806
+ * const value_bytes = Base58.toBytes('2NEpo7TZRRrLZSi2U')
807
+ * // @log: Uint8Array [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]
808
+ *
809
+ * const value_hex = Base58.toHex('2NEpo7TZRRrLZSi2U')
810
+ * // @log: '0x48656c6c6f20576f726c6421'
811
+ * ```
812
+ *
813
+ * @category Data
814
+ */
815
+ export * as Base58 from './core/Base58.js';
816
+ /**
817
+ * Utility functions for working with [RFC-4648](https://datatracker.ietf.org/doc/html/rfc4648) Base64.
818
+ *
819
+ * @example
820
+ * ### Encoding to Base64
821
+ *
822
+ * Values can be encoded to Base64 with:
823
+ *
824
+ * - {@link ox#Base64.(fromString:function)}, or
825
+ *
826
+ * - {@link ox#Base64.(fromBytes:function)}, or
827
+ *
828
+ * - {@link ox#Base64.(fromHex:function)}
829
+ *
830
+ * ```ts twoslash
831
+ * import { Base64 } from 'ox'
832
+ *
833
+ * const value_string = Base64.fromString('Hello World!')
834
+ * // @log: 'SGVsbG8gV29ybGQh=='
835
+ *
836
+ * const value_bytes = Base64.fromBytes(
837
+ * new Uint8Array([
838
+ * 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33
839
+ * ])
840
+ * )
841
+ * // @log: 'SGVsbG8gV29ybGQh=='
842
+ *
843
+ * const value_hex = Base64.fromHex(
844
+ * '0x48656c6c6f20576f726c6421'
845
+ * )
846
+ * // @log: 'SGVsbG8gV29ybGQh=='
847
+ * ```
848
+ *
849
+ * ### Decoding Base64
850
+ *
851
+ * Values can be decoded from Base64 with:
852
+ *
853
+ * - {@link ox#Base64.(toString:function)}, or
854
+ *
855
+ * - {@link ox#Base64.(toBytes:function)}, or
856
+ *
857
+ * - {@link ox#Base64.(toHex:function)}
858
+ *
859
+ * ```ts twoslash
860
+ * import { Base64 } from 'ox'
861
+ *
862
+ * const value_string = Base64.toString('SGVsbG8gV29ybGQh==')
863
+ * // @log: 'Hello World!'
864
+ *
865
+ * const value_bytes = Base64.toBytes('SGVsbG8gV29ybGQh==')
866
+ * // @log: Uint8Array [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]
867
+ *
868
+ * const value_hex = Base64.toHex('SGVsbG8gV29ybGQh==')
869
+ * // @log: '0x48656c6c6f20576f726c6421'
870
+ * ```
871
+ *
872
+ * @category Data
873
+ */
874
+ export * as Base64 from './core/Base64.js';
875
+ /**
876
+ * Utility functions for [BIP-350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki) bech32m encoding and decoding.
877
+ *
878
+ * @example
879
+ * ### Encoding
880
+ *
881
+ * ```ts twoslash
882
+ * import { Bech32m } from 'ox'
883
+ *
884
+ * const encoded = Bech32m.encode('tempo', new Uint8Array(20))
885
+ * ```
886
+ *
887
+ * @example
888
+ * ### Decoding
889
+ *
890
+ * ```ts twoslash
891
+ * import { Bech32m } from 'ox'
892
+ *
893
+ * const { hrp, data } = Bech32m.decode(
894
+ * 'tempo1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq7w9gdx'
895
+ * )
896
+ * ```
897
+ *
898
+ * @category Data
899
+ */
900
+ export * as Bech32m from './core/Bech32m.js';
901
+ /**
902
+ * Utility functions for working with [EIP-7864](https://eips.ethereum.org/EIPS/eip-7864) Binary State Trees.
903
+ *
904
+ * @category Binary State Tree (EIP-7864)
905
+ */
906
+ export * as BinaryStateTree from './core/BinaryStateTree.js';
907
+ /**
908
+ * Cell-level helpers for [PeerDAS (EIP-7594)](https://eips.ethereum.org/EIPS/eip-7594):
909
+ * deriving the 128 cells and cell KZG proofs of an extended blob, and verifying
910
+ * cell proofs against blob commitments.
911
+ *
912
+ * @example
913
+ * ```ts twoslash
914
+ * // @noErrors
915
+ * import { BlobCells, Blobs } from 'ox'
916
+ * import { kzg } from './kzg'
917
+ *
918
+ * const [blob] = Blobs.from('0xdeadbeef')
919
+ * const { cells, proofs } = BlobCells.fromBlob(blob, { kzg })
920
+ * ```
921
+ *
922
+ * @category Blobs (EIP-7594)
923
+ */
924
+ export * as BlobCells from './core/BlobCells.js';
925
+ /**
926
+ * Utility functions for working with [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) Blobs.
927
+ *
928
+ * @category Blobs (EIP-4844)
929
+ */
930
+ export * as Blobs from './core/Blobs.js';
931
+ /**
932
+ * Utilities & types for working with Blocks as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/block.yaml)
933
+ *
934
+ * @example
935
+ * ### Converting from RPC Format
936
+ *
937
+ * Blocks can be converted from RPC format to internal format using {@link ox#Block.(fromRpc:function)}:
938
+ *
939
+ * ```ts twoslash
940
+ * import 'ox/window'
941
+ * import { Block } from 'ox'
942
+ *
943
+ * const block = await window
944
+ * .ethereum!.request({
945
+ * method: 'eth_getBlockByNumber',
946
+ * params: ['latest', false]
947
+ * })
948
+ * .then(Block.fromRpc) // [!code hl]
949
+ * // @log: {
950
+ * // @log: // ...
951
+ * // @log: hash: '0xebc3644804e4040c0a74c5a5bbbc6b46a71a5d4010fe0c92ebb2fdf4a43ea5dd',
952
+ * // @log: number: 19868020n,
953
+ * // @log: size: 520n,
954
+ * // @log: timestamp: 1662222222n,
955
+ * // @log: // ...
956
+ * // @log: }
957
+ * ```
958
+ *
959
+ * @category Execution Spec
960
+ */
961
+ export * as Block from './core/Block.js';
962
+ /**
963
+ * Utilities & types for working with **Block Overrides**.
964
+ *
965
+ * @category Execution Spec
966
+ */
967
+ export * as BlockOverrides from './core/BlockOverrides.js';
968
+ /**
969
+ * Utility functions for working with Bloom Filters as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/block.yaml)
970
+ *
971
+ * @category Execution Spec
972
+ */
973
+ export * as Bloom from './core/Bloom.js';
974
+ /**
975
+ * Utility functions for [BLS12-381](https://hackmd.io/\@benjaminion/bls12-381) cryptography.
976
+ *
977
+ * :::info
978
+ *
979
+ * The `Bls` module is a friendly wrapper over [`@noble/curves/bls12-381`](https://github.com/paulmillr/noble-curves), an **audited** implementation of BLS12-381.
980
+ *
981
+ * :::
982
+ *
983
+ * @example
984
+ * ### Computing a Random Private Key
985
+ *
986
+ * A random private key can be computed using {@link ox#Bls.(randomPrivateKey:function)}:
987
+ *
988
+ * ```ts twoslash
989
+ * import { Bls } from 'ox'
990
+ *
991
+ * const privateKey = Bls.randomPrivateKey()
992
+ * // @log: '0x...'
993
+ * ```
994
+ *
995
+ * @example
996
+ * ### Getting a Public Key
997
+ *
998
+ * A public key can be derived from a private key using {@link ox#Bls.(getPublicKey:function)}:
999
+ *
1000
+ * ```ts twoslash
1001
+ * import { Bls } from 'ox'
1002
+ *
1003
+ * const privateKey = Bls.randomPrivateKey()
1004
+ * const publicKey = Bls.getPublicKey({ privateKey })
1005
+ * // @log: { x: 3251...5152n, y: 1251...5152n, z: 1n }
1006
+ * ```
1007
+ *
1008
+ * @example
1009
+ * ### Signing a Payload
1010
+ *
1011
+ * A payload can be signed using {@link ox#Bls.(sign:function)}:
1012
+ *
1013
+ * ```ts twoslash
1014
+ * import { Bls } from 'ox'
1015
+ *
1016
+ * const privateKey = Bls.randomPrivateKey()
1017
+ * const signature = Bls.sign({
1018
+ * payload: '0xdeadbeef',
1019
+ * privateKey
1020
+ * })
1021
+ * // @log: { x: 1251...5152n, y: 1251...5152n, z: 1n }
1022
+ * ```
1023
+ *
1024
+ * @example
1025
+ * ### Verifying a Signature
1026
+ *
1027
+ * A signature can be verified using {@link ox#Secp256k1.(verify:function)}:
1028
+ *
1029
+ * ```ts twoslash
1030
+ * import { Bls } from 'ox'
1031
+ *
1032
+ * const privateKey = Bls.randomPrivateKey()
1033
+ * const publicKey = Bls.getPublicKey({ privateKey })
1034
+ * const signature = Bls.sign({
1035
+ * payload: '0xdeadbeef',
1036
+ * privateKey
1037
+ * })
1038
+ *
1039
+ * const isValid = Bls.verify({
1040
+ * // [!code focus]
1041
+ * payload: '0xdeadbeef', // [!code focus]
1042
+ * publicKey, // [!code focus]
1043
+ * signature // [!code focus]
1044
+ * }) // [!code focus]
1045
+ * // @log: true
1046
+ * ```
1047
+ *
1048
+ * @example
1049
+ * ### Aggregating Public Keys & Signatures
1050
+ *
1051
+ * Public keys and signatures can be aggregated using {@link ox#Bls.(aggregate:function)}:
1052
+ *
1053
+ * ```ts twoslash
1054
+ * import { Bls } from 'ox'
1055
+ *
1056
+ * const publicKeys = [
1057
+ * Bls.getPublicKey({ privateKey: '0x...' }),
1058
+ * Bls.getPublicKey({ privateKey: '0x...' })
1059
+ * ]
1060
+ * const publicKey = Bls.aggregate(publicKeys)
1061
+ *
1062
+ * const signatures = [
1063
+ * Bls.sign({ payload: '0x...', privateKey: '0x...' }),
1064
+ * Bls.sign({ payload: '0x...', privateKey: '0x...' })
1065
+ * ]
1066
+ * const signature = Bls.aggregate(signatures)
1067
+ * ```
1068
+ *
1069
+ * @example
1070
+ * ### Verify Aggregated Signatures
1071
+ *
1072
+ * We can also pass a public key and signature that was aggregated with {@link ox#Bls.(aggregate:function)} to `Bls.verify`.
1073
+ *
1074
+ * ```ts twoslash
1075
+ * import { Bls, Hex } from 'ox'
1076
+ *
1077
+ * const payload = Hex.random(32)
1078
+ * const privateKeys = Array.from({ length: 100 }, () =>
1079
+ * Bls.randomPrivateKey()
1080
+ * )
1081
+ *
1082
+ * const publicKeys = privateKeys.map((privateKey) =>
1083
+ * Bls.getPublicKey({ privateKey })
1084
+ * )
1085
+ * const signatures = privateKeys.map((privateKey) =>
1086
+ * Bls.sign({ payload, privateKey })
1087
+ * )
1088
+ *
1089
+ * const publicKey = Bls.aggregate(publicKeys) // [!code focus]
1090
+ * const signature = Bls.aggregate(signatures) // [!code focus]
1091
+ *
1092
+ * const valid = Bls.verify({ payload, publicKey, signature }) // [!code focus]
1093
+ * ```
1094
+ *
1095
+ * @category Crypto
1096
+ */
1097
+ export * as Bls from './core/Bls.js';
1098
+ /**
1099
+ * Utility functions for working with BLS12-381 points.
1100
+ *
1101
+ * :::info
1102
+ *
1103
+ * The `BlsPoint` module is a friendly wrapper over [`@noble/curves/bls12-381`](https://github.com/paulmillr/noble-curves), an **audited** implementation of BLS12-381.
1104
+ *
1105
+ * :::
1106
+ *
1107
+ * @example
1108
+ * ### Public Keys or Signatures to Hex
1109
+ *
1110
+ * BLS points can be converted to hex using {@link ox#BlsPoint.(toHex:function)}:
1111
+ *
1112
+ * ```ts twoslash
1113
+ * import { Bls, BlsPoint } from 'ox'
1114
+ *
1115
+ * const publicKey = Bls.getPublicKey({ privateKey: '0x...' })
1116
+ * const publicKeyHex = BlsPoint.toHex(publicKey)
1117
+ * // @log: '0xacafff52270773ad1728df2807c0f1b0b271fa6b37dfb8b2f75448573c76c81bcd6790328a60e40ef5a13343b32d9e66'
1118
+ *
1119
+ * const signature = Bls.sign({
1120
+ * payload: '0xdeadbeef',
1121
+ * privateKey: '0x...'
1122
+ * })
1123
+ * const signatureHex = BlsPoint.toHex(signature)
1124
+ * // @log: '0xb4698f7611999fba87033b9cf72312c76c683bbc48175e2d4cb275907d6a267ab9840a66e3051e5ed36fd13aa712f9a9024f9fa9b67f716dfb74ae4efb7d9f1b7b43b4679abed6644cf476c12e79f309351ea8452487cd93f66e29e04ebe427c'
1125
+ * ```
1126
+ *
1127
+ * @example
1128
+ * ### Hex to Public Keys or Signatures
1129
+ *
1130
+ * BLS points can be converted from hex using {@link ox#BlsPoint.(fromHex:function)}:
1131
+ *
1132
+ * ```ts twoslash
1133
+ * import { Bls, BlsPoint } from 'ox'
1134
+ *
1135
+ * const publicKey = BlsPoint.fromHex(
1136
+ * '0xacafff52270773ad1728df2807c0f1b0b271fa6b37dfb8b2f75448573c76c81bcd6790328a60e40ef5a13343b32d9e66',
1137
+ * 'G1'
1138
+ * )
1139
+ * // @log: { x: 172...514n, y: 175...235n, z: 1n }
1140
+ *
1141
+ * const signature = BlsPoint.fromHex(
1142
+ * '0xb4698f7611999fba87033b9cf72312c76c683bbc48175e2d4cb275907d6a267ab9840a66e3051e5ed36fd13aa712f9a9024f9fa9b67f716dfb74ae4efb7d9f1b7b43b4679abed6644cf476c12e79f309351ea8452487cd93f66e29e04ebe427c',
1143
+ * 'G2'
1144
+ * )
1145
+ * // @log: { x: 1251...5152n, y: 1251...5152n, z: 1n }
1146
+ * ```
1147
+ *
1148
+ * @category Crypto
1149
+ */
1150
+ export * as BlsPoint from './core/BlsPoint.js';
1151
+ /**
1152
+ * A set of Ethereum-related utility functions for working with [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instances.
1153
+ *
1154
+ * @example
1155
+ * ### Instantiating Bytes
1156
+ *
1157
+ * Values can be instantiated as {@link ox#Bytes.Bytes} using:
1158
+ *
1159
+ * - {@link ox#Bytes.(fromArray:function)}
1160
+ *
1161
+ * - {@link ox#Bytes.(fromBoolean:function)}
1162
+ *
1163
+ * - {@link ox#Bytes.(fromHex:function)}
1164
+ *
1165
+ * - {@link ox#Bytes.(fromNumber:function)}
1166
+ *
1167
+ * - {@link ox#Bytes.(fromString:function)}
1168
+ *
1169
+ * ```ts twoslash
1170
+ * import { Bytes } from 'ox'
1171
+ *
1172
+ * const value_array = Bytes.from([1, 2, 3, 4, 5])
1173
+ * // @log: Uint8Array [1, 2, 3, 4, 5]
1174
+ *
1175
+ * const value_boolean = Bytes.fromBoolean(true)
1176
+ * // @log: Uint8Array [1]
1177
+ *
1178
+ * const value_hex = Bytes.fromHex('0x1234567890abcdef')
1179
+ * // @log: Uint8Array [18, 52, 86, 120, 144, 175, 207, 15]
1180
+ *
1181
+ * const value_number = Bytes.fromNumber(1234567890)
1182
+ * // @log: Uint8Array [4, 160, 216]
1183
+ *
1184
+ * const value_string = Bytes.fromString('Hello World!')
1185
+ * // @log: Uint8Array [72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]
1186
+ * ```
1187
+ *
1188
+ * @example
1189
+ * ### Converting from Bytes
1190
+ *
1191
+ * Values can be converted from {@link ox#Bytes.Bytes} using:
1192
+ *
1193
+ * - {@link ox#Bytes.(toBigInt:function)}
1194
+ *
1195
+ * - {@link ox#Bytes.(toBoolean:function)}
1196
+ *
1197
+ * - {@link ox#Bytes.(toHex:function)}
1198
+ *
1199
+ * - {@link ox#Bytes.(toNumber:function)}
1200
+ *
1201
+ * - {@link ox#Bytes.(toString:function)}
1202
+ *
1203
+ * ```ts twoslash
1204
+ * import { Bytes } from 'ox'
1205
+ *
1206
+ * const value_bigint = Bytes.toBigInt(
1207
+ * Bytes.from([4, 160, 216])
1208
+ * )
1209
+ * // @log: 1234567890n
1210
+ *
1211
+ * const value_boolean = Bytes.toBoolean(Bytes.from([1]))
1212
+ * // @log: true
1213
+ *
1214
+ * const value_hex = Bytes.toHex(
1215
+ * Bytes.from([222, 173, 190, 239])
1216
+ * )
1217
+ * // @log: '0xdeadbeef'
1218
+ *
1219
+ * const value_number = Bytes.toNumber(
1220
+ * Bytes.from([4, 160, 216])
1221
+ * )
1222
+ * // @log: 1234567890
1223
+ *
1224
+ * const value_string = Bytes.toString(
1225
+ * Bytes.from([
1226
+ * 72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33
1227
+ * ])
1228
+ * )
1229
+ * // @log: 'Hello World!'
1230
+ * ```
1231
+ *
1232
+ * @example
1233
+ * ### Concatenating Bytes
1234
+ *
1235
+ * Values can be concatenated using {@link ox#Bytes.(concat:function)}:
1236
+ *
1237
+ * ```ts twoslash
1238
+ * import { Bytes } from 'ox'
1239
+ *
1240
+ * const a = Bytes.from([1, 2, 3])
1241
+ * const b = Bytes.from([4, 5, 6])
1242
+ * const c = Bytes.concat(a, b)
1243
+ * // @log: Uint8Array [1, 2, 3, 4, 5, 6]
1244
+ * ```
1245
+ *
1246
+ * @example
1247
+ * ### Slicing Bytes
1248
+ *
1249
+ * Values can be sliced using {@link ox#Bytes.(slice:function)}:
1250
+ *
1251
+ * ```ts twoslash
1252
+ * import { Bytes } from 'ox'
1253
+ *
1254
+ * const value = Bytes.slice(
1255
+ * Bytes.from([1, 2, 3, 4, 5, 6]),
1256
+ * 2,
1257
+ * 4
1258
+ * )
1259
+ * // @log: Uint8Array [3, 4]
1260
+ * ```
1261
+ *
1262
+ * @example
1263
+ * ### Padding Bytes
1264
+ *
1265
+ * Values can be padded with zeroes using {@link ox#Bytes.(padLeft:function)} or {@link ox#Bytes.(padRight:function)}:
1266
+ *
1267
+ * ```ts twoslash
1268
+ * import { Bytes } from 'ox'
1269
+ *
1270
+ * const value_1 = Bytes.padLeft(Bytes.from([1, 2, 3]), 5)
1271
+ * // @log: Uint8Array [0, 0, 1, 2, 3]
1272
+ *
1273
+ * const value_2 = Bytes.padRight(Bytes.from([1, 2, 3]), 5)
1274
+ * // @log: Uint8Array [1, 2, 3, 0, 0]
1275
+ * ```
1276
+ *
1277
+ * @example
1278
+ * ### Trimming Bytes
1279
+ *
1280
+ * Zeroes in values can be trimmed using {@link ox#Bytes.(trimLeft:function)} or {@link ox#Bytes.(trimRight:function)}:
1281
+ *
1282
+ * ```ts twoslash
1283
+ * import { Bytes } from 'ox'
1284
+ *
1285
+ * const value = Bytes.trimLeft(Bytes.from([0, 0, 1, 2, 3]))
1286
+ * // @log: Uint8Array [1, 2, 3]
1287
+ * ```
1288
+ *
1289
+ * @category Data
1290
+ */
1291
+ export * as Bytes from './core/Bytes.js';
1292
+ export * as Caches from './core/Caches.js';
1293
+ /**
1294
+ * Functions for encoding and decoding CBOR (Concise Binary Object Representation) data.
1295
+ *
1296
+ * CBOR is a binary data format designed for compact data representation and efficient parsing.
1297
+ * It supports all JSON data types plus additional types like byte strings, tags, and simple values.
1298
+ *
1299
+ * @example
1300
+ * ### Encoding Values to CBOR
1301
+ *
1302
+ * Values can be encoded to CBOR using {@link ox#Cbor.(encode:function)}:
1303
+ *
1304
+ * ```ts twoslash
1305
+ * import { Cbor } from 'ox'
1306
+ *
1307
+ * Cbor.encode({ foo: 'bar', baz: [1, 2, 3] })
1308
+ * // @log: '0xa263666f6f636261726362617a83010203'
1309
+ * ```
1310
+ *
1311
+ * ### Decoding CBOR to Values
1312
+ *
1313
+ * Values can be decoded from CBOR using {@link ox#Cbor.(decode:function)}:
1314
+ *
1315
+ * ```ts twoslash
1316
+ * import { Cbor } from 'ox'
1317
+ *
1318
+ * Cbor.decode('0xa263666f6f636261726362617a83010203')
1319
+ * // @log: { foo: 'bar', baz: [1, 2, 3] }
1320
+ * ```
1321
+ *
1322
+ * @category Data
1323
+ */
1324
+ export * as Cbor from './core/Cbor.js';
1325
+ /**
1326
+ * Utility functions for [Bitcoin's CompactSize](https://en.bitcoin.it/wiki/Protocol_documentation#Variable_length_integer) variable-length integer encoding.
1327
+ *
1328
+ * @example
1329
+ * ### Encoding
1330
+ *
1331
+ * ```ts twoslash
1332
+ * import { CompactSize } from 'ox'
1333
+ *
1334
+ * const bytes = CompactSize.toBytes(65535)
1335
+ * ```
1336
+ *
1337
+ * @example
1338
+ * ### Decoding
1339
+ *
1340
+ * ```ts twoslash
1341
+ * import { CompactSize } from 'ox'
1342
+ *
1343
+ * const { value, size } = CompactSize.fromBytes(
1344
+ * new Uint8Array([0xfd, 0xff, 0xff])
1345
+ * )
1346
+ * ```
1347
+ *
1348
+ * @category Data
1349
+ */
1350
+ export * as CompactSize from './core/CompactSize.js';
1351
+ /**
1352
+ * Utility functions for computing Contract Addresses.
1353
+ *
1354
+ * @example
1355
+ * ### Computing Contract Addresses (CREATE)
1356
+ *
1357
+ * A Contract Address that was instantiated using the `CREATE` opcode can be computed using {@link ox#ContractAddress.(fromCreate:function)}:
1358
+ *
1359
+ * ```ts twoslash
1360
+ * import { ContractAddress } from 'ox'
1361
+ *
1362
+ * ContractAddress.fromCreate({
1363
+ * from: '0x1a1e021a302c237453d3d45c7b82b19ceeb7e2e6',
1364
+ * nonce: 0n
1365
+ * })
1366
+ * // @log: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2'
1367
+ * ```
1368
+ *
1369
+ * @example
1370
+ * ### Computing Contract Addresses (CREATE2)
1371
+ *
1372
+ * A Contract Address that was instantiated using the `CREATE2` opcode can be computed using {@link ox#ContractAddress.(fromCreate2:function)}:
1373
+ *
1374
+ * ```ts twoslash
1375
+ * import { Bytes, ContractAddress, Hex } from 'ox'
1376
+ *
1377
+ * ContractAddress.fromCreate2({
1378
+ * from: '0x1a1e021a302c237453d3d45c7b82b19ceeb7e2e6',
1379
+ * bytecode: Bytes.from(
1380
+ * '0x6394198df16000526103ff60206004601c335afa6040516060f3'
1381
+ * ),
1382
+ * salt: Hex.fromString('hello world')
1383
+ * })
1384
+ * // @log: '0x59fbB593ABe27Cb193b6ee5C5DC7bbde312290aB'
1385
+ * ```
1386
+ *
1387
+ * @category Addresses
1388
+ */
1389
+ export * as ContractAddress from './core/ContractAddress.js';
1390
+ /**
1391
+ * Utility functions for converting between COSE_Key and P256 public keys.
1392
+ *
1393
+ * COSE_Key is the key format used in WebAuthn attestation objects, as defined in
1394
+ * [RFC 9053](https://datatracker.ietf.org/doc/html/rfc9053).
1395
+ *
1396
+ * @example
1397
+ * ### Encoding a Public Key to COSE_Key
1398
+ *
1399
+ * ```ts twoslash
1400
+ * import { CoseKey, P256 } from 'ox'
1401
+ *
1402
+ * const { publicKey } = P256.createKeyPair()
1403
+ *
1404
+ * const coseKey = CoseKey.fromPublicKey(publicKey)
1405
+ * ```
1406
+ *
1407
+ * @example
1408
+ * ### Decoding a COSE_Key to Public Key
1409
+ *
1410
+ * ```ts twoslash
1411
+ * import { CoseKey, P256 } from 'ox'
1412
+ *
1413
+ * const { publicKey } = P256.createKeyPair()
1414
+ * const coseKey = CoseKey.fromPublicKey(publicKey)
1415
+ *
1416
+ * const publicKey2 = CoseKey.toPublicKey(coseKey)
1417
+ * ```
1418
+ *
1419
+ * @category Crypto
1420
+ */
1421
+ export * as CoseKey from './core/CoseKey.js';
1422
+ /**
1423
+ * Utilities for working with Ed25519 signatures and key pairs.
1424
+ *
1425
+ * Ed25519 is a modern elliptic curve signature scheme that provides strong security
1426
+ * guarantees and high performance. It is widely used in various cryptographic applications.
1427
+ *
1428
+ * @example
1429
+ * ### Creating Key Pairs
1430
+ *
1431
+ * ```ts twoslash
1432
+ * import { Ed25519 } from 'ox'
1433
+ *
1434
+ * const { privateKey, publicKey } = Ed25519.createKeyPair()
1435
+ * ```
1436
+ *
1437
+ * @example
1438
+ * ### Signing & Verifying
1439
+ *
1440
+ * ```ts twoslash
1441
+ * import { Ed25519 } from 'ox'
1442
+ *
1443
+ * const { privateKey, publicKey } = Ed25519.createKeyPair()
1444
+ * const payload = '0xdeadbeef'
1445
+ *
1446
+ * const signature = Ed25519.sign({ payload, privateKey })
1447
+ * const isValid = Ed25519.verify({
1448
+ * payload,
1449
+ * publicKey,
1450
+ * signature
1451
+ * })
1452
+ * ```
1453
+ *
1454
+ * @category Crypto
1455
+ */
1456
+ export * as Ed25519 from './core/Ed25519.js';
1457
+ /**
1458
+ * Utility functions for working with ENS names.
1459
+ *
1460
+ * @example
1461
+ * ### Normalizing ENS Names
1462
+ *
1463
+ * ENS names can be normalized using {@link ox#Ens.(normalize:function)}:
1464
+ *
1465
+ * ```ts twoslash
1466
+ * import { Ens } from 'ox'
1467
+ *
1468
+ * const name = Ens.normalize('w𝝣vm.eth')
1469
+ * // @log: 'wξvm.eth'
1470
+ * ```
1471
+ *
1472
+ * @example
1473
+ * ### Namehashing ENS Names
1474
+ *
1475
+ * ENS names can be namehashed using {@link ox#Ens.(namehash:function)}:
1476
+ *
1477
+ * ```ts twoslash
1478
+ * import { Ens } from 'ox'
1479
+ *
1480
+ * const name = Ens.namehash('alice.eth')
1481
+ * // @log: '0x787192fc5378cc32aa956ddfdedbf26b24e8d78e40109add0eea2c1a012c3dec'
1482
+ * ```
1483
+ *
1484
+ * @category ENS
1485
+ */
1486
+ export * as Ens from './core/Ens.js';
1487
+ export * as Errors from './core/Errors.js';
1488
+ /**
1489
+ * Utility types for working with Ethereum transaction fees and fee history.
1490
+ *
1491
+ * @category Execution Spec
1492
+ */
1493
+ export * as Fee from './core/Fee.js';
1494
+ /**
1495
+ * Utilities & types for working with Filters as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/filter.yaml)
1496
+ *
1497
+ * @category Execution Spec
1498
+ */
1499
+ export * as Filter from './core/Filter.js';
1500
+ /**
1501
+ * Utility functions for hashing (keccak256, sha256, etc).
1502
+ *
1503
+ * @example
1504
+ * ```ts twoslash
1505
+ * import { Hash } from 'ox'
1506
+ *
1507
+ * const value = Hash.keccak256('0xdeadbeef')
1508
+ * // '0xd4fd4e189132273036449fc9e11198c739161b4c0116a9a2dccdfa1c492006f1'
1509
+ * ```
1510
+ *
1511
+ * @category Crypto
1512
+ */
1513
+ export * as Hash from './core/Hash.js';
1514
+ /**
1515
+ * Utility functions for generating and working with [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) HD Wallets.
1516
+ *
1517
+ * :::info
1518
+ *
1519
+ * The `HdKey` module is a friendly wrapper over [`@scure/bip32`](https://github.com/paulmillr/scure-bip32), an **audited** implementation of [BIP-32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki) HD Wallets.
1520
+ *
1521
+ * :::
1522
+ *
1523
+ *
1524
+ * @category Crypto
1525
+ */
1526
+ export * as HdKey from './core/HdKey.js';
1527
+ /**
1528
+ * A set of Ethereum-related utility functions for working with hexadecimal string values (e.g. `"0xdeadbeef"`).
1529
+ *
1530
+ * @example
1531
+ * ### Instantiating Hex
1532
+ *
1533
+ * Values can be instantiated as {@link ox#Hex.Hex} using:
1534
+ *
1535
+ * - {@link ox#Hex.(fromBoolean:function)}
1536
+ *
1537
+ * - {@link ox#Hex.(fromBytes:function)}
1538
+ *
1539
+ * - {@link ox#Hex.(fromNumber:function)}
1540
+ *
1541
+ * - {@link ox#Hex.(fromString:function)}
1542
+ *
1543
+ * ```ts twoslash
1544
+ * import { Bytes, Hex } from 'ox'
1545
+ *
1546
+ * const value_boolean = Hex.fromBoolean(true)
1547
+ * // @log: '0x1'
1548
+ *
1549
+ * const value_bytes = Hex.fromBytes(Bytes.from([1, 2, 3]))
1550
+ * // @log: '0x010203'
1551
+ *
1552
+ * const value_number = Hex.fromNumber(1234567890)
1553
+ * // @log: '0x499602d2'
1554
+ *
1555
+ * const value_string = Hex.fromString('Hello World!')
1556
+ * // @log: '0x48656c6c6f20576f726c6421'
1557
+ * ```
1558
+ *
1559
+ * @example
1560
+ * ### Converting from Hex
1561
+ *
1562
+ * Values can be converted from {@link ox#Hex.Hex} using:
1563
+ *
1564
+ * - {@link ox#Hex.(toBoolean:function)}
1565
+ *
1566
+ * - {@link ox#Hex.(toBytes:function)}
1567
+ *
1568
+ * - {@link ox#Hex.(toNumber:function)}
1569
+ *
1570
+ * - {@link ox#Hex.(toString:function)}
1571
+ *
1572
+ * ```ts twoslash
1573
+ * import { Hex } from 'ox'
1574
+ *
1575
+ * const value_boolean = Hex.toBoolean('0x1')
1576
+ * // @log: true
1577
+ *
1578
+ * const value_bytes = Hex.toBytes('0x010203')
1579
+ * // @log: Uint8Array [1, 2, 3]
1580
+ *
1581
+ * const value_number = Hex.toNumber('0x499602d2')
1582
+ * // @log: 1234567890
1583
+ *
1584
+ * const value_string = Hex.toString(
1585
+ * '0x48656c6c6f20576f726c6421'
1586
+ * )
1587
+ * // @log: 'Hello World!'
1588
+ * ```
1589
+ *
1590
+ * @example
1591
+ * ### Concatenating Hex
1592
+ *
1593
+ * Hex values can be concatenated using {@link ox#Hex.(concat:function)}:
1594
+ *
1595
+ * ```ts twoslash
1596
+ * import { Hex } from 'ox'
1597
+ *
1598
+ * const a = Hex.fromString('0x1234567890abcdef')
1599
+ * const b = Hex.fromString('0xdeadbeef')
1600
+ * const c = Hex.concat(a, b)
1601
+ * // @log: '0x1234567890abcdefdeadbeef'
1602
+ * ```
1603
+ *
1604
+ * @example
1605
+ * ### Slicing Hex
1606
+ *
1607
+ * Hex values can be sliced using {@link ox#Hex.(slice:function)}:
1608
+ *
1609
+ * ```ts twoslash
1610
+ * import { Hex } from 'ox'
1611
+ *
1612
+ * const value = Hex.slice('0x1234567890abcdefdeadbeef', 2, 8)
1613
+ * // @log: '0x34567890'
1614
+ * ```
1615
+ *
1616
+ * @example
1617
+ * ### Padding Hex
1618
+ *
1619
+ * Hex values can be padded with zeroes using {@link ox#Hex.(padLeft:function)} or {@link ox#Hex.(padRight:function)}:
1620
+ *
1621
+ * ```ts twoslash
1622
+ * import { Hex } from 'ox'
1623
+ *
1624
+ * const value = Hex.padLeft('0x1234567890abcdef', 16)
1625
+ * // @log: '0x00000000000000001234567890abcdef'
1626
+ * ```
1627
+ *
1628
+ * @example
1629
+ * ### Trimming Hex
1630
+ *
1631
+ * Hex values can be trimmed of zeroes using {@link ox#Hex.(trimLeft:function)} or {@link ox#Hex.(trimRight:function)}:
1632
+ *
1633
+ * ```ts twoslash
1634
+ * import { Hex } from 'ox'
1635
+ *
1636
+ * const value = Hex.trimLeft(
1637
+ * '0x00000000000000001234567890abcdef'
1638
+ * )
1639
+ * // @log: '0x1234567890abcdef'
1640
+ * ```
1641
+ *
1642
+ * @category Data
1643
+ */
1644
+ export * as Hex from './core/Hex.js';
1645
+ /**
1646
+ * Utility functions for working with JSON (with support for `bigint`).
1647
+ *
1648
+ * @example
1649
+ * ### Stringifying JSON
1650
+ *
1651
+ * JSON values can be stringified (with `bigint` support) using {@link ox#Json.(stringify:function)}:
1652
+ *
1653
+ * ```ts twoslash
1654
+ * import { Json } from 'ox'
1655
+ *
1656
+ * const json = Json.stringify({
1657
+ * foo: 'bar',
1658
+ * baz: 69420694206942069420694206942069420694206942069420n
1659
+ * })
1660
+ * // @log: '{"foo":"bar","baz":69420694206942069420694206942069420694206942069420}'
1661
+ * ```
1662
+ *
1663
+ * @example
1664
+ * ### Parsing JSON
1665
+ *
1666
+ * JSON values can be parsed (with `bigint` support) using {@link ox#Json.(parse:function)}:
1667
+ *
1668
+ * ```ts twoslash
1669
+ * import { Json } from 'ox'
1670
+ *
1671
+ * const value = Json.parse(
1672
+ * '{"foo":"bar","baz":69420694206942069420694206942069420694206942069420}'
1673
+ * )
1674
+ * // @log: { foo: 'bar', baz: 69420694206942069420694206942069420694206942069420n }
1675
+ * ```
1676
+ *
1677
+ * @category JSON
1678
+ */
1679
+ export * as Json from './core/Json.js';
1680
+ /**
1681
+ * Utilities & types for working with [Keystores](https://ethereum.org/en/developers/docs/data-structures-and-encoding/web3-secret-storage).
1682
+ *
1683
+ * @example
1684
+ * ### Encrypting Private Keys
1685
+ *
1686
+ * Private keys can be encrypted into a JSON keystore using {@link ox#Keystore.(encrypt:function)}:
1687
+ *
1688
+ * ```ts twoslash
1689
+ * import { Keystore, Secp256k1 } from 'ox'
1690
+ *
1691
+ * // Generate a random private key.
1692
+ * const privateKey = Secp256k1.randomPrivateKey()
1693
+ *
1694
+ * // Derive a key from a password.
1695
+ * const [key, opts] = Keystore.pbkdf2({
1696
+ * password: 'testpassword'
1697
+ * })
1698
+ *
1699
+ * // Encrypt the private key.
1700
+ * const keystore = Keystore.encrypt(privateKey, key, opts)
1701
+ * // @log: {
1702
+ * // @log: "crypto": {
1703
+ * // @log: "cipher": "aes-128-ctr",
1704
+ * // @log: "ciphertext": "...",
1705
+ * // @log: "cipherparams": {
1706
+ * // @log: "iv": "...",
1707
+ * // @log: },
1708
+ * // @log: "kdf": "pbkdf2",
1709
+ * // @log: "kdfparams": {
1710
+ * // @log: "salt": "...",
1711
+ * // @log: "dklen": 32,
1712
+ * // @log: "prf": "hmac-sha256",
1713
+ * // @log: "c": 262144,
1714
+ * // @log: },
1715
+ * // @log: "mac": "...",
1716
+ * // @log: },
1717
+ * // @log: "id": "...",
1718
+ * // @log: "version": 3,
1719
+ * // @log: }
1720
+ * ```
1721
+ *
1722
+ * @example
1723
+ * ### Decrypting Private Keys
1724
+ *
1725
+ * Private keys can be decrypted from a JSON keystore using {@link ox#Keystore.(decrypt:function)}:
1726
+ *
1727
+ * ```ts twoslash
1728
+ * // @noErrors
1729
+ * import { Keystore, Secp256k1 } from 'ox'
1730
+ *
1731
+ * const keystore = { crypto: { ... }, id: '...', version: 3 }
1732
+ *
1733
+ * // Derive the key.
1734
+ * const key = Keystore.toKey(keystore, { password: 'testpassword' })
1735
+ *
1736
+ * // Decrypt the private key.
1737
+ * const decrypted = Keystore.decrypt(keystore, key)
1738
+ * // @log: "0x..."
1739
+ *
1740
+ * ```
1741
+ *
1742
+ * @category Crypto
1743
+ */
1744
+ export * as Keystore from './core/Keystore.js';
1745
+ /**
1746
+ * Utility functions for working with KZG Commitments.
1747
+ *
1748
+ * Mainly for [EIP-4844](https://eips.ethereum.org/EIPS/eip-4844) Blobs.
1749
+ *
1750
+ * @category Blobs (EIP-4844)
1751
+ */
1752
+ export * as Kzg from './core/Kzg.js';
1753
+ /**
1754
+ * Utilities & types for working with Logs as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/receipt.yaml)
1755
+ *
1756
+ * :::tip
1757
+ *
1758
+ * Utilities for Log encoding & decoding can be found on the {@link ox#AbiEvent} module.
1759
+ *
1760
+ * :::
1761
+ *
1762
+ * @example
1763
+ * ### Converting from RPC Format
1764
+ *
1765
+ * Logs can be converted from their RPC format using {@link ox#Log.(fromRpc:function)}:
1766
+ *
1767
+ * ```ts twoslash
1768
+ * import 'ox/window'
1769
+ * import { AbiEvent, Hex, Log } from 'ox'
1770
+ *
1771
+ * const transfer = AbiEvent.from(
1772
+ * 'event Transfer(address indexed from, address indexed to, uint256 indexed value)'
1773
+ * )
1774
+ *
1775
+ * const { topics } = AbiEvent.encode(transfer)
1776
+ *
1777
+ * const logs = await window.ethereum!.request({
1778
+ * method: 'eth_getLogs',
1779
+ * params: [
1780
+ * {
1781
+ * address: '0xfba3912ca04dd458c843e2ee08967fc04f3579c2',
1782
+ * fromBlock: Hex.fromNumber(19760235n),
1783
+ * toBlock: Hex.fromNumber(19760240n),
1784
+ * topics
1785
+ * }
1786
+ * ]
1787
+ * })
1788
+ *
1789
+ * const log = Log.fromRpc(logs[0]) // [!code focus]
1790
+ * // @log: {
1791
+ * // @log: address: '0xfba3912ca04dd458c843e2ee08967fc04f3579c2',
1792
+ * // @log: blockHash: '0xabe69134e80a12f6a93d0aa18215b5b86c2fb338bae911790ca374a8716e01a4',
1793
+ * // @log: blockNumber: 19760236n,
1794
+ * // @log: data: '0x',
1795
+ * // @log: logIndex: 271,
1796
+ * // @log: removed: false,
1797
+ * // @log: topics: [
1798
+ * // @log: "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
1799
+ * // @log: "0x0000000000000000000000000000000000000000000000000000000000000000",
1800
+ * // @log: "0x0000000000000000000000000c04d9e9278ec5e4d424476d3ebec70cb5d648d1",
1801
+ * // @log: "0x000000000000000000000000000000000000000000000000000000000000025b",
1802
+ * // @log: transactionHash:
1803
+ * // @log: '0xcfa52db0bc2cb5bdcb2c5bd8816df7a2f018a0e3964ab1ef4d794cf327966e93',
1804
+ * // @log: transactionIndex: 145,
1805
+ * // @log: }
1806
+ * ```
1807
+ *
1808
+ * @category Execution Spec
1809
+ */
1810
+ export * as Log from './core/Log.js';
1811
+ /**
1812
+ * Utility functions for generating and working with [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki) mnemonics.
1813
+ *
1814
+ * :::info
1815
+ *
1816
+ * The `Mnemonic` module is a friendly wrapper over [`@scure/bip39`](https://github.com/paulmillr/scure-bip39), an **audited** implementation of [BIP-39](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)
1817
+ *
1818
+ * :::
1819
+ *
1820
+ * @example
1821
+ * ### Generating a Random Mnemonic
1822
+ *
1823
+ * Random mnemonics can be generated using {@link ox#Mnemonic.(random:function)}:
1824
+ *
1825
+ * ```ts twoslash
1826
+ * import { Mnemonic } from 'ox'
1827
+ *
1828
+ * const mnemonic = Mnemonic.random(Mnemonic.english)
1829
+ * // @log: 'buyer zoo end danger ice capable shrug naive twist relief mass bonus'
1830
+ * ```
1831
+ *
1832
+ * @example
1833
+ * ### Converting to Private Key
1834
+ *
1835
+ * Mnemonics can be converted to a private key using {@link ox#Mnemonic.(toPrivateKey:function)}:
1836
+ *
1837
+ * ```ts twoslash
1838
+ * import { Mnemonic } from 'ox'
1839
+ *
1840
+ * const privateKey = Mnemonic.toPrivateKey(
1841
+ * 'buyer zoo end danger ice capable shrug naive twist relief mass bonus'
1842
+ * )
1843
+ * // @log: '0x...'
1844
+ * ```
1845
+ *
1846
+ * @example
1847
+ * ### Converting to HD Key
1848
+ *
1849
+ * Mnemonics can be converted to a HD Key using {@link ox#Mnemonic.(toHdKey:function)}:
1850
+ *
1851
+ * ```ts twoslash
1852
+ * import { Mnemonic } from 'ox'
1853
+ *
1854
+ * const hdKey = Mnemonic.toHdKey(
1855
+ * 'buyer zoo end danger ice capable shrug naive twist relief mass bonus'
1856
+ * )
1857
+ * ```
1858
+ *
1859
+ * @example
1860
+ * ### Converting to Seed
1861
+ *
1862
+ * Mnemonics can be converted to a master seed using {@link ox#Mnemonic.(toSeed:function)}:
1863
+ *
1864
+ * ```ts twoslash
1865
+ * import { Mnemonic } from 'ox'
1866
+ *
1867
+ * const mnemonic =
1868
+ * 'buyer zoo end danger ice capable shrug naive twist relief mass bonus'
1869
+ * const seed = Mnemonic.toSeed(mnemonic)
1870
+ * // @log: Uint8Array [...64 bytes]
1871
+ * ```
1872
+ *
1873
+ * @category Crypto
1874
+ */
1875
+ export * as Mnemonic from './core/Mnemonic.js';
1876
+ /**
1877
+ * Utility functions for [NIST P256](https://csrc.nist.gov/csrc/media/events/workshop-on-elliptic-curve-cryptography-standards/documents/papers/session6-adalier-mehmet.pdf) ECDSA cryptography.
1878
+ *
1879
+ * :::info
1880
+ *
1881
+ * The `P256` module is a friendly wrapper over [`@noble/curves/p256`](https://github.com/paulmillr/noble-curves), an **audited** implementation of [P256](https://www.secg.org/sec2-v2.pdf)
1882
+ *
1883
+ * :::
1884
+ *
1885
+ * @example
1886
+ * ### Computing a Random Private Key
1887
+ *
1888
+ * A random private key can be computed using {@link ox#P256.(randomPrivateKey:function)}:
1889
+ *
1890
+ * ```ts twoslash
1891
+ * import { P256 } from 'ox'
1892
+ *
1893
+ * const privateKey = P256.randomPrivateKey()
1894
+ * // @log: '0x...'
1895
+ * ```
1896
+ *
1897
+ * @example
1898
+ * ### Getting a Public Key
1899
+ *
1900
+ * A public key can be derived from a private key using {@link ox#P256.(getPublicKey:function)}:
1901
+ *
1902
+ * ```ts twoslash
1903
+ * import { P256 } from 'ox'
1904
+ *
1905
+ * const privateKey = P256.randomPrivateKey()
1906
+ *
1907
+ * const publicKey = P256.getPublicKey({ privateKey }) // [!code focus]
1908
+ * // @log: { x: 3251...5152n, y: 1251...5152n }
1909
+ * ```
1910
+ *
1911
+ * @example
1912
+ * ### Signing a Payload
1913
+ *
1914
+ * A payload can be signed using {@link ox#P256.(sign:function)}:
1915
+ *
1916
+ * ```ts twoslash
1917
+ * import { P256 } from 'ox'
1918
+ *
1919
+ * const privateKey = P256.randomPrivateKey()
1920
+ *
1921
+ * const signature = P256.sign({
1922
+ * payload: '0xdeadbeef',
1923
+ * privateKey
1924
+ * }) // [!code focus]
1925
+ * // @log: { r: 1251...5152n, s: 1251...5152n, yParity: 1 }
1926
+ * ```
1927
+ *
1928
+ * @example
1929
+ * ### Verifying a Signature
1930
+ *
1931
+ * A signature can be verified using {@link ox#P256.(verify:function)}:
1932
+ *
1933
+ * ```ts twoslash
1934
+ * import { P256 } from 'ox'
1935
+ *
1936
+ * const privateKey = P256.randomPrivateKey()
1937
+ * const publicKey = P256.getPublicKey({ privateKey })
1938
+ * const signature = P256.sign({
1939
+ * payload: '0xdeadbeef',
1940
+ * privateKey
1941
+ * })
1942
+ *
1943
+ * const isValid = P256.verify({
1944
+ * // [!code focus]
1945
+ * payload: '0xdeadbeef', // [!code focus]
1946
+ * publicKey, // [!code focus]
1947
+ * signature // [!code focus]
1948
+ * }) // [!code focus]
1949
+ * // @log: true
1950
+ * ```
1951
+ *
1952
+ * @category Crypto
1953
+ */
1954
+ export * as P256 from './core/P256.js';
1955
+ /**
1956
+ * Utilities & types for working with [EIP-191 Personal Messages](https://eips.ethereum.org/EIPS/eip-191#version-0x45-e)
1957
+ *
1958
+ * @example
1959
+ * ### Computing Sign Payload
1960
+ *
1961
+ * An EIP-191 personal sign payload can be computed using {@link ox#PersonalMessage.(getSignPayload:function)}:
1962
+ *
1963
+ * ```ts twoslash
1964
+ * import { Hex, PersonalMessage, Secp256k1 } from 'ox'
1965
+ *
1966
+ * const payload = PersonalMessage.getSignPayload(
1967
+ * Hex.fromString('hello world')
1968
+ * ) // [!code focus]
1969
+ *
1970
+ * const signature = Secp256k1.sign({
1971
+ * payload,
1972
+ * privateKey: '0x...'
1973
+ * })
1974
+ * ```
1975
+ *
1976
+ * @category Signed & Typed Data
1977
+ */
1978
+ export * as PersonalMessage from './core/PersonalMessage.js';
1979
+ /**
1980
+ * Utilities & types for working with [EIP-1193 Providers](https://eips.ethereum.org/EIPS/eip-1193)
1981
+ *
1982
+ * @example
1983
+ * ### Instantiating External Providers
1984
+ *
1985
+ * External EIP-1193 Providers can be instantiated with {@link ox#Provider.(from:function)}:
1986
+ *
1987
+ * ```ts twoslash
1988
+ * import 'ox/window'
1989
+ * import { Provider } from 'ox'
1990
+ *
1991
+ * const provider = Provider.from(window.ethereum)
1992
+ *
1993
+ * const blockNumber = await provider.request({
1994
+ * method: 'eth_blockNumber'
1995
+ * })
1996
+ * ```
1997
+ *
1998
+ * :::tip
1999
+ *
2000
+ * There are also libraries that distribute EIP-1193 Provider objects that you can use with `Provider.from`:
2001
+ *
2002
+ * - [`@walletconnect/ethereum-provider`](https://www.npmjs.com/package/\@walletconnect/ethereum-provider)
2003
+ *
2004
+ * - [`@coinbase/wallet-sdk`](https://www.npmjs.com/package/\@coinbase/wallet-sdk)
2005
+ *
2006
+ * - [`@metamask/detect-provider`](https://www.npmjs.com/package/\@metamask/detect-provider)
2007
+ *
2008
+ * - [`@safe-global/safe-apps-provider`](https://github.com/safe-global/safe-apps-sdk/tree/main/packages/safe-apps-provider)
2009
+ *
2010
+ * - [`mipd`](https://github.com/wevm/mipd): EIP-6963 Multi Injected Providers
2011
+ *
2012
+ * :::
2013
+ *
2014
+ * @example
2015
+ * ### Instantiating with an RPC Transport
2016
+ *
2017
+ * Ox's {@link ox#RpcTransport} is also EIP-1193 compliant, and can be used to instantiate an EIP-1193 Provider. This means you can use any HTTP RPC endpoint as an EIP-1193 Provider.
2018
+ *
2019
+ * ```ts twoslash
2020
+ * import { Provider, RpcTransport } from 'ox'
2021
+ *
2022
+ * const transport = RpcTransport.fromHttp(
2023
+ * 'https://1.rpc.thirdweb.com'
2024
+ * )
2025
+ * const provider = Provider.from(transport)
2026
+ * ```
2027
+ *
2028
+ * @example
2029
+ * ### Instantiating a Provider with Events
2030
+ *
2031
+ * Event emitters for EIP-1193 Providers can be created using {@link ox#Provider.(createEmitter:function)}:
2032
+ *
2033
+ * Useful for Wallets that distribute an EIP-1193 Provider (e.g. webpage injection via `window.ethereum`).
2034
+ *
2035
+ * ```ts twoslash
2036
+ * // @noErrors
2037
+ * import { Provider, RpcRequest, RpcResponse } from 'ox'
2038
+ *
2039
+ * // 1. Instantiate a Provider Emitter.
2040
+ * const emitter = Provider.createEmitter() // [!code ++]
2041
+ *
2042
+ * const store = RpcRequest.createStore()
2043
+ *
2044
+ * const provider = Provider.from({
2045
+ * // 2. Pass the Emitter to the Provider.
2046
+ * ...emitter, // [!code ++]
2047
+ * async request(args) {
2048
+ * return await fetch('https://1.rpc.thirdweb.com', {
2049
+ * body: JSON.stringify(store.prepare(args)),
2050
+ * method: 'POST',
2051
+ * headers: {
2052
+ * 'Content-Type': 'application/json'
2053
+ * }
2054
+ * })
2055
+ * .then((res) => res.json())
2056
+ * .then(RpcResponse.parse)
2057
+ * }
2058
+ * })
2059
+ *
2060
+ * // 3. Emit Provider Events.
2061
+ * emitter.emit('accountsChanged', ['0x...']) // [!code ++]
2062
+ * ```
2063
+ *
2064
+ * @category Providers (EIP-1193)
2065
+ */
2066
+ export * as Provider from './core/Provider.js';
2067
+ /**
2068
+ * Utility functions for working with ECDSA public keys.
2069
+ *
2070
+ * @example
2071
+ * ### Serializing Public Keys
2072
+ *
2073
+ * Public Keys can be serialized to Hex or Bytes using {@link ox#PublicKey.(toHex:function)}:
2074
+ *
2075
+ * ```ts twoslash
2076
+ * import { PublicKey } from 'ox'
2077
+ *
2078
+ * const publicKey = PublicKey.from({
2079
+ * prefix: 4,
2080
+ * x: '0x8318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed75',
2081
+ * y: '0x3547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5'
2082
+ * })
2083
+ *
2084
+ * const serialized = PublicKey.toHex(publicKey) // [!code focus]
2085
+ * // @log: '0x048318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed753547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5'
2086
+ * ```
2087
+ *
2088
+ * @example
2089
+ * ### Deserializing Public Keys
2090
+ *
2091
+ * Public Keys can be deserialized from Hex or Bytes using {@link ox#PublicKey.(fromHex:function)}:
2092
+ *
2093
+ * ```ts twoslash
2094
+ * import { PublicKey } from 'ox'
2095
+ *
2096
+ * const publicKey = PublicKey.fromHex(
2097
+ * '0x8318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed753547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5'
2098
+ * )
2099
+ * // @log: {
2100
+ * // @log: prefix: 4,
2101
+ * // @log: x: '0x8318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed75',
2102
+ * // @log: y: '0x3547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5',
2103
+ * // @log: }
2104
+ * ```
2105
+ *
2106
+ * @category Crypto
2107
+ */
2108
+ export * as PublicKey from './core/PublicKey.js';
2109
+ /**
2110
+ * Utility functions for encoding and decoding [Recursive Length Prefix](https://ethereum.org/en/developers/docs/data-structures-and-encoding/rlp/) structures.
2111
+ *
2112
+ * @example
2113
+ * ```ts twoslash
2114
+ * import { Hex, Rlp } from 'ox'
2115
+ *
2116
+ * const data = Rlp.fromHex([
2117
+ * Hex.fromString('hello'),
2118
+ * Hex.fromString('world')
2119
+ * ])
2120
+ * // @log: '0xcc8568656c6c6f85776f726c64'
2121
+ *
2122
+ * const values = Rlp.toHex(data)
2123
+ * // @log: [Hex.fromString('hello'), Hex.fromString('world')]
2124
+ * ```
2125
+ *
2126
+ * @category Data
2127
+ */
2128
+ export * as Rlp from './core/Rlp.js';
2129
+ /**
2130
+ * Utility types & functions for working with [JSON-RPC 2.0 Requests](https://www.jsonrpc.org/specification#request_object) and Ethereum JSON-RPC methods as
2131
+ * defined on the [Ethereum API specification](https://github.com/ethereum/execution-apis)
2132
+ *
2133
+ * @example
2134
+ * ### Instantiating a Request Store
2135
+ *
2136
+ * A Request Store can be instantiated using {@link ox#RpcRequest.(createStore:function)}:
2137
+ *
2138
+ * ```ts twoslash
2139
+ * import { RpcRequest } from 'ox'
2140
+ *
2141
+ * const store = RpcRequest.createStore()
2142
+ *
2143
+ * const request_1 = store.prepare({
2144
+ * method: 'eth_blockNumber'
2145
+ * })
2146
+ * // @log: { id: 0, jsonrpc: '2.0', method: 'eth_blockNumber' }
2147
+ *
2148
+ * const request_2 = store.prepare({
2149
+ * method: 'eth_call',
2150
+ * params: [
2151
+ * {
2152
+ * to: '0x0000000000000000000000000000000000000000',
2153
+ * data: '0xdeadbeef'
2154
+ * }
2155
+ * ]
2156
+ * })
2157
+ * // @log: { id: 1, jsonrpc: '2.0', method: 'eth_call', params: [{ to: '0x0000000000000000000000000000000000000000', data: '0xdeadbeef' }] }
2158
+ * ```
2159
+ *
2160
+ * @category JSON-RPC
2161
+ */
2162
+ export * as RpcRequest from './core/RpcRequest.js';
2163
+ /**
2164
+ * Utility types & functions for working with [JSON-RPC 2.0 Responses](https://www.jsonrpc.org/specification#response_object)
2165
+ *
2166
+ * @example
2167
+ * ### Instantiating an RPC Response
2168
+ *
2169
+ * RPC Responses can be instantiated using {@link ox#RpcResponse.(from:function)}:
2170
+ *
2171
+ * ```ts twoslash
2172
+ * import { RpcResponse } from 'ox'
2173
+ *
2174
+ * const response = RpcResponse.from({
2175
+ * id: 0,
2176
+ * jsonrpc: '2.0',
2177
+ * result: '0x69420'
2178
+ * })
2179
+ * ```
2180
+ *
2181
+ * :::note
2182
+ *
2183
+ * Type-safe instantiation from a `request` object is also supported. If a `request` is provided, then the `id` and `jsonrpc` properties will be overridden with the values from the request.
2184
+ *
2185
+ * ```ts twoslash
2186
+ * import { RpcRequest, RpcResponse } from 'ox'
2187
+ *
2188
+ * const request = RpcRequest.from({
2189
+ * id: 0,
2190
+ * method: 'eth_blockNumber'
2191
+ * })
2192
+ *
2193
+ * const response = RpcResponse.from(
2194
+ * { result: '0x69420' },
2195
+ * { request }
2196
+ * )
2197
+ * ```
2198
+ *
2199
+ * :::
2200
+ *
2201
+ * @example
2202
+ * ### Parsing an RPC Response
2203
+ *
2204
+ * RPC Responses can be parsed using {@link ox#RpcResponse.(parse:function)}:
2205
+ *
2206
+ * ```ts twoslash
2207
+ * import { RpcRequest, RpcResponse } from 'ox'
2208
+ *
2209
+ * // 1. Create a request store.
2210
+ * const store = RpcRequest.createStore()
2211
+ *
2212
+ * // 2. Get a request object.
2213
+ * const request = store.prepare({
2214
+ * method: 'eth_getBlockByNumber',
2215
+ * params: ['0x1', false]
2216
+ * })
2217
+ *
2218
+ * // 3. Send the JSON-RPC request via HTTP.
2219
+ * const block = await fetch('https://1.rpc.thirdweb.com', {
2220
+ * body: JSON.stringify(request),
2221
+ * headers: {
2222
+ * 'Content-Type': 'application/json'
2223
+ * },
2224
+ * method: 'POST'
2225
+ * })
2226
+ * .then((response) => response.json())
2227
+ * // 4. Parse the JSON-RPC response into a type-safe result. // [!code focus]
2228
+ * .then((response) =>
2229
+ * RpcResponse.parse(response, { request })
2230
+ * ) // [!code focus]
2231
+ *
2232
+ * block // [!code focus]
2233
+ * // ^?
2234
+ * ```
2235
+ *
2236
+ * @category JSON-RPC
2237
+ */
2238
+ export * as RpcResponse from './core/RpcResponse.js';
2239
+ /**
2240
+ * Utility types for working with Ethereum JSON-RPC namespaces & schemas.
2241
+ *
2242
+ * @category JSON-RPC
2243
+ */
2244
+ export * as RpcSchema from './core/RpcSchema.js';
2245
+ /**
2246
+ * Utility functions for working with JSON-RPC Transports.
2247
+ *
2248
+ * :::note
2249
+ * This is a convenience module distributed for experimenting with network connectivity on Ox.
2250
+ *
2251
+ * Consider using networking functionality from a higher-level library such as [Viem's Transports](https://viem.sh/docs/clients/transports/http)
2252
+ * if you need more features such as: retry logic, WebSockets/IPC, middleware, batch JSON-RPC, etc.
2253
+ * :::
2254
+ *
2255
+ * @example
2256
+ * ### HTTP Instantiation
2257
+ *
2258
+ * ```ts twoslash
2259
+ * import { RpcTransport } from 'ox'
2260
+ *
2261
+ * const transport = RpcTransport.fromHttp(
2262
+ * 'https://1.rpc.thirdweb.com'
2263
+ * )
2264
+ *
2265
+ * const blockNumber = await transport.request({
2266
+ * method: 'eth_blockNumber'
2267
+ * })
2268
+ * // @log: '0x1a2b3c'
2269
+ * ```
2270
+ *
2271
+ * @category JSON-RPC
2272
+ */
2273
+ export * as RpcTransport from './core/RpcTransport.js';
2274
+ /**
2275
+ * Utility functions for [secp256k1](https://www.secg.org/sec2-v2.pdf) ECDSA cryptography.
2276
+ *
2277
+ * :::info
2278
+ *
2279
+ * The `Secp256k1` module is a friendly wrapper over [`@noble/curves/secp256k1`](https://github.com/paulmillr/noble-curves), an **audited** implementation of [secp256k1](https://www.secg.org/sec2-v2.pdf)
2280
+ *
2281
+ * :::
2282
+ *
2283
+ * @example
2284
+ * ### Computing a Random Private Key
2285
+ *
2286
+ * A random private key can be computed using {@link ox#Secp256k1.(randomPrivateKey:function)}:
2287
+ *
2288
+ * ```ts twoslash
2289
+ * import { Secp256k1 } from 'ox'
2290
+ *
2291
+ * const privateKey = Secp256k1.randomPrivateKey()
2292
+ * // @log: '0x...'
2293
+ * ```
2294
+ *
2295
+ * @example
2296
+ * ### Getting a Public Key
2297
+ *
2298
+ * A public key can be derived from a private key using {@link ox#Secp256k1.(getPublicKey:function)}:
2299
+ *
2300
+ * ```ts twoslash
2301
+ * import { Secp256k1 } from 'ox'
2302
+ *
2303
+ * const privateKey = Secp256k1.randomPrivateKey()
2304
+ *
2305
+ * const publicKey = Secp256k1.getPublicKey({ privateKey }) // [!code focus]
2306
+ * // @log: { x: 3251...5152n, y: 1251...5152n }
2307
+ * ```
2308
+ *
2309
+ * @example
2310
+ * ### Signing a Payload
2311
+ *
2312
+ * A payload can be signed using {@link ox#Secp256k1.(sign:function)}:
2313
+ *
2314
+ * ```ts twoslash
2315
+ * import { Secp256k1 } from 'ox'
2316
+ *
2317
+ * const privateKey = Secp256k1.randomPrivateKey()
2318
+ *
2319
+ * const signature = Secp256k1.sign({
2320
+ * payload: '0xdeadbeef',
2321
+ * privateKey
2322
+ * }) // [!code focus]
2323
+ * // @log: { r: 1251...5152n, s: 1251...5152n, yParity: 1 }
2324
+ * ```
2325
+ *
2326
+ * @example
2327
+ * ### Verifying a Signature
2328
+ *
2329
+ * A signature can be verified using {@link ox#Secp256k1.(verify:function)}:
2330
+ *
2331
+ * ```ts twoslash
2332
+ * import { Secp256k1 } from 'ox'
2333
+ *
2334
+ * const privateKey = Secp256k1.randomPrivateKey()
2335
+ * const publicKey = Secp256k1.getPublicKey({ privateKey })
2336
+ * const signature = Secp256k1.sign({
2337
+ * payload: '0xdeadbeef',
2338
+ * privateKey
2339
+ * })
2340
+ *
2341
+ * const isValid = Secp256k1.verify({
2342
+ * // [!code focus]
2343
+ * payload: '0xdeadbeef', // [!code focus]
2344
+ * publicKey, // [!code focus]
2345
+ * signature // [!code focus]
2346
+ * }) // [!code focus]
2347
+ * // @log: true
2348
+ * ```
2349
+ *
2350
+ * @category Crypto
2351
+ */
2352
+ export * as Secp256k1 from './core/Secp256k1.js';
2353
+ /**
2354
+ * Utility functions for working with ECDSA signatures.
2355
+ *
2356
+ * @example
2357
+ * ### Serializing a Signature
2358
+ *
2359
+ * Signatures can be serialized to Hex or Bytes using {@link ox#Signature.(toHex:function)}:
2360
+ *
2361
+ * ```ts twoslash
2362
+ * import { Signature } from 'ox'
2363
+ *
2364
+ * const signature = Signature.toHex({
2365
+ * r: '0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf',
2366
+ * s: '0x4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db8',
2367
+ * yParity: 1
2368
+ * })
2369
+ * // @log: '0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c'
2370
+ * ```
2371
+ *
2372
+ * @example
2373
+ * ### Deserializing a Signature
2374
+ *
2375
+ * Signatures can be deserialized from Hex or Bytes using {@link ox#Signature.(fromHex:function)}:
2376
+ *
2377
+ * ```ts twoslash
2378
+ * import { Signature } from 'ox'
2379
+ *
2380
+ * Signature.fromHex(
2381
+ * '0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c'
2382
+ * )
2383
+ * // @log: { r: 5231...n, s: 3522...n, yParity: 0 }
2384
+ * ```
2385
+ *
2386
+ * @category Crypto
2387
+ */
2388
+ export * as Signature from './core/Signature.js';
2389
+ /**
2390
+ * Utility functions for working with
2391
+ * [EIP-4361: Sign-In with Ethereum](https://eips.ethereum.org/EIPS/eip-4361)
2392
+ *
2393
+ * @example
2394
+ * ### Creating a SIWE Message
2395
+ *
2396
+ * SIWE messages can be created using {@link ox#Siwe.(createMessage:function)}:
2397
+ *
2398
+ * ```ts twoslash
2399
+ * import { Siwe } from 'ox'
2400
+ *
2401
+ * Siwe.createMessage({
2402
+ * address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
2403
+ * chainId: 1n,
2404
+ * domain: 'example.com',
2405
+ * nonce: 'foobarbaz',
2406
+ * uri: 'https://example.com/path',
2407
+ * version: '1'
2408
+ * })
2409
+ * // @log: "example.com wants you to sign in with your Ethereum account:
2410
+ * // @log: 0xA0Cf798816D4b9b9866b5330EEa46a18382f251e
2411
+ * // @log:
2412
+ * // @log:
2413
+ * // @log: URI: https://example.com/path
2414
+ * // @log: Version: 1
2415
+ * // @log: Chain ID: 1
2416
+ * // @log: Nonce: foobarbaz
2417
+ * // @log: Issued At: 2023-02-01T00:00:00.000Z"
2418
+ * ```
2419
+ *
2420
+ * @example
2421
+ * ### Generating SIWE Nonces
2422
+ *
2423
+ * SIWE nonces can be generated using {@link ox#Siwe.(generateNonce:function)}:
2424
+ *
2425
+ * ```ts twoslash
2426
+ * import { Siwe } from 'ox'
2427
+ *
2428
+ * Siwe.generateNonce()
2429
+ * // @log: '65ed4681d4efe0270b923ff5f4b097b1c95974dc33aeebecd5724c42fd86dfd25dc70b27ef836b2aa22e68f19ebcccc1'
2430
+ * ```
2431
+ *
2432
+ * @example
2433
+ * ### Parsing a SIWE Message
2434
+ *
2435
+ * SIWE messages can be parsed using {@link ox#Siwe.(parseMessage:function)}:
2436
+ *
2437
+ * ```ts twoslash
2438
+ * import { Siwe } from 'ox'
2439
+ *
2440
+ * Siwe.parseMessage(`example.com wants you to sign in with your Ethereum account:
2441
+ * 0xA0Cf798816D4b9b9866b5330EEa46a18382f251e
2442
+ *
2443
+ * I accept the ExampleOrg Terms of Service: https://example.com/tos
2444
+ *
2445
+ * URI: https://example.com/path
2446
+ * Version: 1
2447
+ * Chain ID: 1
2448
+ * Nonce: foobarbaz
2449
+ * Issued At: 2023-02-01T00:00:00.000Z`)
2450
+ * // @log: {
2451
+ * // @log: address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
2452
+ * // @log: chainId: 1,
2453
+ * // @log: domain: 'example.com',
2454
+ * // @log: issuedAt: '2023-02-01T00:00:00.000Z',
2455
+ * // @log: nonce: 'foobarbaz',
2456
+ * // @log: statement: 'I accept the ExampleOrg Terms of Service: https://example.com/tos',
2457
+ * // @log: uri: 'https://example.com/path',
2458
+ * // @log: version: '1',
2459
+ * // @log: }
2460
+ * ```
2461
+ *
2462
+ * @example
2463
+ * ### Validating a SIWE Message
2464
+ *
2465
+ * SIWE messages can be validated using {@link ox#Siwe.(validateMessage:function)}:
2466
+ *
2467
+ * ```ts twoslash
2468
+ * import { Siwe } from 'ox'
2469
+ *
2470
+ * Siwe.validateMessage({
2471
+ * address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
2472
+ * domain: 'example.com',
2473
+ * message: {
2474
+ * address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
2475
+ * chainId: 1n,
2476
+ * domain: 'example.com',
2477
+ * nonce: 'foobarbaz',
2478
+ * uri: 'https://example.com/path',
2479
+ * version: '1'
2480
+ * },
2481
+ * nonce: 'foobarbaz'
2482
+ * })
2483
+ * // @log: true
2484
+ * ```
2485
+ *
2486
+ * @category Sign-In with Ethereum (EIP-4361)
2487
+ */
2488
+ export * as Siwe from './core/Siwe.js';
2489
+ export * as Solidity from './core/Solidity.js';
2490
+ /**
2491
+ * Utilities & types for working with **State Overrides**.
2492
+ *
2493
+ * @category Execution Spec
2494
+ */
2495
+ export * as StateOverrides from './core/StateOverrides.js';
2496
+ /**
2497
+ * Utilities & types for working with **Transactions** as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/transaction.yaml)
2498
+ *
2499
+ * @example
2500
+ * ### Converting from RPC Format
2501
+ *
2502
+ * Transactions can be converted from RPC format using {@link ox#Transaction.(fromRpc:function)}:
2503
+ *
2504
+ * ```ts twoslash
2505
+ * import { Transaction } from 'ox'
2506
+ *
2507
+ * const transaction = Transaction.fromRpc({
2508
+ * hash: '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0',
2509
+ * nonce: '0x357',
2510
+ * blockHash:
2511
+ * '0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b',
2512
+ * blockNumber: '0x12f296f',
2513
+ * transactionIndex: '0x2',
2514
+ * from: '0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6',
2515
+ * to: '0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad',
2516
+ * value: '0x9b6e64a8ec60000',
2517
+ * gas: '0x43f5d',
2518
+ * maxFeePerGas: '0x2ca6ae494',
2519
+ * maxPriorityFeePerGas: '0x41cc3c0',
2520
+ * input:
2521
+ * '0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000006643504700000000000000000000000000000000000000000000000000000000000000040b080604000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002800000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000009b6e64a8ec600000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000009b6e64a8ec60000000000000000000000000000000000000000000000000000019124bb5ae978c000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000c56c7a0eaa804f854b536a5f3d5f49d2ec4b12b80000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c56c7a0eaa804f854b536a5f3d5f49d2ec4b12b8000000000000000000000000000000fee13a103a10d593b9ae06b3e05f2e7e1c00000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c56c7a0eaa804f854b536a5f3d5f49d2ec4b12b800000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000190240001b9872b',
2522
+ * r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',
2523
+ * s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',
2524
+ * yParity: '0x0',
2525
+ * chainId: '0x1',
2526
+ * accessList: [],
2527
+ * type: '0x2'
2528
+ * })
2529
+ * ```
2530
+ *
2531
+ * @category Execution Spec
2532
+ */
2533
+ export * as Transaction from './core/Transaction.js';
2534
+ /**
2535
+ * Utilities & types for working with **Transaction Receipts** as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/receipt.yaml)
2536
+ *
2537
+ * @example
2538
+ * ### Converting from RPC Format
2539
+ *
2540
+ * Receipts can be converted from RPC format using {@link ox#TransactionReceipt.(fromRpc:function)}:
2541
+ *
2542
+ * ```ts twoslash
2543
+ * import 'ox/window'
2544
+ * import { TransactionReceipt } from 'ox'
2545
+ *
2546
+ * const receipt = await window
2547
+ * .ethereum!.request({
2548
+ * method: 'eth_getTransactionReceipt',
2549
+ * params: [
2550
+ * '0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0'
2551
+ * ]
2552
+ * })
2553
+ * .then(TransactionReceipt.fromRpc) // [!code hl]
2554
+ * // @log: {
2555
+ * // @log: blobGasPrice: 270441n,
2556
+ * // @log: blobGasUsed: 4919n,
2557
+ * // @log: blockHash: "0xc350d807505fb835650f0013632c5515592987ba169bbc6626d9fc54d91f0f0b",
2558
+ * // @log: blockNumber: 19868015n,
2559
+ * // @log: contractAddress: null,
2560
+ * // @log: cumulativeGasUsed: 533781n,
2561
+ * // @log: effectiveGasPrice: 9062804489n,
2562
+ * // @log: from: "0x814e5e0e31016b9a7f138c76b7e7b2bb5c1ab6a6",
2563
+ * // @log: gasUsed: 175034n,
2564
+ * // @log: logs: [],
2565
+ * // @log: logsBloom: "0x00200000000000000000008080000000000000000040000000000000000000000000000000000000000000000000000022000000080000000000000000000000000000080000000000000008000000200000000000000000000200008020400000000000000000280000000000100000000000000000000000000010000000000000000000020000000000000020000000000001000000080000004000000000000000000000000000000000000000000000400000000000001000000000000000000002000000000000000020000000000000000000001000000000000000000000200000000000000000000000000000001000000000c00000000000000000",
2566
+ * // @log: root: undefined,
2567
+ * // @log: status: "success",
2568
+ * // @log: to: "0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",
2569
+ * // @log: transactionHash: "0x353fdfc38a2f26115daadee9f5b8392ce62b84f410957967e2ed56b35338cdd0",
2570
+ * // @log: transactionIndex: 2,
2571
+ * // @log: type: "eip1559",
2572
+ * // @log: }
2573
+ * ```
2574
+ *
2575
+ * @category Execution Spec
2576
+ */
2577
+ export * as TransactionReceipt from './core/TransactionReceipt.js';
2578
+ /**
2579
+ * Utilities & types for working with **Transaction Requests** as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/4aca1d7a3e5aab24c8f6437131289ad386944eaa/src/schemas/transaction.yaml#L358-L423)
2580
+ *
2581
+ * @example
2582
+ * ```ts twoslash
2583
+ * import 'ox/window'
2584
+ * import { Provider, TransactionRequest, Value } from 'ox'
2585
+ *
2586
+ * const provider = Provider.from(window.ethereum!)
2587
+ *
2588
+ * const request = TransactionRequest.toRpc({
2589
+ * // [!code focus]
2590
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8', // [!code focus]
2591
+ * value: Value.fromEther('0.01') // [!code focus]
2592
+ * }) // [!code focus]
2593
+ *
2594
+ * const hash = await provider.request({
2595
+ * method: 'eth_sendTransaction',
2596
+ * params: [request]
2597
+ * })
2598
+ * ```
2599
+ *
2600
+ * @category Execution Spec
2601
+ */
2602
+ export * as TransactionRequest from './core/TransactionRequest.js';
2603
+ /**
2604
+ * Errors & Types for working with Transaction Envelopes.
2605
+ *
2606
+ * :::note
2607
+ * Refer to the following modules for specific Transaction Envelope types:
2608
+ * - [`TxEnvelopeLegacy`](/api/TxEnvelopeLegacy)
2609
+ * - [`TxEnvelopeEip1559`](/api/TxEnvelopeEip1559)
2610
+ * - [`TxEnvelopeEip2930`](/api/TxEnvelopeEip2930)
2611
+ * - [`TxEnvelopeEip4844`](/api/TxEnvelopeEip4844)
2612
+ * - [`TxEnvelopeEip7702`](/api/TxEnvelopeEip7702)
2613
+ * :::
2614
+ *
2615
+ * @category Transaction Envelopes
2616
+ */
2617
+ export * as TransactionEnvelope from './core/TxEnvelope.js';
2618
+ /**
2619
+ * Utility functions for working with [EIP-1559 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-1559)
2620
+ *
2621
+ * @example
2622
+ * ### Instantiating
2623
+ *
2624
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip1559.(from:function)}:
2625
+ *
2626
+ * ```ts twoslash
2627
+ * import { TxEnvelopeEip1559, Value } from 'ox'
2628
+ *
2629
+ * const envelope = TxEnvelopeEip1559.from({
2630
+ * chainId: 1,
2631
+ * maxFeePerGas: Value.fromGwei('10'),
2632
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
2633
+ * to: '0x0000000000000000000000000000000000000000',
2634
+ * value: Value.fromEther('1')
2635
+ * })
2636
+ * // @log: {
2637
+ * // @log: chainId: 1,
2638
+ * // @log: maxFeePerGas: 10000000000n,
2639
+ * // @log: maxPriorityFeePerGas: 1000000000n,
2640
+ * // @log: to: '0x0000000000000000000000000000000000000000',
2641
+ * // @log: type: 'eip1559',
2642
+ * // @log: value: 1000000000000000000n,
2643
+ * // @log: }
2644
+ * ```
2645
+ *
2646
+ * @example
2647
+ * ### Signing
2648
+ *
2649
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip1559.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2650
+ *
2651
+ * ```ts twoslash
2652
+ * import { Secp256k1, TxEnvelopeEip1559 } from 'ox'
2653
+ *
2654
+ * const envelope = TxEnvelopeEip1559.from({
2655
+ * chainId: 1,
2656
+ * nonce: 0n,
2657
+ * gasPrice: 1000000000n,
2658
+ * gas: 21000n,
2659
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2660
+ * value: 1000000000000000000n
2661
+ * })
2662
+ *
2663
+ * const signature = Secp256k1.sign({
2664
+ * // [!code focus]
2665
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope), // [!code focus]
2666
+ * privateKey: '0x...' // [!code focus]
2667
+ * }) // [!code focus]
2668
+ *
2669
+ * const envelope_signed = TxEnvelopeEip1559.from(envelope, {
2670
+ * signature
2671
+ * })
2672
+ * ```
2673
+ *
2674
+ * @example
2675
+ * ### Serializing
2676
+ *
2677
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip1559.(serialize:function)}:
2678
+ *
2679
+ * ```ts twoslash
2680
+ * import { TxEnvelopeEip1559, Value } from 'ox'
2681
+ *
2682
+ * const envelope = TxEnvelopeEip1559.from({
2683
+ * chainId: 1,
2684
+ * maxFeePerGas: Value.fromGwei('10'),
2685
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
2686
+ * to: '0x0000000000000000000000000000000000000000',
2687
+ * value: Value.fromEther('1')
2688
+ * })
2689
+ *
2690
+ * const serialized = TxEnvelopeEip1559.serialize(envelope) // [!code focus]
2691
+ * ```
2692
+ *
2693
+ * @example
2694
+ * ### Sending
2695
+ *
2696
+ * We can send a Transaction Envelope to the network by serializing the signed envelope with `.serialize`, and then broadcasting it over JSON-RPC with `eth_sendRawTransaction`.
2697
+ *
2698
+ * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
2699
+ *
2700
+ * ```ts twoslash
2701
+ * import {
2702
+ * RpcTransport,
2703
+ * TxEnvelopeEip1559,
2704
+ * Secp256k1,
2705
+ * Value
2706
+ * } from 'ox'
2707
+ *
2708
+ * // Construct the Envelope.
2709
+ * const envelope = TxEnvelopeEip1559.from({
2710
+ * chainId: 1,
2711
+ * maxFeePerGas: Value.fromGwei('10'),
2712
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
2713
+ * nonce: 69n,
2714
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2715
+ * value: Value.fromEther('1.5')
2716
+ * })
2717
+ *
2718
+ * // Sign over the Envelope.
2719
+ * const signature = Secp256k1.sign({
2720
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope),
2721
+ * privateKey: '0x...'
2722
+ * })
2723
+ *
2724
+ * // Serialize the Envelope with the Signature. // [!code focus]
2725
+ * const serialized = TxEnvelopeEip1559.serialize(envelope, {
2726
+ * // [!code focus]
2727
+ * signature // [!code focus]
2728
+ * }) // [!code focus]
2729
+ *
2730
+ * // Broadcast the Envelope with `eth_sendRawTransaction`. // [!code focus]
2731
+ * const transport = RpcTransport.fromHttp(
2732
+ * 'https://1.rpc.thirdweb.com'
2733
+ * ) // [!code focus]
2734
+ * const hash = await transport.request({
2735
+ * // [!code focus]
2736
+ * method: 'eth_sendRawTransaction', // [!code focus]
2737
+ * params: [serialized] // [!code focus]
2738
+ * }) // [!code focus]
2739
+ * ```
2740
+ *
2741
+ * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
2742
+ * {@link ox#TxEnvelopeEip1559.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2743
+ * This means you can skip the ceremony of manually filling & signing the Transaction.
2744
+ *
2745
+ * ```ts twoslash
2746
+ * import 'ox/window'
2747
+ * import { Provider, TxEnvelopeEip1559, Value } from 'ox'
2748
+ *
2749
+ * const envelope = TxEnvelopeEip1559.from({
2750
+ * chainId: 1,
2751
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2752
+ * value: Value.fromEther('1.5')
2753
+ * })
2754
+ *
2755
+ * const envelope_rpc = TxEnvelopeEip1559.toRpc(envelope)
2756
+ *
2757
+ * const provider = Provider.from(window.ethereum)
2758
+ * const hash = await provider.request({
2759
+ * method: 'eth_sendTransaction',
2760
+ * params: [envelope_rpc]
2761
+ * })
2762
+ * ```
2763
+ *
2764
+ * @example
2765
+ * ### Computing Hashes
2766
+ *
2767
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip1559.(hash:function)}:
2768
+ *
2769
+ * ```ts twoslash
2770
+ * import { Secp256k1, TxEnvelopeEip1559, Value } from 'ox'
2771
+ *
2772
+ * const envelope = TxEnvelopeEip1559.from({
2773
+ * chainId: 1,
2774
+ * nonce: 0n,
2775
+ * maxFeePerGas: Value.fromGwei('10'),
2776
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
2777
+ * gas: 21000n,
2778
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2779
+ * value: 1000000000000000000n,
2780
+ * data: '0x'
2781
+ * })
2782
+ *
2783
+ * const signature = Secp256k1.sign({
2784
+ * payload: TxEnvelopeEip1559.getSignPayload(envelope),
2785
+ * privateKey: '0x...'
2786
+ * })
2787
+ *
2788
+ * const envelope_signed = TxEnvelopeEip1559.from(envelope, {
2789
+ * signature
2790
+ * })
2791
+ *
2792
+ * const hash = TxEnvelopeEip1559.hash(envelope_signed) // [!code focus]
2793
+ * ```
2794
+ *
2795
+ * @category Transaction Envelopes
2796
+ */
2797
+ export * as TxEnvelopeEip1559 from './core/TxEnvelopeEip1559.js';
2798
+ /**
2799
+ * Utility functions for working with [EIP-2930 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-2930)
2800
+ *
2801
+ * @example
2802
+ * ### Instantiating
2803
+ *
2804
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip2930.(from:function)}:
2805
+ *
2806
+ * ```ts twoslash
2807
+ * // @noErrors
2808
+ * import { TxEnvelopeEip2930, Value } from 'ox'
2809
+ *
2810
+ * const envelope = TxEnvelopeEip2930.from({
2811
+ * chainId: 1,
2812
+ * accessList: [...],
2813
+ * gasPrice: Value.fromGwei('10'),
2814
+ * to: '0x0000000000000000000000000000000000000000',
2815
+ * value: Value.fromEther('1'),
2816
+ * })
2817
+ * ```
2818
+ *
2819
+ * @example
2820
+ * ### Signing
2821
+ *
2822
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip2930.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
2823
+ *
2824
+ * ```ts twoslash
2825
+ * import { Secp256k1, TxEnvelopeEip2930 } from 'ox'
2826
+ *
2827
+ * const envelope = TxEnvelopeEip2930.from({
2828
+ * chainId: 1,
2829
+ * nonce: 0n,
2830
+ * gasPrice: 1000000000n,
2831
+ * gas: 21000n,
2832
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2833
+ * value: 1000000000000000000n
2834
+ * })
2835
+ *
2836
+ * const payload = TxEnvelopeEip2930.getSignPayload(envelope) // [!code focus]
2837
+ * // @log: '0x...'
2838
+ *
2839
+ * const signature = Secp256k1.sign({
2840
+ * payload,
2841
+ * privateKey: '0x...'
2842
+ * })
2843
+ * ```
2844
+ *
2845
+ * @example
2846
+ * ### Serializing
2847
+ *
2848
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip2930.(serialize:function)}:
2849
+ *
2850
+ * ```ts twoslash
2851
+ * import { Secp256k1, TxEnvelopeEip2930, Value } from 'ox'
2852
+ *
2853
+ * const envelope = TxEnvelopeEip2930.from({
2854
+ * chainId: 1,
2855
+ * nonce: 0n,
2856
+ * gasPrice: 1000000000n,
2857
+ * gas: 21000n,
2858
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2859
+ * value: 1000000000000000000n
2860
+ * })
2861
+ *
2862
+ * const serialized = TxEnvelopeEip2930.serialize(envelope) // [!code focus]
2863
+ * ```
2864
+ *
2865
+ * @example
2866
+ * ### Sending
2867
+ *
2868
+ * We can send a Transaction Envelope to the network by serializing the signed envelope with `.serialize`, and then broadcasting it over JSON-RPC with `eth_sendRawTransaction`.
2869
+ *
2870
+ * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
2871
+ *
2872
+ * ```ts twoslash
2873
+ * import {
2874
+ * RpcTransport,
2875
+ * TxEnvelopeEip2930,
2876
+ * Secp256k1,
2877
+ * Value
2878
+ * } from 'ox'
2879
+ *
2880
+ * // Construct the Envelope.
2881
+ * const envelope = TxEnvelopeEip2930.from({
2882
+ * accessList: [],
2883
+ * chainId: 1,
2884
+ * gasPrice: Value.fromGwei('10'),
2885
+ * nonce: 69n,
2886
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2887
+ * value: Value.fromEther('1.5')
2888
+ * })
2889
+ *
2890
+ * // Sign over the Envelope.
2891
+ * const signature = Secp256k1.sign({
2892
+ * payload: TxEnvelopeEip2930.getSignPayload(envelope),
2893
+ * privateKey: '0x...'
2894
+ * })
2895
+ *
2896
+ * // Serialize the Envelope with the Signature. // [!code focus]
2897
+ * const serialized = TxEnvelopeEip2930.serialize(envelope, {
2898
+ * // [!code focus]
2899
+ * signature // [!code focus]
2900
+ * }) // [!code focus]
2901
+ *
2902
+ * // Broadcast the Envelope with `eth_sendRawTransaction`. // [!code focus]
2903
+ * const transport = RpcTransport.fromHttp(
2904
+ * 'https://1.rpc.thirdweb.com'
2905
+ * ) // [!code focus]
2906
+ * const hash = await transport.request({
2907
+ * // [!code focus]
2908
+ * method: 'eth_sendRawTransaction', // [!code focus]
2909
+ * params: [serialized] // [!code focus]
2910
+ * }) // [!code focus]
2911
+ * ```
2912
+ *
2913
+ * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
2914
+ * {@link ox#TxEnvelopeEip2930.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
2915
+ * This means you can skip the ceremony of manually filling & signing the Transaction.
2916
+ *
2917
+ * ```ts twoslash
2918
+ * import 'ox/window'
2919
+ * import { Provider, TxEnvelopeEip2930, Value } from 'ox'
2920
+ *
2921
+ * const envelope = TxEnvelopeEip2930.from({
2922
+ * accessList: [],
2923
+ * chainId: 1,
2924
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2925
+ * value: Value.fromEther('1.5')
2926
+ * })
2927
+ *
2928
+ * const envelope_rpc = TxEnvelopeEip2930.toRpc(envelope)
2929
+ *
2930
+ * const provider = Provider.from(window.ethereum)
2931
+ * const hash = await provider.request({
2932
+ * method: 'eth_sendTransaction',
2933
+ * params: [envelope_rpc]
2934
+ * })
2935
+ * ```
2936
+ *
2937
+ * @example
2938
+ * ### Computing Hashes
2939
+ *
2940
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip2930.(hash:function)}:
2941
+ *
2942
+ * ```ts twoslash
2943
+ * import { Secp256k1, TxEnvelopeEip2930 } from 'ox'
2944
+ *
2945
+ * const envelope = TxEnvelopeEip2930.from({
2946
+ * chainId: 1,
2947
+ * nonce: 0n,
2948
+ * gasPrice: 1000000000n,
2949
+ * gas: 21000n,
2950
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
2951
+ * value: 1000000000000000000n,
2952
+ * data: '0x'
2953
+ * })
2954
+ *
2955
+ * const signature = Secp256k1.sign({
2956
+ * payload: TxEnvelopeEip2930.getSignPayload(envelope),
2957
+ * privateKey: '0x...'
2958
+ * })
2959
+ *
2960
+ * const envelope_signed = TxEnvelopeEip2930.from(envelope, {
2961
+ * signature
2962
+ * })
2963
+ *
2964
+ * const hash = TxEnvelopeEip2930.hash(envelope_signed) // [!code focus]
2965
+ * ```
2966
+ *
2967
+ * @category Transaction Envelopes
2968
+ */
2969
+ export * as TxEnvelopeEip2930 from './core/TxEnvelopeEip2930.js';
2970
+ /**
2971
+ * Utility functions for working with [EIP-4844 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-4844)
2972
+ *
2973
+ * @example
2974
+ * ### Instantiating Blobs
2975
+ *
2976
+ * Blobs can be instantiated using {@link ox#Blobs.(from:function)}:
2977
+ *
2978
+ * ```ts twoslash
2979
+ * import { Blobs, Hex } from 'ox'
2980
+ *
2981
+ * const blobs = Blobs.from(Hex.fromString('Hello World!'))
2982
+ * ```
2983
+ *
2984
+ * @example
2985
+ * ### Instantiating
2986
+ *
2987
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip4844.(from:function)}:
2988
+ *
2989
+ * ```ts twoslash
2990
+ * // @noErrors
2991
+ * import { Blobs, Hex, TxEnvelopeEip4844, Value } from 'ox'
2992
+ * import { kzg } from './kzg'
2993
+ *
2994
+ * const blobs = Blobs.from(Hex.fromString('Hello World!'))
2995
+ * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, {
2996
+ * kzg
2997
+ * })
2998
+ *
2999
+ * const envelope = TxEnvelopeEip4844.from({
3000
+ * chainId: 1,
3001
+ * blobVersionedHashes,
3002
+ * maxFeePerBlobGas: Value.fromGwei('3'),
3003
+ * maxFeePerGas: Value.fromGwei('10'),
3004
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
3005
+ * to: '0x0000000000000000000000000000000000000000',
3006
+ * value: Value.fromEther('1')
3007
+ * })
3008
+ * ```
3009
+ *
3010
+ * @example
3011
+ * ### Signing
3012
+ *
3013
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip4844.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
3014
+ *
3015
+ * ```ts twoslash
3016
+ * // @noErrors
3017
+ * import { Blobs, Secp256k1, TxEnvelopeEip4844 } from 'ox'
3018
+ * import { kzg } from './kzg'
3019
+ *
3020
+ * const blobs = Blobs.from('0xdeadbeef')
3021
+ * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, {
3022
+ * kzg
3023
+ * })
3024
+ *
3025
+ * const envelope = TxEnvelopeEip4844.from({
3026
+ * blobVersionedHashes,
3027
+ * chainId: 1,
3028
+ * nonce: 0n,
3029
+ * maxFeePerBlobGas: Value.fromGwei('3'),
3030
+ * maxFeePerGas: Value.fromGwei('10'),
3031
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
3032
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3033
+ * value: Value.fromEther('1')
3034
+ * })
3035
+ *
3036
+ * const signature = Secp256k1.sign({
3037
+ * // [!code focus]
3038
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope), // [!code focus]
3039
+ * privateKey: '0x...' // [!code focus]
3040
+ * }) // [!code focus]
3041
+ *
3042
+ * const envelope_signed = TxEnvelopeEip4844.from(envelope, {
3043
+ * signature
3044
+ * })
3045
+ * ```
3046
+ *
3047
+ * @example
3048
+ * ### Serializing
3049
+ *
3050
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeEip4844.(serialize:function)}:
3051
+ *
3052
+ * ```ts twoslash
3053
+ * // @noErrors
3054
+ * import { Blobs, TxEnvelopeEip4844 } from 'ox'
3055
+ * import { kzg } from './kzg'
3056
+ *
3057
+ * const blobs = Blobs.from('0xdeadbeef')
3058
+ * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, {
3059
+ * kzg
3060
+ * })
3061
+ *
3062
+ * const envelope = TxEnvelopeEip4844.from({
3063
+ * blobVersionedHashes,
3064
+ * chainId: 1,
3065
+ * maxFeePerBlobGas: Value.fromGwei('3'),
3066
+ * maxFeePerGas: Value.fromGwei('10'),
3067
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
3068
+ * to: '0x0000000000000000000000000000000000000000',
3069
+ * value: Value.fromEther('1')
3070
+ * })
3071
+ *
3072
+ * const serialized = TxEnvelopeEip4844.serialize(envelope) // [!code focus]
3073
+ * ```
3074
+ *
3075
+ * @example
3076
+ * ### Sending
3077
+ *
3078
+ * We can send a Transaction Envelope to the network by serializing the signed envelope with `.serialize`, and then broadcasting it over JSON-RPC with `eth_sendRawTransaction`.
3079
+ *
3080
+ * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
3081
+ *
3082
+ * ```ts twoslash
3083
+ * // @noErrors
3084
+ * import {
3085
+ * Blobs,
3086
+ * RpcTransport,
3087
+ * TxEnvelopeEip4844,
3088
+ * Secp256k1,
3089
+ * Value
3090
+ * } from 'ox'
3091
+ * import { kzg } from './kzg'
3092
+ *
3093
+ * // Compute the Blob Versioned Hashes.
3094
+ * const blobs = Blobs.from('0xdeadbeef')
3095
+ * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, {
3096
+ * kzg
3097
+ * })
3098
+ *
3099
+ * // Construct the Envelope.
3100
+ * const envelope = TxEnvelopeEip4844.from({
3101
+ * chainId: 1,
3102
+ * blobVersionedHashes,
3103
+ * maxFeePerBlobGas: Value.fromGwei('3'),
3104
+ * maxFeePerGas: Value.fromGwei('10'),
3105
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
3106
+ * nonce: 0n,
3107
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3108
+ * value: Value.fromEther('1.5')
3109
+ * })
3110
+ *
3111
+ * // Sign over the Envelope.
3112
+ * const signature = Secp256k1.sign({
3113
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope),
3114
+ * privateKey: '0x...'
3115
+ * })
3116
+ *
3117
+ * // Serialize the Envelope with the Signature. // [!code focus]
3118
+ * const serialized = TxEnvelopeEip4844.serialize(envelope, {
3119
+ * // [!code focus]
3120
+ * signature // [!code focus]
3121
+ * }) // [!code focus]
3122
+ *
3123
+ * // Broadcast the Envelope with `eth_sendRawTransaction`. // [!code focus]
3124
+ * const transport = RpcTransport.fromHttp(
3125
+ * 'https://1.rpc.thirdweb.com'
3126
+ * ) // [!code focus]
3127
+ * const hash = await transport.request({
3128
+ * // [!code focus]
3129
+ * method: 'eth_sendRawTransaction', // [!code focus]
3130
+ * params: [serialized] // [!code focus]
3131
+ * }) // [!code focus]
3132
+ * ```
3133
+ *
3134
+ * @example
3135
+ * ### Computing Hashes
3136
+ *
3137
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeEip4844.(hash:function)}:
3138
+ *
3139
+ * ```ts twoslash
3140
+ * // @noErrors
3141
+ * import {
3142
+ * Blobs,
3143
+ * Secp256k1,
3144
+ * TxEnvelopeEip4844,
3145
+ * Value
3146
+ * } from 'ox'
3147
+ * import { kzg } from './kzg'
3148
+ *
3149
+ * const blobs = Blobs.from('0xdeadbeef')
3150
+ * const blobVersionedHashes = Blobs.toVersionedHashes(blobs, {
3151
+ * kzg
3152
+ * })
3153
+ *
3154
+ * const envelope = TxEnvelopeEip4844.from({
3155
+ * blobVersionedHashes,
3156
+ * chainId: 1,
3157
+ * maxFeePerGas: Value.fromGwei('10'),
3158
+ * to: '0x0000000000000000000000000000000000000000',
3159
+ * value: Value.fromEther('1')
3160
+ * })
3161
+ *
3162
+ * const signature = Secp256k1.sign({
3163
+ * payload: TxEnvelopeEip4844.getSignPayload(envelope),
3164
+ * privateKey: '0x...'
3165
+ * })
3166
+ *
3167
+ * const envelope_signed = TxEnvelopeEip4844.from(envelope, {
3168
+ * signature
3169
+ * })
3170
+ *
3171
+ * const hash = TxEnvelopeEip4844.hash(envelope_signed) // [!code focus]
3172
+ * ```
3173
+ *
3174
+ * @category Transaction Envelopes
3175
+ */
3176
+ export * as TxEnvelopeEip4844 from './core/TxEnvelopeEip4844.js';
3177
+ /**
3178
+ * Utility functions for working with [EIP-7702 Typed Transaction Envelopes](https://eips.ethereum.org/EIPS/eip-7702)
3179
+ *
3180
+ * @example
3181
+ * ### Instantiating
3182
+ *
3183
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeEip7702.(from:function)}:
3184
+ *
3185
+ * ```ts twoslash
3186
+ * import {
3187
+ * Authorization,
3188
+ * Secp256k1,
3189
+ * TxEnvelopeEip7702,
3190
+ * Value
3191
+ * } from 'ox'
3192
+ *
3193
+ * const authorization = Authorization.from({
3194
+ * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3195
+ * chainId: 1,
3196
+ * nonce: 0n
3197
+ * })
3198
+ *
3199
+ * const signature = Secp256k1.sign({
3200
+ * payload: Authorization.getSignPayload(authorization),
3201
+ * privateKey: '0x...'
3202
+ * })
3203
+ *
3204
+ * const authorizationList = [
3205
+ * Authorization.from(authorization, { signature })
3206
+ * ]
3207
+ *
3208
+ * const envelope = TxEnvelopeEip7702.from({
3209
+ * // [!code focus]
3210
+ * authorizationList, // [!code focus]
3211
+ * chainId: 1, // [!code focus]
3212
+ * maxFeePerGas: Value.fromGwei('10'), // [!code focus]
3213
+ * maxPriorityFeePerGas: Value.fromGwei('1'), // [!code focus]
3214
+ * to: '0x0000000000000000000000000000000000000000', // [!code focus]
3215
+ * value: Value.fromEther('1') // [!code focus]
3216
+ * }) // [!code focus]
3217
+ * ```
3218
+ *
3219
+ * :::tip
3220
+ *
3221
+ * See {@link ox#Authorization} for more details on instantiating and signing EIP-7702 Authorizations.
3222
+ *
3223
+ * :::
3224
+ *
3225
+ * @example
3226
+ * ### Signing
3227
+ *
3228
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeEip7702.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
3229
+ *
3230
+ * ```ts twoslash
3231
+ * import {
3232
+ * Authorization,
3233
+ * Secp256k1,
3234
+ * TxEnvelopeEip7702,
3235
+ * Value
3236
+ * } from 'ox'
3237
+ *
3238
+ * const authorization = Authorization.from({
3239
+ * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3240
+ * chainId: 1,
3241
+ * nonce: 0n
3242
+ * })
3243
+ *
3244
+ * const signature_auth = Secp256k1.sign({
3245
+ * payload: Authorization.getSignPayload(authorization),
3246
+ * privateKey: '0x...'
3247
+ * })
3248
+ *
3249
+ * const authorizationList = [
3250
+ * Authorization.from(authorization, {
3251
+ * signature: signature_auth
3252
+ * })
3253
+ * ]
3254
+ *
3255
+ * const envelope = TxEnvelopeEip7702.from({
3256
+ * authorizationList,
3257
+ * chainId: 1,
3258
+ * maxFeePerGas: Value.fromGwei('10'),
3259
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
3260
+ * to: '0x0000000000000000000000000000000000000000',
3261
+ * value: Value.fromEther('1')
3262
+ * })
3263
+ *
3264
+ * const signature = Secp256k1.sign({
3265
+ * // [!code focus]
3266
+ * payload: TxEnvelopeEip7702.getSignPayload(envelope), // [!code focus]
3267
+ * privateKey: '0x...' // [!code focus]
3268
+ * })
3269
+ *
3270
+ * const envelope_signed = TxEnvelopeEip7702.from(envelope, {
3271
+ * signature
3272
+ * })
3273
+ * ```
3274
+ *
3275
+ * @example
3276
+ * ### Sending
3277
+ *
3278
+ * We can send a Transaction Envelope to the network by serializing the signed envelope with `.serialize`, and then broadcasting it over JSON-RPC with `eth_sendRawTransaction`.
3279
+ *
3280
+ * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
3281
+ *
3282
+ * ```ts twoslash
3283
+ * import {
3284
+ * Authorization,
3285
+ * RpcTransport,
3286
+ * TxEnvelopeEip7702,
3287
+ * Secp256k1,
3288
+ * Value
3289
+ * } from 'ox'
3290
+ *
3291
+ * const authorization = Authorization.from({
3292
+ * address: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3293
+ * chainId: 1,
3294
+ * nonce: 0n
3295
+ * })
3296
+ *
3297
+ * const signature_auth = Secp256k1.sign({
3298
+ * payload: Authorization.getSignPayload(authorization),
3299
+ * privateKey: '0x...'
3300
+ * })
3301
+ *
3302
+ * const authorizationList = [
3303
+ * Authorization.from(authorization, {
3304
+ * signature: signature_auth
3305
+ * })
3306
+ * ]
3307
+ *
3308
+ * const envelope = TxEnvelopeEip7702.from({
3309
+ * authorizationList,
3310
+ * chainId: 1,
3311
+ * maxFeePerGas: Value.fromGwei('10'),
3312
+ * maxPriorityFeePerGas: Value.fromGwei('1'),
3313
+ * nonce: 69n,
3314
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3315
+ * value: Value.fromEther('1.5')
3316
+ * })
3317
+ *
3318
+ * const signature = Secp256k1.sign({
3319
+ * payload: TxEnvelopeEip7702.getSignPayload(envelope),
3320
+ * privateKey: '0x...'
3321
+ * })
3322
+ *
3323
+ * // Serialize the Envelope with the Signature. // [!code focus]
3324
+ * const serialized = TxEnvelopeEip7702.serialize(envelope, {
3325
+ * // [!code focus]
3326
+ * signature // [!code focus]
3327
+ * }) // [!code focus]
3328
+ *
3329
+ * // Broadcast the Envelope with `eth_sendRawTransaction`. // [!code focus]
3330
+ * const transport = RpcTransport.fromHttp(
3331
+ * 'https://1.rpc.thirdweb.com'
3332
+ * ) // [!code focus]
3333
+ * const hash = await transport.request({
3334
+ * // [!code focus]
3335
+ * method: 'eth_sendRawTransaction', // [!code focus]
3336
+ * params: [serialized] // [!code focus]
3337
+ * }) // [!code focus]
3338
+ * ```
3339
+ *
3340
+ * @category Transaction Envelopes
3341
+ */
3342
+ export * as TxEnvelopeEip7702 from './core/TxEnvelopeEip7702.js';
3343
+ /**
3344
+ * Utility functions for working
3345
+ * with **Legacy Transaction Envelopes**.
3346
+ *
3347
+ * @example
3348
+ * ### Instantiating
3349
+ *
3350
+ * Transaction Envelopes can be instantiated using {@link ox#TxEnvelopeLegacy.(from:function)}:
3351
+ *
3352
+ * ```ts twoslash
3353
+ * import { TxEnvelopeLegacy, Value } from 'ox'
3354
+ *
3355
+ * const envelope = TxEnvelopeLegacy.from({
3356
+ * gasPrice: Value.fromGwei('10'),
3357
+ * to: '0x0000000000000000000000000000000000000000',
3358
+ * value: Value.fromEther('1')
3359
+ * })
3360
+ * ```
3361
+ *
3362
+ * * @example
3363
+ * ### Signing
3364
+ *
3365
+ * Transaction Envelopes can be signed using {@link ox#TxEnvelopeLegacy.(getSignPayload:function)} and a signing function such as {@link ox#Secp256k1.(sign:function)} or {@link ox#P256.(sign:function)}:
3366
+ *
3367
+ * ```ts twoslash
3368
+ * // @noErrors
3369
+ * import { Secp256k1, TxEnvelopeLegacy } from 'ox'
3370
+ *
3371
+ * const envelope = TxEnvelopeLegacy.from({
3372
+ * nonce: 0n,
3373
+ * gasPrice: 1000000000n,
3374
+ * gas: 21000n,
3375
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3376
+ * value: 1000000000000000000n
3377
+ * })
3378
+ *
3379
+ * const signature = Secp256k1.sign({
3380
+ * // [!code focus]
3381
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope), // [!code focus]
3382
+ * privateKey: '0x...' // [!code focus]
3383
+ * }) // [!code focus]
3384
+ *
3385
+ * const envelope_signed = TxEnvelopeLegacy.from(envelope, {
3386
+ * signature
3387
+ * })
3388
+ * ```
3389
+ *
3390
+ * @example
3391
+ * ### Serializing
3392
+ *
3393
+ * Transaction Envelopes can be serialized using {@link ox#TxEnvelopeLegacy.(serialize:function)}:
3394
+ *
3395
+ * ```ts twoslash
3396
+ * import { TxEnvelopeLegacy, Value } from 'ox'
3397
+ *
3398
+ * const envelope = TxEnvelopeLegacy.from({
3399
+ * chainId: 1,
3400
+ * gasPrice: Value.fromGwei('10'),
3401
+ * to: '0x0000000000000000000000000000000000000000',
3402
+ * value: Value.fromEther('1')
3403
+ * })
3404
+ *
3405
+ * const serialized = TxEnvelopeLegacy.serialize(envelope) // [!code focus]
3406
+ * ```
3407
+ *
3408
+ * @example
3409
+ * ### Sending
3410
+ *
3411
+ * We can send a Transaction Envelope to the network by serializing the signed envelope with `.serialize`, and then broadcasting it over JSON-RPC with `eth_sendRawTransaction`.
3412
+ *
3413
+ * In this example, we will use {@link ox#RpcTransport.(fromHttp:function)} to broadcast a `eth_sendRawTransaction` request over HTTP JSON-RPC.
3414
+ *
3415
+ * ```ts twoslash
3416
+ * import {
3417
+ * RpcTransport,
3418
+ * TxEnvelopeLegacy,
3419
+ * Secp256k1,
3420
+ * Value
3421
+ * } from 'ox'
3422
+ *
3423
+ * // Construct the Envelope.
3424
+ * const envelope = TxEnvelopeLegacy.from({
3425
+ * chainId: 1,
3426
+ * gasPrice: Value.fromGwei('10'),
3427
+ * nonce: 69n,
3428
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3429
+ * value: Value.fromEther('1.5')
3430
+ * })
3431
+ *
3432
+ * // Sign over the Envelope.
3433
+ * const signature = Secp256k1.sign({
3434
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope),
3435
+ * privateKey: '0x...'
3436
+ * })
3437
+ *
3438
+ * // Serialize the Envelope with the Signature. // [!code focus]
3439
+ * const serialized = TxEnvelopeLegacy.serialize(envelope, {
3440
+ * // [!code focus]
3441
+ * signature // [!code focus]
3442
+ * }) // [!code focus]
3443
+ *
3444
+ * // Broadcast the Envelope with `eth_sendRawTransaction`. // [!code focus]
3445
+ * const transport = RpcTransport.fromHttp(
3446
+ * 'https://1.rpc.thirdweb.com'
3447
+ * ) // [!code focus]
3448
+ * const hash = await transport.request({
3449
+ * // [!code focus]
3450
+ * method: 'eth_sendRawTransaction', // [!code focus]
3451
+ * params: [serialized] // [!code focus]
3452
+ * }) // [!code focus]
3453
+ * ```
3454
+ *
3455
+ * If you are interfacing with an RPC that supports `eth_sendTransaction`, you can also use
3456
+ * {@link ox#TxEnvelopeLegacy.(toRpc:function)} to convert an Envelope to an RPC-compatible format.
3457
+ * This means you can skip the ceremony of manually filling & signing the Transaction.
3458
+ *
3459
+ * ```ts twoslash
3460
+ * import 'ox/window'
3461
+ * import { Provider, TxEnvelopeLegacy, Value } from 'ox'
3462
+ *
3463
+ * const envelope = TxEnvelopeLegacy.from({
3464
+ * chainId: 1,
3465
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3466
+ * value: Value.fromEther('1.5')
3467
+ * })
3468
+ *
3469
+ * const envelope_rpc = TxEnvelopeLegacy.toRpc(envelope)
3470
+ *
3471
+ * const provider = Provider.from(window.ethereum)
3472
+ * const hash = await provider.request({
3473
+ * method: 'eth_sendTransaction',
3474
+ * params: [envelope_rpc]
3475
+ * })
3476
+ * ```
3477
+ *
3478
+ * @example
3479
+ * ### Computing Hashes
3480
+ *
3481
+ * Transaction Hashes can be computed using {@link ox#TxEnvelopeLegacy.(hash:function)}:
3482
+ *
3483
+ * ```ts twoslash
3484
+ * import { Secp256k1, TxEnvelopeLegacy } from 'ox'
3485
+ *
3486
+ * const envelope = TxEnvelopeLegacy.from({
3487
+ * chainId: 1,
3488
+ * nonce: 0n,
3489
+ * gasPrice: 1000000000n,
3490
+ * gas: 21000n,
3491
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
3492
+ * value: 1000000000000000000n,
3493
+ * data: '0x'
3494
+ * })
3495
+ *
3496
+ * const signature = Secp256k1.sign({
3497
+ * payload: TxEnvelopeLegacy.getSignPayload(envelope),
3498
+ * privateKey: '0x...'
3499
+ * })
3500
+ *
3501
+ * const envelope_signed = TxEnvelopeLegacy.from(envelope, {
3502
+ * signature
3503
+ * })
3504
+ *
3505
+ * const hash = TxEnvelopeLegacy.hash(envelope_signed) // [!code focus]
3506
+ * ```
3507
+ *
3508
+ * @category Transaction Envelopes
3509
+ */
3510
+ export * as TxEnvelopeLegacy from './core/TxEnvelopeLegacy.js';
3511
+ /**
3512
+ * Utility functions for working with [EIP-712 Typed Data](https://eips.ethereum.org/EIPS/eip-712)
3513
+ *
3514
+ * @example
3515
+ * ### Getting Sign Payloads
3516
+ *
3517
+ * Typed Data can be converted to a sign payload using {@link ox#TypedData.(getSignPayload:function)}:
3518
+ *
3519
+ * ```ts twoslash
3520
+ * import { Secp256k1, TypedData, Hash } from 'ox'
3521
+ *
3522
+ * const payload = TypedData.getSignPayload({
3523
+ * // [!code focus:99]
3524
+ * domain: {
3525
+ * name: 'Ether Mail',
3526
+ * version: '1',
3527
+ * chainId: 1,
3528
+ * verifyingContract:
3529
+ * '0x0000000000000000000000000000000000000000'
3530
+ * },
3531
+ * types: {
3532
+ * Person: [
3533
+ * { name: 'name', type: 'string' },
3534
+ * { name: 'wallet', type: 'address' }
3535
+ * ],
3536
+ * Mail: [
3537
+ * { name: 'from', type: 'Person' },
3538
+ * { name: 'to', type: 'Person' },
3539
+ * { name: 'contents', type: 'string' }
3540
+ * ]
3541
+ * },
3542
+ * primaryType: 'Mail',
3543
+ * message: {
3544
+ * from: {
3545
+ * name: 'Cow',
3546
+ * wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826'
3547
+ * },
3548
+ * to: {
3549
+ * name: 'Bob',
3550
+ * wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB'
3551
+ * },
3552
+ * contents: 'Hello, Bob!'
3553
+ * }
3554
+ * })
3555
+ *
3556
+ * const signature = Secp256k1.sign({
3557
+ * payload,
3558
+ * privateKey: '0x...'
3559
+ * })
3560
+ * ```
3561
+ *
3562
+ * @category Signed & Typed Data
3563
+ */
3564
+ export * as TypedData from './core/TypedData.js';
3565
+ /**
3566
+ * Utilities & types for working with [EIP-191 Validator Data](https://eips.ethereum.org/EIPS/eip-191#0x00)
3567
+ *
3568
+ * @category Signed & Typed Data
3569
+ */
3570
+ export * as ValidatorData from './core/ValidatorData.js';
3571
+ /**
3572
+ * Utility functions for displaying and parsing Ethereum Values as defined under **2.1. Value** in the [Ethereum Yellow Paper](https://ethereum.github.io/yellowpaper/paper.pdf)
3573
+ *
3574
+ * @example
3575
+ * ```ts twoslash
3576
+ * // @noErrors
3577
+ * import { Value } from 'ox'
3578
+ *
3579
+ * const value = Value.fromEther('1')
3580
+ * // @log: 1_000_000_000_000_000_000n
3581
+ *
3582
+ * const formattedValue = Value.formatEther(value)
3583
+ * // @log: '1'
3584
+ *
3585
+ * const value = Value.fromEther('1', 'szabo')
3586
+ * // @log: 1_000_000n
3587
+ * ```
3588
+ *
3589
+ * @category Data
3590
+ */
3591
+ export * as Value from './core/Value.js';
3592
+ /**
3593
+ * Utility functions for [NIST P256](https://csrc.nist.gov/csrc/media/events/workshop-on-elliptic-curve-cryptography-standards/documents/papers/session6-adalier-mehmet.pdf) ECDSA cryptography using the [Web Authentication API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API)
3594
+ *
3595
+ * @example
3596
+ * ### Creating Credentials
3597
+ *
3598
+ * Credentials can be created using {@link ox#WebAuthnP256.(createCredential:function)}:
3599
+ *
3600
+ * ```ts twoslash
3601
+ * import { WebAuthnP256 } from 'ox'
3602
+ *
3603
+ * const credential = await WebAuthnP256.createCredential({
3604
+ * name: 'Example'
3605
+ * }) // [!code focus]
3606
+ * // @log: {
3607
+ * // @log: id: 'oZ48...',
3608
+ * // @log: publicKey: { x: 51421...5123n, y: 12345...6789n },
3609
+ * // @log: raw: PublicKeyCredential {},
3610
+ * // @log: }
3611
+ *
3612
+ * const { metadata, signature } = await WebAuthnP256.sign({
3613
+ * credentialId: credential.id,
3614
+ * challenge: '0xdeadbeef'
3615
+ * })
3616
+ * ```
3617
+ *
3618
+ * @example
3619
+ * ### Signing Payloads
3620
+ *
3621
+ * Payloads can be signed using {@link ox#WebAuthnP256.(sign:function)}:
3622
+ *
3623
+ * ```ts twoslash
3624
+ * import { WebAuthnP256 } from 'ox'
3625
+ *
3626
+ * const credential = await WebAuthnP256.createCredential({
3627
+ * name: 'Example'
3628
+ * })
3629
+ *
3630
+ * const { metadata, signature } = await WebAuthnP256.sign({
3631
+ * // [!code focus]
3632
+ * credentialId: credential.id, // [!code focus]
3633
+ * challenge: '0xdeadbeef' // [!code focus]
3634
+ * }) // [!code focus]
3635
+ * // @log: {
3636
+ * // @log: metadata: {
3637
+ * // @log: authenticatorData: '0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000',
3638
+ * // @log: clientDataJSON: '{"type":"webauthn.get","challenge":"9jEFijuhEWrM4SOW-tChJbUEHEP44VcjcJ-Bqo1fTM8","origin":"http://localhost:5173","crossOrigin":false}',
3639
+ * // @log: challengeIndex: 23,
3640
+ * // @log: typeIndex: 1,
3641
+ * // @log: userVerificationRequired: true,
3642
+ * // @log: },
3643
+ * // @log: signature: { r: 51231...4215n, s: 12345...6789n },
3644
+ * // @log: }
3645
+ * ```
3646
+ *
3647
+ * @example
3648
+ * ### Verifying Signatures
3649
+ *
3650
+ * Signatures can be verified using {@link ox#WebAuthnP256.(verify:function)}:
3651
+ *
3652
+ * ```ts twoslash
3653
+ * import { WebAuthnP256 } from 'ox'
3654
+ *
3655
+ * const credential = await WebAuthnP256.createCredential({
3656
+ * name: 'Example'
3657
+ * })
3658
+ *
3659
+ * const { metadata, signature } = await WebAuthnP256.sign({
3660
+ * credentialId: credential.id,
3661
+ * challenge: '0xdeadbeef'
3662
+ * })
3663
+ *
3664
+ * const result = await WebAuthnP256.verify({
3665
+ * // [!code focus]
3666
+ * metadata, // [!code focus]
3667
+ * challenge: '0xdeadbeef', // [!code focus]
3668
+ * publicKey: credential.publicKey, // [!code focus]
3669
+ * signature // [!code focus]
3670
+ * }) // [!code focus]
3671
+ * // @log: true
3672
+ * ```
3673
+ *
3674
+ * @category Crypto
3675
+ */
3676
+ export * as WebAuthnP256 from './core/WebAuthnP256.js';
3677
+ /**
3678
+ * Utility functions for [NIST P256](https://csrc.nist.gov/csrc/media/events/workshop-on-elliptic-curve-cryptography-standards/documents/papers/session6-adalier-mehmet.pdf) ECDSA cryptography using the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API)
3679
+ *
3680
+ * @example
3681
+ * ### Creating Key Pairs
3682
+ *
3683
+ * Key pairs can be created using {@link ox#WebCryptoP256.(createKeyPair:function)}:
3684
+ *
3685
+ * ```ts twoslash
3686
+ * import { WebCryptoP256 } from 'ox'
3687
+ *
3688
+ * const { publicKey, privateKey } =
3689
+ * await WebCryptoP256.createKeyPair()
3690
+ * // @log: {
3691
+ * // @log: privateKey: CryptoKey {},
3692
+ * // @log: publicKey: {
3693
+ * // @log: x: '0x8318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed75',
3694
+ * // @log: y: '0x3547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5',
3695
+ * // @log: prefix: 4,
3696
+ * // @log: },
3697
+ * // @log: }
3698
+ * ```
3699
+ *
3700
+ * @example
3701
+ * ### Signing Payloads
3702
+ *
3703
+ * Payloads can be signed using {@link ox#WebCryptoP256.(sign:function)}:
3704
+ *
3705
+ * ```ts twoslash
3706
+ * import { WebCryptoP256 } from 'ox'
3707
+ *
3708
+ * const { privateKey } = await WebCryptoP256.createKeyPair()
3709
+ *
3710
+ * const signature = await WebCryptoP256.sign({
3711
+ * // [!code focus]
3712
+ * payload: '0xdeadbeef', // [!code focus]
3713
+ * privateKey // [!code focus]
3714
+ * }) // [!code focus]
3715
+ * // @log: {
3716
+ * // @log: r: 151231...4423n,
3717
+ * // @log: s: 516123...5512n,
3718
+ * // @log: }
3719
+ * ```
3720
+ *
3721
+ * @example
3722
+ * ### Verifying Signatures
3723
+ *
3724
+ * Signatures can be verified using {@link ox#WebCryptoP256.(verify:function)}:
3725
+ *
3726
+ * ```ts twoslash
3727
+ * import { WebCryptoP256 } from 'ox'
3728
+ *
3729
+ * const { privateKey, publicKey } =
3730
+ * await WebCryptoP256.createKeyPair()
3731
+ * const signature = await WebCryptoP256.sign({
3732
+ * payload: '0xdeadbeef',
3733
+ * privateKey
3734
+ * })
3735
+ *
3736
+ * const verified = await WebCryptoP256.verify({
3737
+ * // [!code focus]
3738
+ * payload: '0xdeadbeef', // [!code focus]
3739
+ * publicKey, // [!code focus]
3740
+ * signature // [!code focus]
3741
+ * }) // [!code focus]
3742
+ * // @log: true
3743
+ * ```
3744
+ *
3745
+ * @category Crypto
3746
+ */
3747
+ export * as WebCryptoP256 from './core/WebCryptoP256.js';
3748
+ /**
3749
+ * Utilities & types for working with Withdrawals as defined in the [Execution API specification](https://github.com/ethereum/execution-apis/blob/main/src/schemas/withdrawal.yaml)
3750
+ *
3751
+ * @category Execution Spec
3752
+ */
3753
+ export * as Withdrawal from './core/Withdrawal.js';
3754
+ /**
3755
+ * Utilities for working with X25519 elliptic curve Diffie-Hellman key agreement.
3756
+ *
3757
+ * X25519 is a high-performance elliptic curve that can be used to perform
3758
+ * Diffie-Hellman key agreement to derive shared secrets between parties.
3759
+ * It is designed for use with the elliptic curve Diffie-Hellman (ECDH) key agreement scheme.
3760
+ *
3761
+ * @example
3762
+ * ### Creating Key Pairs
3763
+ *
3764
+ * ```ts twoslash
3765
+ * import { X25519 } from 'ox'
3766
+ *
3767
+ * const { privateKey, publicKey } = X25519.createKeyPair()
3768
+ * ```
3769
+ *
3770
+ * @example
3771
+ * ### Deriving Shared Secrets
3772
+ *
3773
+ * ```ts twoslash
3774
+ * import { X25519 } from 'ox'
3775
+ *
3776
+ * const { privateKey: privateKeyA } = X25519.createKeyPair()
3777
+ * const { publicKey: publicKeyB } = X25519.createKeyPair()
3778
+ *
3779
+ * const sharedSecret = X25519.getSharedSecret({
3780
+ * privateKey: privateKeyA,
3781
+ * publicKey: publicKeyB
3782
+ * })
3783
+ * ```
3784
+ *
3785
+ * @category Crypto
3786
+ */
3787
+ export * as X25519 from './core/X25519.js';
3788
+ //# sourceMappingURL=index.js.map