ox 0.1.7 → 0.2.0

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 (405) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/_cjs/core/Abi.js +0 -2
  3. package/_cjs/core/Abi.js.map +1 -1
  4. package/_cjs/core/AbiConstructor.js +0 -5
  5. package/_cjs/core/AbiConstructor.js.map +1 -1
  6. package/_cjs/core/AbiError.js +0 -5
  7. package/_cjs/core/AbiError.js.map +1 -1
  8. package/_cjs/core/AbiEvent.js +0 -7
  9. package/_cjs/core/AbiEvent.js.map +1 -1
  10. package/_cjs/core/AbiFunction.js +0 -5
  11. package/_cjs/core/AbiFunction.js.map +1 -1
  12. package/_cjs/core/AbiItem.js +0 -6
  13. package/_cjs/core/AbiItem.js.map +1 -1
  14. package/_cjs/core/AbiParameters.js +0 -5
  15. package/_cjs/core/AbiParameters.js.map +1 -1
  16. package/_cjs/core/Address.js +0 -5
  17. package/_cjs/core/Address.js.map +1 -1
  18. package/_cjs/core/AesGcm.js +0 -4
  19. package/_cjs/core/AesGcm.js.map +1 -1
  20. package/_cjs/core/Authorization.js +0 -11
  21. package/_cjs/core/Authorization.js.map +1 -1
  22. package/_cjs/core/Base58.js +0 -6
  23. package/_cjs/core/Base58.js.map +1 -1
  24. package/_cjs/core/Base64.js +0 -6
  25. package/_cjs/core/Base64.js.map +1 -1
  26. package/_cjs/core/Blobs.js +0 -11
  27. package/_cjs/core/Blobs.js.map +1 -1
  28. package/_cjs/core/Block.js +0 -2
  29. package/_cjs/core/Block.js.map +1 -1
  30. package/_cjs/core/Bloom.js +0 -2
  31. package/_cjs/core/Bloom.js.map +1 -1
  32. package/_cjs/core/Bls.js +0 -3
  33. package/_cjs/core/Bls.js.map +1 -1
  34. package/_cjs/core/BlsPoint.js +0 -4
  35. package/_cjs/core/BlsPoint.js.map +1 -1
  36. package/_cjs/core/Bytes.js +0 -22
  37. package/_cjs/core/Bytes.js.map +1 -1
  38. package/_cjs/core/ContractAddress.js +0 -3
  39. package/_cjs/core/ContractAddress.js.map +1 -1
  40. package/_cjs/core/Ens.js +0 -3
  41. package/_cjs/core/Ens.js.map +1 -1
  42. package/_cjs/core/Filter.js +0 -2
  43. package/_cjs/core/Filter.js.map +1 -1
  44. package/_cjs/core/Hash.js +0 -4
  45. package/_cjs/core/Hash.js.map +1 -1
  46. package/_cjs/core/HdKey.js +0 -4
  47. package/_cjs/core/HdKey.js.map +1 -1
  48. package/_cjs/core/Hex.js +0 -21
  49. package/_cjs/core/Hex.js.map +1 -1
  50. package/_cjs/core/Json.js +0 -2
  51. package/_cjs/core/Json.js.map +1 -1
  52. package/_cjs/core/Kzg.js +0 -1
  53. package/_cjs/core/Kzg.js.map +1 -1
  54. package/_cjs/core/Log.js +0 -2
  55. package/_cjs/core/Log.js.map +1 -1
  56. package/_cjs/core/Mnemonic.js +0 -5
  57. package/_cjs/core/Mnemonic.js.map +1 -1
  58. package/_cjs/core/P256.js +0 -3
  59. package/_cjs/core/P256.js.map +1 -1
  60. package/_cjs/core/PersonalMessage.js +0 -2
  61. package/_cjs/core/PersonalMessage.js.map +1 -1
  62. package/_cjs/core/Provider.js +0 -2
  63. package/_cjs/core/Provider.js.map +1 -1
  64. package/_cjs/core/PublicKey.js +0 -6
  65. package/_cjs/core/PublicKey.js.map +1 -1
  66. package/_cjs/core/Rlp.js +0 -6
  67. package/_cjs/core/Rlp.js.map +1 -1
  68. package/_cjs/core/RpcRequest.js +0 -2
  69. package/_cjs/core/RpcRequest.js.map +1 -1
  70. package/_cjs/core/RpcResponse.js +0 -1
  71. package/_cjs/core/RpcResponse.js.map +1 -1
  72. package/_cjs/core/RpcTransport.js +0 -1
  73. package/_cjs/core/RpcTransport.js.map +1 -1
  74. package/_cjs/core/Secp256k1.js +0 -4
  75. package/_cjs/core/Secp256k1.js.map +1 -1
  76. package/_cjs/core/Signature.js +0 -17
  77. package/_cjs/core/Signature.js.map +1 -1
  78. package/_cjs/core/Siwe.js +0 -1
  79. package/_cjs/core/Siwe.js.map +1 -1
  80. package/_cjs/core/Transaction.js +0 -2
  81. package/_cjs/core/Transaction.js.map +1 -1
  82. package/_cjs/core/TransactionEnvelopeEip1559.js +0 -8
  83. package/_cjs/core/TransactionEnvelopeEip1559.js.map +1 -1
  84. package/_cjs/core/TransactionEnvelopeEip2930.js +0 -8
  85. package/_cjs/core/TransactionEnvelopeEip2930.js.map +1 -1
  86. package/_cjs/core/TransactionEnvelopeEip4844.js +0 -8
  87. package/_cjs/core/TransactionEnvelopeEip4844.js.map +1 -1
  88. package/_cjs/core/TransactionEnvelopeEip7702.js +0 -7
  89. package/_cjs/core/TransactionEnvelopeEip7702.js.map +1 -1
  90. package/_cjs/core/TransactionEnvelopeLegacy.js +0 -8
  91. package/_cjs/core/TransactionEnvelopeLegacy.js.map +1 -1
  92. package/_cjs/core/TransactionReceipt.js +0 -2
  93. package/_cjs/core/TransactionReceipt.js.map +1 -1
  94. package/_cjs/core/TransactionRequest.js +0 -1
  95. package/_cjs/core/TransactionRequest.js.map +1 -1
  96. package/_cjs/core/TypedData.js +19 -12
  97. package/_cjs/core/TypedData.js.map +1 -1
  98. package/_cjs/core/ValidatorData.js +0 -2
  99. package/_cjs/core/ValidatorData.js.map +1 -1
  100. package/_cjs/core/Value.js +0 -6
  101. package/_cjs/core/Value.js.map +1 -1
  102. package/_cjs/core/WebAuthnP256.js +2 -9
  103. package/_cjs/core/WebAuthnP256.js.map +1 -1
  104. package/_cjs/core/WebCryptoP256.js +0 -3
  105. package/_cjs/core/WebCryptoP256.js.map +1 -1
  106. package/_cjs/core/Withdrawal.js +0 -2
  107. package/_cjs/core/Withdrawal.js.map +1 -1
  108. package/_cjs/core/internal/base58.js +0 -1
  109. package/_cjs/core/internal/base58.js.map +1 -1
  110. package/_cjs/core/internal/promise.js +0 -1
  111. package/_cjs/core/internal/promise.js.map +1 -1
  112. package/_cjs/core/internal/rpcTransport.js +0 -1
  113. package/_cjs/core/internal/rpcTransport.js.map +1 -1
  114. package/_cjs/core/internal/webauthn.js +36 -8
  115. package/_cjs/core/internal/webauthn.js.map +1 -1
  116. package/_cjs/version.js +1 -1
  117. package/_esm/core/Abi.js +0 -6
  118. package/_esm/core/Abi.js.map +1 -1
  119. package/_esm/core/AbiConstructor.js +0 -15
  120. package/_esm/core/AbiConstructor.js.map +1 -1
  121. package/_esm/core/AbiError.js +0 -14
  122. package/_esm/core/AbiError.js.map +1 -1
  123. package/_esm/core/AbiEvent.js +0 -20
  124. package/_esm/core/AbiEvent.js.map +1 -1
  125. package/_esm/core/AbiFunction.js +0 -14
  126. package/_esm/core/AbiFunction.js.map +1 -1
  127. package/_esm/core/AbiItem.js +0 -16
  128. package/_esm/core/AbiItem.js.map +1 -1
  129. package/_esm/core/AbiParameters.js +0 -14
  130. package/_esm/core/AbiParameters.js.map +1 -1
  131. package/_esm/core/Address.js +0 -13
  132. package/_esm/core/Address.js.map +1 -1
  133. package/_esm/core/AesGcm.js +0 -12
  134. package/_esm/core/AesGcm.js.map +1 -1
  135. package/_esm/core/Authorization.js +0 -33
  136. package/_esm/core/Authorization.js.map +1 -1
  137. package/_esm/core/Base58.js +0 -18
  138. package/_esm/core/Base58.js.map +1 -1
  139. package/_esm/core/Base64.js +0 -18
  140. package/_esm/core/Base64.js.map +1 -1
  141. package/_esm/core/Blobs.js +0 -28
  142. package/_esm/core/Blobs.js.map +1 -1
  143. package/_esm/core/Block.js +0 -6
  144. package/_esm/core/Block.js.map +1 -1
  145. package/_esm/core/Bloom.js +0 -5
  146. package/_esm/core/Bloom.js.map +1 -1
  147. package/_esm/core/Bls.js +0 -8
  148. package/_esm/core/Bls.js.map +1 -1
  149. package/_esm/core/BlsPoint.js +0 -8
  150. package/_esm/core/BlsPoint.js.map +1 -1
  151. package/_esm/core/Bytes.js +0 -53
  152. package/_esm/core/Bytes.js.map +1 -1
  153. package/_esm/core/ContractAddress.js +0 -9
  154. package/_esm/core/ContractAddress.js.map +1 -1
  155. package/_esm/core/Ens.js +0 -9
  156. package/_esm/core/Ens.js.map +1 -1
  157. package/_esm/core/Filter.js +0 -6
  158. package/_esm/core/Filter.js.map +1 -1
  159. package/_esm/core/Hash.js +0 -8
  160. package/_esm/core/Hash.js.map +1 -1
  161. package/_esm/core/HdKey.js +0 -11
  162. package/_esm/core/HdKey.js.map +1 -1
  163. package/_esm/core/Hex.js +0 -45
  164. package/_esm/core/Hex.js.map +1 -1
  165. package/_esm/core/Json.js +0 -6
  166. package/_esm/core/Json.js.map +1 -1
  167. package/_esm/core/Kzg.js +0 -2
  168. package/_esm/core/Kzg.js.map +1 -1
  169. package/_esm/core/Log.js +0 -6
  170. package/_esm/core/Log.js.map +1 -1
  171. package/_esm/core/Mnemonic.js +0 -15
  172. package/_esm/core/Mnemonic.js.map +1 -1
  173. package/_esm/core/P256.js +0 -7
  174. package/_esm/core/P256.js.map +1 -1
  175. package/_esm/core/PersonalMessage.js +0 -4
  176. package/_esm/core/PersonalMessage.js.map +1 -1
  177. package/_esm/core/Provider.js +0 -5
  178. package/_esm/core/Provider.js.map +1 -1
  179. package/_esm/core/PublicKey.js +0 -18
  180. package/_esm/core/PublicKey.js.map +1 -1
  181. package/_esm/core/Rlp.js +0 -18
  182. package/_esm/core/Rlp.js.map +1 -1
  183. package/_esm/core/RpcRequest.js +0 -6
  184. package/_esm/core/RpcRequest.js.map +1 -1
  185. package/_esm/core/RpcResponse.js +0 -3
  186. package/_esm/core/RpcResponse.js.map +1 -1
  187. package/_esm/core/RpcTransport.js +0 -3
  188. package/_esm/core/RpcTransport.js.map +1 -1
  189. package/_esm/core/Secp256k1.js +0 -12
  190. package/_esm/core/Secp256k1.js.map +1 -1
  191. package/_esm/core/Signature.js +0 -49
  192. package/_esm/core/Signature.js.map +1 -1
  193. package/_esm/core/Siwe.js +0 -3
  194. package/_esm/core/Siwe.js.map +1 -1
  195. package/_esm/core/Transaction.js +0 -6
  196. package/_esm/core/Transaction.js.map +1 -1
  197. package/_esm/core/TransactionEnvelopeEip1559.js +0 -22
  198. package/_esm/core/TransactionEnvelopeEip1559.js.map +1 -1
  199. package/_esm/core/TransactionEnvelopeEip2930.js +0 -23
  200. package/_esm/core/TransactionEnvelopeEip2930.js.map +1 -1
  201. package/_esm/core/TransactionEnvelopeEip4844.js +0 -24
  202. package/_esm/core/TransactionEnvelopeEip4844.js.map +1 -1
  203. package/_esm/core/TransactionEnvelopeEip7702.js +0 -21
  204. package/_esm/core/TransactionEnvelopeEip7702.js.map +1 -1
  205. package/_esm/core/TransactionEnvelopeLegacy.js +0 -24
  206. package/_esm/core/TransactionEnvelopeLegacy.js.map +1 -1
  207. package/_esm/core/TransactionReceipt.js +0 -6
  208. package/_esm/core/TransactionReceipt.js.map +1 -1
  209. package/_esm/core/TransactionRequest.js +0 -3
  210. package/_esm/core/TransactionRequest.js.map +1 -1
  211. package/_esm/core/TypedData.js +18 -26
  212. package/_esm/core/TypedData.js.map +1 -1
  213. package/_esm/core/ValidatorData.js +0 -4
  214. package/_esm/core/ValidatorData.js.map +1 -1
  215. package/_esm/core/Value.js +0 -12
  216. package/_esm/core/Value.js.map +1 -1
  217. package/_esm/core/WebAuthnP256.js +2 -23
  218. package/_esm/core/WebAuthnP256.js.map +1 -1
  219. package/_esm/core/WebCryptoP256.js +0 -9
  220. package/_esm/core/WebCryptoP256.js.map +1 -1
  221. package/_esm/core/Withdrawal.js +0 -6
  222. package/_esm/core/Withdrawal.js.map +1 -1
  223. package/_esm/core/internal/base58.js +0 -3
  224. package/_esm/core/internal/base58.js.map +1 -1
  225. package/_esm/core/internal/promise.js +0 -3
  226. package/_esm/core/internal/promise.js.map +1 -1
  227. package/_esm/core/internal/rpcTransport.js +0 -4
  228. package/_esm/core/internal/rpcTransport.js.map +1 -1
  229. package/_esm/core/internal/webauthn.js +40 -8
  230. package/_esm/core/internal/webauthn.js.map +1 -1
  231. package/_esm/version.js +1 -1
  232. package/_types/core/Abi.d.ts +0 -6
  233. package/_types/core/Abi.d.ts.map +1 -1
  234. package/_types/core/AbiConstructor.d.ts +0 -15
  235. package/_types/core/AbiConstructor.d.ts.map +1 -1
  236. package/_types/core/AbiError.d.ts +1 -16
  237. package/_types/core/AbiError.d.ts.map +1 -1
  238. package/_types/core/AbiEvent.d.ts +0 -21
  239. package/_types/core/AbiEvent.d.ts.map +1 -1
  240. package/_types/core/AbiFunction.d.ts +0 -15
  241. package/_types/core/AbiFunction.d.ts.map +1 -1
  242. package/_types/core/AbiItem.d.ts +0 -18
  243. package/_types/core/AbiItem.d.ts.map +1 -1
  244. package/_types/core/AbiParameters.d.ts +0 -15
  245. package/_types/core/AbiParameters.d.ts.map +1 -1
  246. package/_types/core/Address.d.ts +0 -15
  247. package/_types/core/Address.d.ts.map +1 -1
  248. package/_types/core/AesGcm.d.ts +0 -9
  249. package/_types/core/AesGcm.d.ts.map +1 -1
  250. package/_types/core/Authorization.d.ts +0 -33
  251. package/_types/core/Authorization.d.ts.map +1 -1
  252. package/_types/core/Base58.d.ts +0 -18
  253. package/_types/core/Base58.d.ts.map +1 -1
  254. package/_types/core/Base64.d.ts +0 -18
  255. package/_types/core/Base64.d.ts.map +1 -1
  256. package/_types/core/Blobs.d.ts +0 -33
  257. package/_types/core/Blobs.d.ts.map +1 -1
  258. package/_types/core/Block.d.ts +0 -6
  259. package/_types/core/Block.d.ts.map +1 -1
  260. package/_types/core/Bloom.d.ts +0 -6
  261. package/_types/core/Bloom.d.ts.map +1 -1
  262. package/_types/core/Bls.d.ts +0 -9
  263. package/_types/core/Bls.d.ts.map +1 -1
  264. package/_types/core/BlsPoint.d.ts +0 -12
  265. package/_types/core/BlsPoint.d.ts.map +1 -1
  266. package/_types/core/Bytes.d.ts +0 -66
  267. package/_types/core/Bytes.d.ts.map +1 -1
  268. package/_types/core/ContractAddress.d.ts +0 -9
  269. package/_types/core/ContractAddress.d.ts.map +1 -1
  270. package/_types/core/Ens.d.ts +0 -9
  271. package/_types/core/Ens.d.ts.map +1 -1
  272. package/_types/core/Filter.d.ts +0 -6
  273. package/_types/core/Filter.d.ts.map +1 -1
  274. package/_types/core/Hash.d.ts +0 -12
  275. package/_types/core/Hash.d.ts.map +1 -1
  276. package/_types/core/HdKey.d.ts +0 -12
  277. package/_types/core/HdKey.d.ts.map +1 -1
  278. package/_types/core/Hex.d.ts +0 -63
  279. package/_types/core/Hex.d.ts.map +1 -1
  280. package/_types/core/Json.d.ts +0 -6
  281. package/_types/core/Json.d.ts.map +1 -1
  282. package/_types/core/Kzg.d.ts +0 -3
  283. package/_types/core/Kzg.d.ts.map +1 -1
  284. package/_types/core/Log.d.ts +0 -6
  285. package/_types/core/Log.d.ts.map +1 -1
  286. package/_types/core/Mnemonic.d.ts +0 -15
  287. package/_types/core/Mnemonic.d.ts.map +1 -1
  288. package/_types/core/P256.d.ts +0 -9
  289. package/_types/core/P256.d.ts.map +1 -1
  290. package/_types/core/PersonalMessage.d.ts +0 -6
  291. package/_types/core/PersonalMessage.d.ts.map +1 -1
  292. package/_types/core/Provider.d.ts +0 -6
  293. package/_types/core/Provider.d.ts.map +1 -1
  294. package/_types/core/PublicKey.d.ts +0 -18
  295. package/_types/core/PublicKey.d.ts.map +1 -1
  296. package/_types/core/Rlp.d.ts +1 -18
  297. package/_types/core/Rlp.d.ts.map +1 -1
  298. package/_types/core/RpcRequest.d.ts +0 -6
  299. package/_types/core/RpcRequest.d.ts.map +1 -1
  300. package/_types/core/RpcResponse.d.ts +0 -3
  301. package/_types/core/RpcResponse.d.ts.map +1 -1
  302. package/_types/core/RpcTransport.d.ts +0 -3
  303. package/_types/core/RpcTransport.d.ts.map +1 -1
  304. package/_types/core/Secp256k1.d.ts +0 -12
  305. package/_types/core/Secp256k1.d.ts.map +1 -1
  306. package/_types/core/Signature.d.ts +0 -51
  307. package/_types/core/Signature.d.ts.map +1 -1
  308. package/_types/core/Siwe.d.ts +0 -3
  309. package/_types/core/Siwe.d.ts.map +1 -1
  310. package/_types/core/Transaction.d.ts +0 -6
  311. package/_types/core/Transaction.d.ts.map +1 -1
  312. package/_types/core/TransactionEnvelopeEip1559.d.ts +0 -24
  313. package/_types/core/TransactionEnvelopeEip1559.d.ts.map +1 -1
  314. package/_types/core/TransactionEnvelopeEip2930.d.ts +0 -24
  315. package/_types/core/TransactionEnvelopeEip2930.d.ts.map +1 -1
  316. package/_types/core/TransactionEnvelopeEip4844.d.ts +0 -24
  317. package/_types/core/TransactionEnvelopeEip4844.d.ts.map +1 -1
  318. package/_types/core/TransactionEnvelopeEip7702.d.ts +0 -21
  319. package/_types/core/TransactionEnvelopeEip7702.d.ts.map +1 -1
  320. package/_types/core/TransactionEnvelopeLegacy.d.ts +0 -24
  321. package/_types/core/TransactionEnvelopeLegacy.d.ts.map +1 -1
  322. package/_types/core/TransactionReceipt.d.ts +0 -6
  323. package/_types/core/TransactionReceipt.d.ts.map +1 -1
  324. package/_types/core/TransactionRequest.d.ts +0 -3
  325. package/_types/core/TransactionRequest.d.ts.map +1 -1
  326. package/_types/core/TypedData.d.ts +7 -30
  327. package/_types/core/TypedData.d.ts.map +1 -1
  328. package/_types/core/ValidatorData.d.ts +0 -6
  329. package/_types/core/ValidatorData.d.ts.map +1 -1
  330. package/_types/core/Value.d.ts +0 -18
  331. package/_types/core/Value.d.ts.map +1 -1
  332. package/_types/core/WebAuthnP256.d.ts +1 -25
  333. package/_types/core/WebAuthnP256.d.ts.map +1 -1
  334. package/_types/core/WebCryptoP256.d.ts +0 -9
  335. package/_types/core/WebCryptoP256.d.ts.map +1 -1
  336. package/_types/core/Withdrawal.d.ts +0 -6
  337. package/_types/core/Withdrawal.d.ts.map +1 -1
  338. package/_types/core/internal/base58.d.ts +1 -3
  339. package/_types/core/internal/base58.d.ts.map +1 -1
  340. package/_types/core/internal/promise.d.ts +1 -3
  341. package/_types/core/internal/promise.d.ts.map +1 -1
  342. package/_types/core/internal/rpcTransport.d.ts +0 -3
  343. package/_types/core/internal/rpcTransport.d.ts.map +1 -1
  344. package/_types/core/internal/webauthn.d.ts +6 -2
  345. package/_types/core/internal/webauthn.d.ts.map +1 -1
  346. package/_types/version.d.ts +1 -1
  347. package/core/Abi.ts +0 -8
  348. package/core/AbiConstructor.ts +0 -20
  349. package/core/AbiError.ts +1 -20
  350. package/core/AbiEvent.ts +0 -27
  351. package/core/AbiFunction.ts +0 -19
  352. package/core/AbiItem.ts +0 -22
  353. package/core/AbiParameters.ts +0 -19
  354. package/core/Address.ts +0 -18
  355. package/core/AesGcm.ts +0 -16
  356. package/core/Authorization.ts +0 -44
  357. package/core/Base58.ts +0 -24
  358. package/core/Base64.ts +0 -24
  359. package/core/Blobs.ts +0 -39
  360. package/core/Block.ts +0 -8
  361. package/core/Bloom.ts +0 -7
  362. package/core/Bls.ts +0 -11
  363. package/core/BlsPoint.ts +0 -12
  364. package/core/Bytes.ts +0 -75
  365. package/core/ContractAddress.ts +0 -12
  366. package/core/Ens.ts +0 -12
  367. package/core/Filter.ts +0 -8
  368. package/core/Hash.ts +0 -12
  369. package/core/HdKey.ts +0 -15
  370. package/core/Hex.ts +0 -66
  371. package/core/Json.ts +0 -8
  372. package/core/Kzg.ts +0 -3
  373. package/core/Log.ts +0 -8
  374. package/core/Mnemonic.ts +0 -20
  375. package/core/P256.ts +0 -10
  376. package/core/PersonalMessage.ts +0 -7
  377. package/core/Provider.ts +0 -7
  378. package/core/PublicKey.ts +0 -24
  379. package/core/Rlp.ts +0 -23
  380. package/core/RpcRequest.ts +0 -8
  381. package/core/RpcResponse.ts +0 -4
  382. package/core/RpcTransport.ts +0 -4
  383. package/core/Secp256k1.ts +0 -16
  384. package/core/Signature.ts +0 -66
  385. package/core/Siwe.ts +0 -4
  386. package/core/Transaction.ts +0 -8
  387. package/core/TransactionEnvelopeEip1559.ts +0 -30
  388. package/core/TransactionEnvelopeEip2930.ts +0 -31
  389. package/core/TransactionEnvelopeEip4844.ts +0 -32
  390. package/core/TransactionEnvelopeEip7702.ts +0 -28
  391. package/core/TransactionEnvelopeLegacy.ts +0 -32
  392. package/core/TransactionReceipt.ts +0 -8
  393. package/core/TransactionRequest.ts +0 -4
  394. package/core/TypedData.ts +15 -36
  395. package/core/ValidatorData.ts +0 -7
  396. package/core/Value.ts +0 -18
  397. package/core/WebAuthnP256.ts +5 -34
  398. package/core/WebCryptoP256.ts +0 -12
  399. package/core/Withdrawal.ts +0 -8
  400. package/core/internal/base58.ts +0 -3
  401. package/core/internal/promise.ts +0 -3
  402. package/core/internal/rpcTransport.ts +0 -5
  403. package/core/internal/webauthn.ts +58 -17
  404. package/package.json +1 -1
  405. package/version.ts +1 -1
package/core/AbiError.ts CHANGED
@@ -200,7 +200,7 @@ export declare namespace decode {
200
200
  type ErrorType =
201
201
  | AbiParameters.decode.ErrorType
202
202
  | Hex.size.ErrorType
203
- | AbiItem.InvalidSelectorSizeError
203
+ | typeof AbiItem.InvalidSelectorSizeError
204
204
  | Errors.GlobalErrorType
205
205
  }
206
206
 
@@ -286,10 +286,6 @@ export declare namespace encode {
286
286
  type ErrorType = Errors.GlobalErrorType
287
287
  }
288
288
 
289
- encode.parseError = (error: unknown) =>
290
- /* v8 ignore next */
291
- error as encode.ErrorType
292
-
293
289
  /**
294
290
  * Formats an {@link ox#AbiError.AbiError} into a **Human Readable ABI Error**.
295
291
  *
@@ -331,10 +327,6 @@ export declare namespace format {
331
327
  type ErrorType = Errors.GlobalErrorType
332
328
  }
333
329
 
334
- format.parseError = (error: unknown) =>
335
- /* v8 ignore next */
336
- error as format.ErrorType
337
-
338
330
  /**
339
331
  * Parses an arbitrary **JSON ABI Error** or **Human Readable ABI Error** into a typed {@link ox#AbiError.AbiError}.
340
332
  *
@@ -460,10 +452,6 @@ export declare namespace from {
460
452
  type ErrorType = AbiItem.from.ErrorType | Errors.GlobalErrorType
461
453
  }
462
454
 
463
- from.parseError = (error: unknown) =>
464
- /* v8 ignore next */
465
- error as from.ErrorType
466
-
467
455
  /**
468
456
  * Extracts an {@link ox#AbiError.AbiError} from an {@link ox#Abi.Abi} given a name and optional arguments.
469
457
  *
@@ -585,10 +573,6 @@ export declare namespace fromAbi {
585
573
  type ErrorType = AbiItem.fromAbi.ErrorType | Errors.GlobalErrorType
586
574
  }
587
575
 
588
- fromAbi.parseError = (error: unknown) =>
589
- /* v8 ignore next */
590
- error as fromAbi.ErrorType
591
-
592
576
  /**
593
577
  * Computes the [4-byte selector](https://solidity-by-example.org/function-selector/) for an {@link ox#AbiError.AbiError}.
594
578
  *
@@ -623,9 +607,6 @@ export declare namespace getSelector {
623
607
  type ErrorType = AbiItem.getSelector.ErrorType | Errors.GlobalErrorType
624
608
  }
625
609
 
626
- /* v8 ignore next */
627
- getSelector.parseError = (error: unknown) => error as getSelector.ErrorType
628
-
629
610
  // https://docs.soliditylang.org/en/v0.8.16/control-structures.html#panic-via-assert-and-error-via-require
630
611
  export const panicReasons = {
631
612
  1: 'An `assert` condition failed.',
package/core/AbiEvent.ts CHANGED
@@ -200,10 +200,6 @@ export declare namespace assertArgs {
200
200
  | Errors.GlobalErrorType
201
201
  }
202
202
 
203
- assertArgs.parseError = (error: unknown) =>
204
- /* v8 ignore next */
205
- error as assertArgs.ErrorType
206
-
207
203
  /**
208
204
  * ABI-Decodes the provided [Log Topics and Data](https://info.etherscan.com/what-is-event-logs/) according to the ABI Event's parameter types (`input`).
209
205
  *
@@ -403,10 +399,6 @@ export declare namespace decode {
403
399
  | Errors.GlobalErrorType
404
400
  }
405
401
 
406
- decode.parseError = (error: unknown) =>
407
- /* v8 ignore next */
408
- error as decode.ErrorType
409
-
410
402
  /**
411
403
  * ABI-encodes the provided event input (`inputs`) into an array of [Event Topics](https://info.etherscan.com/what-is-event-logs/).
412
404
  *
@@ -581,10 +573,6 @@ export declare namespace encode {
581
573
  | Errors.GlobalErrorType
582
574
  }
583
575
 
584
- encode.parseError = (error: unknown) =>
585
- /* v8 ignore next */
586
- error as encode.ErrorType
587
-
588
576
  /**
589
577
  * Formats an {@link ox#AbiEvent.AbiEvent} into a **Human Readable ABI Error**.
590
578
  *
@@ -621,10 +609,6 @@ export declare namespace format {
621
609
  type ErrorType = Errors.GlobalErrorType
622
610
  }
623
611
 
624
- format.parseError = (error: unknown) =>
625
- /* v8 ignore next */
626
- error as format.ErrorType
627
-
628
612
  /**
629
613
  * Parses an arbitrary **JSON ABI Event** or **Human Readable ABI Event** into a typed {@link ox#AbiEvent.AbiEvent}.
630
614
  *
@@ -725,10 +709,6 @@ export declare namespace from {
725
709
  type ErrorType = AbiItem.from.ErrorType | Errors.GlobalErrorType
726
710
  }
727
711
 
728
- from.parseEvent = (Event: unknown) =>
729
- /* v8 ignore next */
730
- Event as from.ErrorType
731
-
732
712
  /**
733
713
  * Extracts an {@link ox#AbiEvent.AbiEvent} from an {@link ox#Abi.Abi} given a name and optional arguments.
734
714
  *
@@ -821,10 +801,6 @@ export declare namespace fromAbi {
821
801
  type ErrorType = AbiItem.fromAbi.ErrorType | Errors.GlobalErrorType
822
802
  }
823
803
 
824
- fromAbi.parseError = (error: unknown) =>
825
- /* v8 ignore next */
826
- error as fromAbi.ErrorType
827
-
828
804
  /**
829
805
  * Computes the event selector (hash of event signature) for an {@link ox#AbiEvent.AbiEvent}.
830
806
  *
@@ -863,9 +839,6 @@ export declare namespace getSelector {
863
839
  type ErrorType = AbiItem.getSignatureHash.ErrorType | Errors.GlobalErrorType
864
840
  }
865
841
 
866
- /* v8 ignore next */
867
- getSelector.parseError = (error: unknown) => error as getSelector.ErrorType
868
-
869
842
  /**
870
843
  * Thrown when the provided arguments do not match the expected arguments.
871
844
  *
@@ -423,10 +423,6 @@ export declare namespace encodeData {
423
423
  type ErrorType = Errors.GlobalErrorType
424
424
  }
425
425
 
426
- encodeData.parseError = (error: unknown) =>
427
- /* v8 ignore next */
428
- error as encodeData.ErrorType
429
-
430
426
  /**
431
427
  * ABI-encodes a function's result (`outputs`).
432
428
  *
@@ -529,10 +525,6 @@ export declare namespace format {
529
525
  type ErrorType = Errors.GlobalErrorType
530
526
  }
531
527
 
532
- format.parseError = (error: unknown) =>
533
- /* v8 ignore next */
534
- error as format.ErrorType
535
-
536
528
  /**
537
529
  * Parses an arbitrary **JSON ABI Function** or **Human Readable ABI Function** into a typed {@link ox#AbiFunction.AbiFunction}.
538
530
  *
@@ -670,10 +662,6 @@ export declare namespace from {
670
662
  type ErrorType = AbiItem.from.ErrorType | Errors.GlobalErrorType
671
663
  }
672
664
 
673
- from.parseError = (error: unknown) =>
674
- /* v8 ignore next */
675
- error as from.ErrorType
676
-
677
665
  /**
678
666
  * Extracts an {@link ox#AbiFunction.AbiFunction} from an {@link ox#Abi.Abi} given a name and optional arguments.
679
667
  *
@@ -767,10 +755,6 @@ export declare namespace fromAbi {
767
755
  type ErrorType = AbiItem.fromAbi.ErrorType | Errors.GlobalErrorType
768
756
  }
769
757
 
770
- fromAbi.parseError = (error: unknown) =>
771
- /* v8 ignore next */
772
- error as fromAbi.ErrorType
773
-
774
758
  /**
775
759
  * Computes the [4-byte selector](https://solidity-by-example.org/function-selector/) for an {@link ox#AbiFunction.AbiFunction}.
776
760
  *
@@ -808,6 +792,3 @@ export function getSelector(abiItem: string | AbiFunction): Hex.Hex {
808
792
  export declare namespace getSelector {
809
793
  type ErrorType = AbiItem.getSelector.ErrorType | Errors.GlobalErrorType
810
794
  }
811
-
812
- /* v8 ignore next */
813
- getSelector.parseError = (error: unknown) => error as getSelector.ErrorType
package/core/AbiItem.ts CHANGED
@@ -108,10 +108,6 @@ export declare namespace format {
108
108
  type ErrorType = Errors.GlobalErrorType
109
109
  }
110
110
 
111
- format.parseError = (error: unknown) =>
112
- /* v8 ignore next */
113
- error as format.ErrorType
114
-
115
111
  /**
116
112
  * Parses an arbitrary **JSON ABI Item** or **Human Readable ABI Item** into a typed {@link ox#AbiItem.AbiItem}.
117
113
  *
@@ -262,10 +258,6 @@ export declare namespace from {
262
258
  type ErrorType = Errors.GlobalErrorType
263
259
  }
264
260
 
265
- from.parseError = (error: unknown) =>
266
- /* v8 ignore next */
267
- error as from.ErrorType
268
-
269
261
  /**
270
262
  * Extracts an {@link ox#AbiItem.AbiItem} from an {@link ox#Abi.Abi} given a name and optional arguments.
271
263
  *
@@ -486,10 +478,6 @@ export declare namespace fromAbi {
486
478
  type ErrorType = Errors.GlobalErrorType
487
479
  }
488
480
 
489
- fromAbi.parseError = (error: unknown) =>
490
- /* v8 ignore next */
491
- error as fromAbi.ErrorType
492
-
493
481
  /**
494
482
  * Computes the [4-byte selector](https://solidity-by-example.org/function-selector/) for an {@link ox#AbiItem.AbiItem}.
495
483
  *
@@ -531,9 +519,6 @@ export declare namespace getSelector {
531
519
  | Errors.GlobalErrorType
532
520
  }
533
521
 
534
- /* v8 ignore next */
535
- getSelector.parseError = (error: unknown) => error as getSelector.ErrorType
536
-
537
522
  /**
538
523
  * Computes the stringified signature for a given {@link ox#AbiItem.AbiItem}.
539
524
  *
@@ -576,9 +561,6 @@ export declare namespace getSignature {
576
561
  | Errors.GlobalErrorType
577
562
  }
578
563
 
579
- /* v8 ignore next */
580
- getSignature.parseError = (error: unknown) => error as getSignature.ErrorType
581
-
582
564
  /**
583
565
  * Computes the signature hash for an {@link ox#AbiItem.AbiItem}.
584
566
  *
@@ -625,10 +607,6 @@ export declare namespace getSignatureHash {
625
607
  | Errors.GlobalErrorType
626
608
  }
627
609
 
628
- getSignatureHash.parseError = (error: unknown) =>
629
- /* v8 ignore next */
630
- error as getSignatureHash.ErrorType
631
-
632
610
  /**
633
611
  * Throws when ambiguous types are found on overloaded ABI items.
634
612
  *
@@ -133,10 +133,6 @@ export declare namespace decode {
133
133
  | Errors.GlobalErrorType
134
134
  }
135
135
 
136
- decode.parseError = (error: unknown) =>
137
- /* v8 ignore next */
138
- error as decode.ErrorType
139
-
140
136
  /**
141
137
  * Encodes primitive values into ABI encoded data as per the [Application Binary Interface (ABI) Specification](https://docs.soliditylang.org/en/latest/abi-spec).
142
138
  *
@@ -203,10 +199,6 @@ export declare namespace encode {
203
199
  | Errors.GlobalErrorType
204
200
  }
205
201
 
206
- encode.parseError = (error: unknown) =>
207
- /* v8 ignore next */
208
- error as encode.ErrorType
209
-
210
202
  /**
211
203
  * Encodes an array of primitive values to a [packed ABI encoding](https://docs.soliditylang.org/en/latest/abi-spec.html#non-standard-packed-mode).
212
204
  *
@@ -312,9 +304,6 @@ export namespace encodePacked {
312
304
  }
313
305
  }
314
306
 
315
- /* v8 ignore next */
316
- encodePacked.parseError = (error: unknown) => error as encodePacked.ErrorType
317
-
318
307
  /**
319
308
  * Formats {@link ox#AbiParameters.AbiParameters} into **Human Readable ABI Parameters**.
320
309
  *
@@ -362,10 +351,6 @@ export declare namespace format {
362
351
  type ErrorType = Errors.GlobalErrorType
363
352
  }
364
353
 
365
- format.parseError = (error: unknown) =>
366
- /* v8 ignore next */
367
- error as format.ErrorType
368
-
369
354
  /**
370
355
  * Parses arbitrary **JSON ABI Parameters** or **Human Readable ABI Parameters** into typed {@link ox#AbiParameters.AbiParameters}.
371
356
  *
@@ -474,10 +459,6 @@ export declare namespace from {
474
459
  type ErrorType = Errors.GlobalErrorType
475
460
  }
476
461
 
477
- from.parseError = (error: unknown) =>
478
- /* v8 ignore next */
479
- error as from.ErrorType
480
-
481
462
  /**
482
463
  * Throws when the data size is too small for the given parameters.
483
464
  *
package/core/Address.ts CHANGED
@@ -66,9 +66,6 @@ export declare namespace assert {
66
66
  type ErrorType = InvalidAddressError | Errors.GlobalErrorType
67
67
  }
68
68
 
69
- /* v8 ignore next */
70
- assert.parseError = (error: unknown) => error as assert.ErrorType
71
-
72
69
  /**
73
70
  * Computes the checksum address for the given {@link ox#Address.Address}.
74
71
  *
@@ -114,10 +111,6 @@ export declare namespace checksum {
114
111
  | Errors.GlobalErrorType
115
112
  }
116
113
 
117
- checksum.parseError = (error: unknown) =>
118
- /* v8 ignore next */
119
- error as checksum.ErrorType
120
-
121
114
  /**
122
115
  * Converts a stringified address to a typed (checksummed) {@link ox#Address.Address}.
123
116
  *
@@ -174,9 +167,6 @@ export declare namespace from {
174
167
  | Errors.GlobalErrorType
175
168
  }
176
169
 
177
- /* v8 ignore next */
178
- from.parseError = (error: unknown) => error as from.ErrorType
179
-
180
170
  /**
181
171
  * Converts an ECDSA public key to an {@link ox#Address.Address}.
182
172
  *
@@ -221,10 +211,6 @@ export declare namespace fromPublicKey {
221
211
  | Errors.GlobalErrorType
222
212
  }
223
213
 
224
- fromPublicKey.parseError = (error: unknown) =>
225
- /* v8 ignore next */
226
- error as fromPublicKey.ErrorType
227
-
228
214
  /**
229
215
  * Checks if two {@link ox#Address.Address} are equal.
230
216
  *
@@ -264,10 +250,6 @@ export declare namespace isEqual {
264
250
  type ErrorType = assert.ErrorType | Errors.GlobalErrorType
265
251
  }
266
252
 
267
- isEqual.parseError = (error: unknown) =>
268
- /* v8 ignore next */
269
- error as isEqual.ErrorType
270
-
271
253
  /**
272
254
  * Checks if the given address is a valid {@link ox#Address.Address}.
273
255
  *
package/core/AesGcm.ts CHANGED
@@ -68,10 +68,6 @@ export declare namespace decrypt {
68
68
  | Errors.GlobalErrorType
69
69
  }
70
70
 
71
- decrypt.parseError = (error: unknown) =>
72
- /* v8 ignore next */
73
- error as decrypt.ErrorType
74
-
75
71
  /**
76
72
  * Encrypts data using AES-GCM.
77
73
  *
@@ -134,10 +130,6 @@ export declare namespace encrypt {
134
130
  | Errors.GlobalErrorType
135
131
  }
136
132
 
137
- encrypt.parseError = (error: unknown) =>
138
- /* v8 ignore next */
139
- error as encrypt.ErrorType
140
-
141
133
  /**
142
134
  * Derives an AES-GCM key from a password using PBKDF2.
143
135
  *
@@ -189,10 +181,6 @@ export declare namespace getKey {
189
181
  type ErrorType = Errors.GlobalErrorType
190
182
  }
191
183
 
192
- getKey.parseError = (error: unknown) =>
193
- /* v8 ignore next */
194
- error as getKey.ErrorType
195
-
196
184
  /**
197
185
  * Generates a random salt of the specified size.
198
186
  *
@@ -214,7 +202,3 @@ export function randomSalt(size = 32): Bytes.Bytes {
214
202
  export declare namespace randomSalt {
215
203
  type ErrorType = Bytes.random.ErrorType | Errors.GlobalErrorType
216
204
  }
217
-
218
- Bytes.random.parseError = (error) =>
219
- /* v8 ignore next */
220
- error as randomSalt.ErrorType
@@ -153,10 +153,6 @@ export declare namespace from {
153
153
  type ErrorType = Errors.GlobalErrorType
154
154
  }
155
155
 
156
- from.parseError = (error: unknown) =>
157
- /* v8 ignore next */
158
- error as from.ErrorType
159
-
160
156
  /**
161
157
  * Converts an {@link ox#Authorization.Rpc} to an {@link ox#Authorization.Authorization}.
162
158
  *
@@ -193,10 +189,6 @@ export declare namespace fromRpc {
193
189
  type ErrorType = Errors.GlobalErrorType
194
190
  }
195
191
 
196
- fromRpc.parseError = (error: unknown) =>
197
- /* v8 ignore next */
198
- error as fromRpc.ErrorType
199
-
200
192
  /**
201
193
  * Converts an {@link ox#Authorization.ListRpc} to an {@link ox#Authorization.List}.
202
194
  *
@@ -225,10 +217,6 @@ export declare namespace fromRpcList {
225
217
  type ErrorType = Errors.GlobalErrorType
226
218
  }
227
219
 
228
- fromRpcList.parseError = (error: unknown) =>
229
- /* v8 ignore next */
230
- error as fromRpcList.ErrorType
231
-
232
220
  /**
233
221
  * Converts an {@link ox#Authorization.Tuple} to an {@link ox#Authorization.Authorization}.
234
222
  *
@@ -297,10 +285,6 @@ export declare namespace fromTuple {
297
285
  type ErrorType = Errors.GlobalErrorType
298
286
  }
299
287
 
300
- fromTuple.parseError = (error: unknown) =>
301
- /* v8 ignore next */
302
- error as fromTuple.ErrorType
303
-
304
288
  /**
305
289
  * Converts an {@link ox#Authorization.TupleList} to an {@link ox#Authorization.List}.
306
290
  *
@@ -375,10 +359,6 @@ export declare namespace fromTupleList {
375
359
  type ErrorType = Errors.GlobalErrorType
376
360
  }
377
361
 
378
- fromTupleList.parseError = (error: unknown) =>
379
- /* v8 ignore next */
380
- error as fromTupleList.ErrorType
381
-
382
362
  /**
383
363
  * Computes the sign payload for an {@link ox#Authorization.Authorization} in [EIP-7702 format](https://eips.ethereum.org/EIPS/eip-7702): `keccak256('0x05' || rlp([chain_id, address, nonce]))`.
384
364
  *
@@ -414,10 +394,6 @@ export declare namespace getSignPayload {
414
394
  type ErrorType = hash.ErrorType | Errors.GlobalErrorType
415
395
  }
416
396
 
417
- getSignPayload.parseError = (error: unknown) =>
418
- /* v8 ignore next */
419
- error as getSignPayload.ErrorType
420
-
421
397
  /**
422
398
  * Computes the hash for an {@link ox#Authorization.Authorization} in [EIP-7702 format](https://eips.ethereum.org/EIPS/eip-7702): `keccak256('0x05' || rlp([chain_id, address, nonce]))`.
423
399
  *
@@ -450,10 +426,6 @@ export declare namespace hash {
450
426
  | Errors.GlobalErrorType
451
427
  }
452
428
 
453
- hash.parseError = (error: unknown) =>
454
- /* v8 ignore next */
455
- error as hash.ErrorType
456
-
457
429
  /**
458
430
  * Converts an {@link ox#Authorization.Authorization} to an {@link ox#Authorization.Rpc}.
459
431
  *
@@ -489,10 +461,6 @@ export declare namespace toRpc {
489
461
  type ErrorType = Errors.GlobalErrorType
490
462
  }
491
463
 
492
- toRpc.parseError = (error: unknown) =>
493
- /* v8 ignore next */
494
- error as toRpc.ErrorType
495
-
496
464
  /**
497
465
  * Converts an {@link ox#Authorization.List} to an {@link ox#Authorization.ListRpc}.
498
466
  *
@@ -521,10 +489,6 @@ export declare namespace toRpcList {
521
489
  type ErrorType = Errors.GlobalErrorType
522
490
  }
523
491
 
524
- toRpcList.parseError = (error: unknown) =>
525
- /* v8 ignore next */
526
- error as toRpcList.ErrorType
527
-
528
492
  /**
529
493
  * Converts an {@link ox#Authorization.Authorization} to an {@link ox#Authorization.Tuple}.
530
494
  *
@@ -569,10 +533,6 @@ export declare namespace toTuple {
569
533
  type ErrorType = Errors.GlobalErrorType
570
534
  }
571
535
 
572
- toTuple.parseError = (error: unknown) =>
573
- /* v8 ignore next */
574
- error as toTuple.ErrorType
575
-
576
536
  /**
577
537
  * Converts an {@link ox#Authorization.List} to an {@link ox#Authorization.TupleList}.
578
538
  *
@@ -633,7 +593,3 @@ export declare namespace toTupleList {
633
593
 
634
594
  type ErrorType = Errors.GlobalErrorType
635
595
  }
636
-
637
- toTupleList.parseError = (error: unknown) =>
638
- /* v8 ignore next */
639
- error as toTupleList.ErrorType
package/core/Base58.ts CHANGED
@@ -25,10 +25,6 @@ export declare namespace fromBytes {
25
25
  type ErrorType = internal.from.ErrorType | Errors.GlobalErrorType
26
26
  }
27
27
 
28
- fromBytes.parseError = (error: unknown) =>
29
- /* v8 ignore next */
30
- error as fromBytes.ErrorType
31
-
32
28
  /**
33
29
  * Encodes a {@link ox#Hex.Hex} to a Base58-encoded string.
34
30
  *
@@ -51,10 +47,6 @@ export declare namespace fromHex {
51
47
  type ErrorType = internal.from.ErrorType | Errors.GlobalErrorType
52
48
  }
53
49
 
54
- fromHex.parseError = (error: unknown) =>
55
- /* v8 ignore next */
56
- error as fromHex.ErrorType
57
-
58
50
  /**
59
51
  * Encodes a string to a Base58-encoded string.
60
52
  *
@@ -77,10 +69,6 @@ export declare namespace fromString {
77
69
  type ErrorType = internal.from.ErrorType | Errors.GlobalErrorType
78
70
  }
79
71
 
80
- fromString.parseError = (error: unknown) =>
81
- /* v8 ignore next */
82
- error as fromString.ErrorType
83
-
84
72
  /**
85
73
  * Decodes a Base58-encoded string to a {@link ox#Bytes.Bytes}.
86
74
  *
@@ -103,10 +91,6 @@ export declare namespace toBytes {
103
91
  type ErrorType = Errors.GlobalErrorType
104
92
  }
105
93
 
106
- toBytes.parseError = (error: unknown) =>
107
- /* v8 ignore next */
108
- error as toBytes.ErrorType
109
-
110
94
  /**
111
95
  * Decodes a Base58-encoded string to {@link ox#Hex.Hex}.
112
96
  *
@@ -149,10 +133,6 @@ export declare namespace toHex {
149
133
  type ErrorType = Errors.GlobalErrorType
150
134
  }
151
135
 
152
- toHex.parseError = (error: unknown) =>
153
- /* v8 ignore next */
154
- error as toHex.ErrorType
155
-
156
136
  /**
157
137
  * Decodes a Base58-encoded string to a string.
158
138
  *
@@ -174,7 +154,3 @@ export function toString(value: string): string {
174
154
  export declare namespace toString {
175
155
  type ErrorType = Errors.GlobalErrorType
176
156
  }
177
-
178
- toString.parseError = (error: unknown) =>
179
- /* v8 ignore next */
180
- error as toString.ErrorType
package/core/Base64.ts CHANGED
@@ -101,10 +101,6 @@ export declare namespace fromBytes {
101
101
  type ErrorType = Errors.GlobalErrorType
102
102
  }
103
103
 
104
- fromBytes.parseError = (error: unknown) =>
105
- /* v8 ignore next */
106
- error as fromBytes.ErrorType
107
-
108
104
  /**
109
105
  * Encodes a {@link ox#Hex.Hex} to a Base64-encoded string (with optional padding and/or URL-safe characters).
110
106
  *
@@ -166,10 +162,6 @@ export declare namespace fromHex {
166
162
  type ErrorType = fromBytes.ErrorType | Errors.GlobalErrorType
167
163
  }
168
164
 
169
- fromHex.parseError = (error: unknown) =>
170
- /* v8 ignore next */
171
- error as fromHex.ErrorType
172
-
173
165
  /**
174
166
  * Encodes a string to a Base64-encoded string (with optional padding and/or URL-safe characters).
175
167
  *
@@ -231,10 +223,6 @@ export declare namespace fromString {
231
223
  type ErrorType = fromBytes.ErrorType | Errors.GlobalErrorType
232
224
  }
233
225
 
234
- fromString.parseError = (error: unknown) =>
235
- /* v8 ignore next */
236
- error as fromString.ErrorType
237
-
238
226
  /**
239
227
  * Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to {@link ox#Bytes.Bytes}.
240
228
  *
@@ -276,10 +264,6 @@ export declare namespace toBytes {
276
264
  type ErrorType = Errors.GlobalErrorType
277
265
  }
278
266
 
279
- toBytes.parseError = (error: unknown) =>
280
- /* v8 ignore next */
281
- error as toBytes.ErrorType
282
-
283
267
  /**
284
268
  * Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to {@link ox#Hex.Hex}.
285
269
  *
@@ -302,10 +286,6 @@ export declare namespace toHex {
302
286
  type ErrorType = toBytes.ErrorType | Errors.GlobalErrorType
303
287
  }
304
288
 
305
- toHex.parseError = (error: unknown) =>
306
- /* v8 ignore next */
307
- error as toHex.ErrorType
308
-
309
289
  /**
310
290
  * Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to a string.
311
291
  *
@@ -327,7 +307,3 @@ export function toString(value: string): string {
327
307
  export declare namespace toString {
328
308
  type ErrorType = toBytes.ErrorType | Errors.GlobalErrorType
329
309
  }
330
-
331
- toString.parseError = (error: unknown) =>
332
- /* v8 ignore next */
333
- error as toString.ErrorType