@reown/appkit-cdn 1.8.15-e95f0d61c614677233e13ea9f055d3f75fcdba81.0 → 1.8.15-viem-upgrade.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.
- package/package.json +10 -10
- package/dist/ConstantsUtil-C2Ed2H2U.js +0 -24
- package/dist/ConstantsUtil-C2Ed2H2U.js.map +0 -1
- package/dist/ExchangeController-h_95bqSB.js +0 -265
- package/dist/ExchangeController-h_95bqSB.js.map +0 -1
- package/dist/HelpersUtil-xYeUfp1A.js +0 -141
- package/dist/HelpersUtil-xYeUfp1A.js.map +0 -1
- package/dist/NavigationUtil-Ci15WS4K.js +0 -9
- package/dist/NavigationUtil-Ci15WS4K.js.map +0 -1
- package/dist/PhArrowCircleDown-B41iUlWV.js +0 -74
- package/dist/PhArrowCircleDown-B41iUlWV.js.map +0 -1
- package/dist/PhArrowClockwise-BY8u5n41.js +0 -74
- package/dist/PhArrowClockwise-BY8u5n41.js.map +0 -1
- package/dist/PhArrowDown-ClD8GZ65.js +0 -74
- package/dist/PhArrowDown-ClD8GZ65.js.map +0 -1
- package/dist/PhArrowLeft-B8MXUz60.js +0 -74
- package/dist/PhArrowLeft-B8MXUz60.js.map +0 -1
- package/dist/PhArrowRight-Cewa_Slb.js +0 -74
- package/dist/PhArrowRight-Cewa_Slb.js.map +0 -1
- package/dist/PhArrowSquareOut-whgWh-lD.js +0 -74
- package/dist/PhArrowSquareOut-whgWh-lD.js.map +0 -1
- package/dist/PhArrowUp-B1HXBxie.js +0 -74
- package/dist/PhArrowUp-B1HXBxie.js.map +0 -1
- package/dist/PhArrowUpRight-CfFYe4FP.js +0 -74
- package/dist/PhArrowUpRight-CfFYe4FP.js.map +0 -1
- package/dist/PhArrowsClockwise-gL1Gkrtx.js +0 -74
- package/dist/PhArrowsClockwise-gL1Gkrtx.js.map +0 -1
- package/dist/PhArrowsDownUp-BqUEdUQr.js +0 -74
- package/dist/PhArrowsDownUp-BqUEdUQr.js.map +0 -1
- package/dist/PhArrowsLeftRight-BlZU63eY.js +0 -74
- package/dist/PhArrowsLeftRight-BlZU63eY.js.map +0 -1
- package/dist/PhBank-gbg_jlI7.js +0 -74
- package/dist/PhBank-gbg_jlI7.js.map +0 -1
- package/dist/PhBrowser-CMlD-YJw.js +0 -74
- package/dist/PhBrowser-CMlD-YJw.js.map +0 -1
- package/dist/PhCaretDown-3agTO8Jp.js +0 -74
- package/dist/PhCaretDown-3agTO8Jp.js.map +0 -1
- package/dist/PhCaretLeft-_MTni7Z5.js +0 -74
- package/dist/PhCaretLeft-_MTni7Z5.js.map +0 -1
- package/dist/PhCaretRight-Ci9fAHPG.js +0 -74
- package/dist/PhCaretRight-Ci9fAHPG.js.map +0 -1
- package/dist/PhCaretUp-vFG4Fame.js +0 -74
- package/dist/PhCaretUp-vFG4Fame.js.map +0 -1
- package/dist/PhCheck-mChGK6K_.js +0 -74
- package/dist/PhCheck-mChGK6K_.js.map +0 -1
- package/dist/PhCircleHalf-DZ7-vfxf.js +0 -74
- package/dist/PhCircleHalf-DZ7-vfxf.js.map +0 -1
- package/dist/PhClock-Bc5XWXb6.js +0 -74
- package/dist/PhClock-Bc5XWXb6.js.map +0 -1
- package/dist/PhCompass-Cu2MB-55.js +0 -74
- package/dist/PhCompass-Cu2MB-55.js.map +0 -1
- package/dist/PhCopy-BGUjyTts.js +0 -74
- package/dist/PhCopy-BGUjyTts.js.map +0 -1
- package/dist/PhCreditCard-vxFWID4B.js +0 -74
- package/dist/PhCreditCard-vxFWID4B.js.map +0 -1
- package/dist/PhCurrencyDollar-BfOoDhJr.js +0 -74
- package/dist/PhCurrencyDollar-BfOoDhJr.js.map +0 -1
- package/dist/PhDesktop-Cq6jwzbS.js +0 -74
- package/dist/PhDesktop-Cq6jwzbS.js.map +0 -1
- package/dist/PhDeviceMobile-BCtTp6jj.js +0 -74
- package/dist/PhDeviceMobile-BCtTp6jj.js.map +0 -1
- package/dist/PhDotsThree-BGgD-WIO.js +0 -74
- package/dist/PhDotsThree-BGgD-WIO.js.map +0 -1
- package/dist/PhEnvelope-CQiV0-zG.js +0 -74
- package/dist/PhEnvelope-CQiV0-zG.js.map +0 -1
- package/dist/PhFunnelSimple-BHGtxTNf.js +0 -74
- package/dist/PhFunnelSimple-BHGtxTNf.js.map +0 -1
- package/dist/PhGlobe-Q8oVkf6X.js +0 -74
- package/dist/PhGlobe-Q8oVkf6X.js.map +0 -1
- package/dist/PhIdentificationCard-Cz9LzvVR.js +0 -74
- package/dist/PhIdentificationCard-Cz9LzvVR.js.map +0 -1
- package/dist/PhImage-CP5_qKk-.js +0 -74
- package/dist/PhImage-CP5_qKk-.js.map +0 -1
- package/dist/PhInfo-CTlE1X9Z.js +0 -74
- package/dist/PhInfo-CTlE1X9Z.js.map +0 -1
- package/dist/PhLightbulb-CcLpnAAb.js +0 -74
- package/dist/PhLightbulb-CcLpnAAb.js.map +0 -1
- package/dist/PhMagnifyingGlass-n58GUAck.js +0 -74
- package/dist/PhMagnifyingGlass-n58GUAck.js.map +0 -1
- package/dist/PhPaperPlaneRight-C0sf2XV8.js +0 -74
- package/dist/PhPaperPlaneRight-C0sf2XV8.js.map +0 -1
- package/dist/PhPlus-BJxvt7Uc.js +0 -74
- package/dist/PhPlus-BJxvt7Uc.js.map +0 -1
- package/dist/PhPower-BvktxO2-.js +0 -74
- package/dist/PhPower-BvktxO2-.js.map +0 -1
- package/dist/PhPuzzlePiece-CDDyUPYo.js +0 -74
- package/dist/PhPuzzlePiece-CDDyUPYo.js.map +0 -1
- package/dist/PhQrCode-BlGI8529.js +0 -74
- package/dist/PhQrCode-BlGI8529.js.map +0 -1
- package/dist/PhQuestion-DGZj6iDZ.js +0 -74
- package/dist/PhQuestion-DGZj6iDZ.js.map +0 -1
- package/dist/PhQuestionMark-CTmeI7MQ.js +0 -74
- package/dist/PhQuestionMark-CTmeI7MQ.js.map +0 -1
- package/dist/PhSealCheck-BSlqkxnH.js +0 -74
- package/dist/PhSealCheck-BSlqkxnH.js.map +0 -1
- package/dist/PhSignOut-CEXxlRk3.js +0 -74
- package/dist/PhSignOut-CEXxlRk3.js.map +0 -1
- package/dist/PhSpinner-Do1pY8fG.js +0 -74
- package/dist/PhSpinner-Do1pY8fG.js.map +0 -1
- package/dist/PhTrash-JNKavmpg.js +0 -74
- package/dist/PhTrash-JNKavmpg.js.map +0 -1
- package/dist/PhUser-BW7E-xYg.js +0 -74
- package/dist/PhUser-BW7E-xYg.js.map +0 -1
- package/dist/PhVault-mzxUgBYN.js +0 -74
- package/dist/PhVault-mzxUgBYN.js.map +0 -1
- package/dist/PhWallet-BR9JThKU.js +0 -74
- package/dist/PhWallet-BR9JThKU.js.map +0 -1
- package/dist/PhWarning-DxuQ70WM.js +0 -74
- package/dist/PhWarning-DxuQ70WM.js.map +0 -1
- package/dist/PhWarningCircle-DCI0JC1F.js +0 -74
- package/dist/PhWarningCircle-DCI0JC1F.js.map +0 -1
- package/dist/PhX-CWNXqpGn.js +0 -74
- package/dist/PhX-CWNXqpGn.js.map +0 -1
- package/dist/SwapController-CwWMKLPL.js +0 -684
- package/dist/SwapController-CwWMKLPL.js.map +0 -1
- package/dist/WebCryptoP256-B0F1BoHd.js +0 -3299
- package/dist/WebCryptoP256-B0F1BoHd.js.map +0 -1
- package/dist/add-emiZFWKE.js +0 -20
- package/dist/add-emiZFWKE.js.map +0 -1
- package/dist/all-wallets-BsUQMPgW.js +0 -11
- package/dist/all-wallets-BsUQMPgW.js.map +0 -1
- package/dist/app-store-C_L7BoYc.js +0 -22
- package/dist/app-store-C_L7BoYc.js.map +0 -1
- package/dist/appkit-DY7XpK4K.js +0 -118074
- package/dist/appkit-DY7XpK4K.js.map +0 -1
- package/dist/appkit.js +0 -11
- package/dist/appkit.js.map +0 -1
- package/dist/apple-c3IhsqlY.js +0 -23
- package/dist/apple-c3IhsqlY.js.map +0 -1
- package/dist/arrow-bottom-BZnD_9In.js +0 -13
- package/dist/arrow-bottom-BZnD_9In.js.map +0 -1
- package/dist/arrow-bottom-circle-C9HRc3sW.js +0 -16
- package/dist/arrow-bottom-circle-C9HRc3sW.js.map +0 -1
- package/dist/arrow-left-DFlXkOXB.js +0 -13
- package/dist/arrow-left-DFlXkOXB.js.map +0 -1
- package/dist/arrow-right-_EPGORWI.js +0 -13
- package/dist/arrow-right-_EPGORWI.js.map +0 -1
- package/dist/arrow-top-CrBCvUsj.js +0 -13
- package/dist/arrow-top-CrBCvUsj.js.map +0 -1
- package/dist/async-directive-CEBoIWb8.js +0 -73
- package/dist/async-directive-CEBoIWb8.js.map +0 -1
- package/dist/bank-IrtkQnW0.js +0 -19
- package/dist/bank-IrtkQnW0.js.map +0 -1
- package/dist/basic-CCVK4Xb-.js +0 -4914
- package/dist/basic-CCVK4Xb-.js.map +0 -1
- package/dist/browser-5XoTmr4n.js +0 -1991
- package/dist/browser-5XoTmr4n.js.map +0 -1
- package/dist/browser-DGJ1T57R.js +0 -19
- package/dist/browser-DGJ1T57R.js.map +0 -1
- package/dist/card-euIrImBb.js +0 -19
- package/dist/card-euIrImBb.js.map +0 -1
- package/dist/ccip-BnHcw2Q9.js +0 -164
- package/dist/ccip-BnHcw2Q9.js.map +0 -1
- package/dist/checkmark-DOfVZz7v.js +0 -16
- package/dist/checkmark-DOfVZz7v.js.map +0 -1
- package/dist/checkmark-bold-CBk9rneH.js +0 -13
- package/dist/checkmark-bold-CBk9rneH.js.map +0 -1
- package/dist/chevron-bottom-DqxWxVi0.js +0 -13
- package/dist/chevron-bottom-DqxWxVi0.js.map +0 -1
- package/dist/chevron-left-JKsYvrX0.js +0 -13
- package/dist/chevron-left-JKsYvrX0.js.map +0 -1
- package/dist/chevron-right-0IHVmnlN.js +0 -13
- package/dist/chevron-right-0IHVmnlN.js.map +0 -1
- package/dist/chevron-top-q1UXuE7C.js +0 -13
- package/dist/chevron-top-q1UXuE7C.js.map +0 -1
- package/dist/chrome-store-C1gUHLGC.js +0 -66
- package/dist/chrome-store-C1gUHLGC.js.map +0 -1
- package/dist/class-map-CqyLxUs0.js +0 -101
- package/dist/class-map-CqyLxUs0.js.map +0 -1
- package/dist/clock-CRgBEN3N.js +0 -13
- package/dist/clock-CRgBEN3N.js.map +0 -1
- package/dist/close-DqwtanuV.js +0 -13
- package/dist/close-DqwtanuV.js.map +0 -1
- package/dist/clsx.m-D57qXwfE.js +0 -21
- package/dist/clsx.m-D57qXwfE.js.map +0 -1
- package/dist/coinPlaceholder-DGuEyon3.js +0 -13
- package/dist/coinPlaceholder-DGuEyon3.js.map +0 -1
- package/dist/compass-D3Lk_JmD.js +0 -13
- package/dist/compass-D3Lk_JmD.js.map +0 -1
- package/dist/copy-0bHy8N_r.js +0 -20
- package/dist/copy-0bHy8N_r.js.map +0 -1
- package/dist/core-C111yg8v.js +0 -16288
- package/dist/core-C111yg8v.js.map +0 -1
- package/dist/cursor-Bnlh8YKu.js +0 -8
- package/dist/cursor-Bnlh8YKu.js.map +0 -1
- package/dist/cursor-transparent-BqTVTA3D.js +0 -17
- package/dist/cursor-transparent-BqTVTA3D.js.map +0 -1
- package/dist/data-capture-BtdmOx65.js +0 -549
- package/dist/data-capture-BtdmOx65.js.map +0 -1
- package/dist/desktop-BKaI6I0c.js +0 -14
- package/dist/desktop-BKaI6I0c.js.map +0 -1
- package/dist/disconnect-CJtwIHdJ.js +0 -13
- package/dist/disconnect-CJtwIHdJ.js.map +0 -1
- package/dist/discord-oHqb6ClE.js +0 -22
- package/dist/discord-oHqb6ClE.js.map +0 -1
- package/dist/email-9QNGgeQQ.js +0 -421
- package/dist/email-9QNGgeQQ.js.map +0 -1
- package/dist/embedded-wallet-C_CLs-ZL.js +0 -952
- package/dist/embedded-wallet-C_CLs-ZL.js.map +0 -1
- package/dist/etherscan-Dkkz1Mfh.js +0 -11
- package/dist/etherscan-Dkkz1Mfh.js.map +0 -1
- package/dist/exclamation-triangle-BQbUCEhi.js +0 -9
- package/dist/exclamation-triangle-BQbUCEhi.js.map +0 -1
- package/dist/extension-C2hKzEZZ.js +0 -13
- package/dist/extension-C2hKzEZZ.js.map +0 -1
- package/dist/external-link-CIjsnb3X.js +0 -13
- package/dist/external-link-CIjsnb3X.js.map +0 -1
- package/dist/facebook-1Hufe3sI.js +0 -31
- package/dist/facebook-1Hufe3sI.js.map +0 -1
- package/dist/farcaster-DlSxA8AD.js +0 -17
- package/dist/farcaster-DlSxA8AD.js.map +0 -1
- package/dist/features-CubAsZN1.js +0 -319
- package/dist/features-CubAsZN1.js.map +0 -1
- package/dist/filters-Bx5zOyri.js +0 -13
- package/dist/filters-Bx5zOyri.js.map +0 -1
- package/dist/github-CT_NtR6h.js +0 -23
- package/dist/github-CT_NtR6h.js.map +0 -1
- package/dist/google-Dkv0ZPY6.js +0 -23
- package/dist/google-Dkv0ZPY6.js.map +0 -1
- package/dist/hashTypedData-Q6QDIxse.js +0 -262
- package/dist/hashTypedData-Q6QDIxse.js.map +0 -1
- package/dist/help-circle-Dh0SYux9.js +0 -17
- package/dist/help-circle-Dh0SYux9.js.map +0 -1
- package/dist/id-Dc_gfIHE.js +0 -17
- package/dist/id-Dc_gfIHE.js.map +0 -1
- package/dist/if-defined-B5CxFQec.js +0 -11
- package/dist/if-defined-B5CxFQec.js.map +0 -1
- package/dist/image-DPwaTi09.js +0 -9
- package/dist/image-DPwaTi09.js.map +0 -1
- package/dist/index-AsDH-m9e.js +0 -456
- package/dist/index-AsDH-m9e.js.map +0 -1
- package/dist/index-B-AePZns.js +0 -1514
- package/dist/index-B-AePZns.js.map +0 -1
- package/dist/index-B0nuzWGd.js +0 -153
- package/dist/index-B0nuzWGd.js.map +0 -1
- package/dist/index-BFK8rn8f.js +0 -985
- package/dist/index-BFK8rn8f.js.map +0 -1
- package/dist/index-BGtDVhOX.js +0 -218
- package/dist/index-BGtDVhOX.js.map +0 -1
- package/dist/index-BXRoNn9X.js +0 -147
- package/dist/index-BXRoNn9X.js.map +0 -1
- package/dist/index-BYnWTIsP.js +0 -257
- package/dist/index-BYnWTIsP.js.map +0 -1
- package/dist/index-B_yrV2-r.js +0 -7258
- package/dist/index-B_yrV2-r.js.map +0 -1
- package/dist/index-BcCvzVg5.js +0 -716
- package/dist/index-BcCvzVg5.js.map +0 -1
- package/dist/index-BeSFhM_p.js +0 -120
- package/dist/index-BeSFhM_p.js.map +0 -1
- package/dist/index-BgnNrRDq.js +0 -967
- package/dist/index-BgnNrRDq.js.map +0 -1
- package/dist/index-BqpTTobE.js +0 -984
- package/dist/index-BqpTTobE.js.map +0 -1
- package/dist/index-BxPoDEMu.js +0 -7481
- package/dist/index-BxPoDEMu.js.map +0 -1
- package/dist/index-ByLuz3My.js +0 -182
- package/dist/index-ByLuz3My.js.map +0 -1
- package/dist/index-BzPjzg08.js +0 -62
- package/dist/index-BzPjzg08.js.map +0 -1
- package/dist/index-C2E-8AS5.js +0 -249
- package/dist/index-C2E-8AS5.js.map +0 -1
- package/dist/index-C4icMnjM.js +0 -521
- package/dist/index-C4icMnjM.js.map +0 -1
- package/dist/index-C8av2G6v.js +0 -136
- package/dist/index-C8av2G6v.js.map +0 -1
- package/dist/index-CE9D5nR3.js +0 -441
- package/dist/index-CE9D5nR3.js.map +0 -1
- package/dist/index-CI83C2eb.js +0 -124
- package/dist/index-CI83C2eb.js.map +0 -1
- package/dist/index-CK8vtUMI.js +0 -181
- package/dist/index-CK8vtUMI.js.map +0 -1
- package/dist/index-CY_gr4c7.js +0 -286
- package/dist/index-CY_gr4c7.js.map +0 -1
- package/dist/index-CZmyXVNe.js +0 -198
- package/dist/index-CZmyXVNe.js.map +0 -1
- package/dist/index-CemyBXIP.js +0 -8825
- package/dist/index-CemyBXIP.js.map +0 -1
- package/dist/index-CkrKEace.js +0 -180
- package/dist/index-CkrKEace.js.map +0 -1
- package/dist/index-Cl94CXn7.js +0 -110
- package/dist/index-Cl94CXn7.js.map +0 -1
- package/dist/index-CwK6o8Hz.js +0 -18322
- package/dist/index-CwK6o8Hz.js.map +0 -1
- package/dist/index-Cy1DAN6W.js +0 -542
- package/dist/index-Cy1DAN6W.js.map +0 -1
- package/dist/index-CziMS40-.js +0 -281
- package/dist/index-CziMS40-.js.map +0 -1
- package/dist/index-D6qUKJRD.js +0 -1178
- package/dist/index-D6qUKJRD.js.map +0 -1
- package/dist/index-DDYN4XOm.js +0 -211
- package/dist/index-DDYN4XOm.js.map +0 -1
- package/dist/index-DHcBAN0Q.js +0 -9350
- package/dist/index-DHcBAN0Q.js.map +0 -1
- package/dist/index-DPEv06yg.js +0 -520
- package/dist/index-DPEv06yg.js.map +0 -1
- package/dist/index-DShG1B5f.js +0 -131
- package/dist/index-DShG1B5f.js.map +0 -1
- package/dist/index-DTOiAL1i.js +0 -52
- package/dist/index-DTOiAL1i.js.map +0 -1
- package/dist/index-DVyI9O5i.js +0 -92
- package/dist/index-DVyI9O5i.js.map +0 -1
- package/dist/index-DvXemhcG.js +0 -611
- package/dist/index-DvXemhcG.js.map +0 -1
- package/dist/index-Fvw4sbfL.js +0 -198
- package/dist/index-Fvw4sbfL.js.map +0 -1
- package/dist/index-PiXpeN5n.js +0 -3987
- package/dist/index-PiXpeN5n.js.map +0 -1
- package/dist/index-btvyw5xW.js +0 -126
- package/dist/index-btvyw5xW.js.map +0 -1
- package/dist/index-dsKNiJml.js +0 -70
- package/dist/index-dsKNiJml.js.map +0 -1
- package/dist/index-gEaD8hfK.js +0 -109
- package/dist/index-gEaD8hfK.js.map +0 -1
- package/dist/index-isOxTzum.js +0 -147
- package/dist/index-isOxTzum.js.map +0 -1
- package/dist/index-nWSgWKaF.js +0 -2277
- package/dist/index-nWSgWKaF.js.map +0 -1
- package/dist/index-qQiVpif7.js +0 -1372
- package/dist/index-qQiVpif7.js.map +0 -1
- package/dist/index-tv-dalA1.js +0 -73
- package/dist/index-tv-dalA1.js.map +0 -1
- package/dist/index.es-BzCqYMc8.js +0 -8391
- package/dist/index.es-BzCqYMc8.js.map +0 -1
- package/dist/info-4ssFoXJS.js +0 -8
- package/dist/info-4ssFoXJS.js.map +0 -1
- package/dist/info-circle-BnqHwvcX.js +0 -17
- package/dist/info-circle-BnqHwvcX.js.map +0 -1
- package/dist/jsxRuntime.module-CWsrm3KZ.js +0 -14
- package/dist/jsxRuntime.module-CWsrm3KZ.js.map +0 -1
- package/dist/lightbulb-BEEbBBZQ.js +0 -8
- package/dist/lightbulb-BEEbBBZQ.js.map +0 -1
- package/dist/localBatchGatewayRequest-Dryp85EG.js +0 -103
- package/dist/localBatchGatewayRequest-Dryp85EG.js.map +0 -1
- package/dist/mail-CJLCh290.js +0 -13
- package/dist/mail-CJLCh290.js.map +0 -1
- package/dist/metamask-sdk-4u4X6Xn3.js +0 -16699
- package/dist/metamask-sdk-4u4X6Xn3.js.map +0 -1
- package/dist/mobile-Deau0Za4.js +0 -14
- package/dist/mobile-Deau0Za4.js.map +0 -1
- package/dist/more-BeXo-Pwn.js +0 -16
- package/dist/more-BeXo-Pwn.js.map +0 -1
- package/dist/native-DOlbMZnh.js +0 -17
- package/dist/native-DOlbMZnh.js.map +0 -1
- package/dist/network-placeholder-BoityKSt.js +0 -19
- package/dist/network-placeholder-BoityKSt.js.map +0 -1
- package/dist/nftPlaceholder-PTHT5Ulj.js +0 -13
- package/dist/nftPlaceholder-PTHT5Ulj.js.map +0 -1
- package/dist/off-BWWypY2E.js +0 -13
- package/dist/off-BWWypY2E.js.map +0 -1
- package/dist/onramp-DnL6ChSq.js +0 -979
- package/dist/onramp-DnL6ChSq.js.map +0 -1
- package/dist/parseAbiParameters-DfJcIE_w.js +0 -757
- package/dist/parseAbiParameters-DfJcIE_w.js.map +0 -1
- package/dist/parseSignature-CxTkG24t.js +0 -4690
- package/dist/parseSignature-CxTkG24t.js.map +0 -1
- package/dist/pay-with-exchange-CpuGLivJ.js +0 -603
- package/dist/pay-with-exchange-CpuGLivJ.js.map +0 -1
- package/dist/play-store-DkxQRJyA.js +0 -37
- package/dist/play-store-DkxQRJyA.js.map +0 -1
- package/dist/plus-DaGtBhNd.js +0 -18
- package/dist/plus-DaGtBhNd.js.map +0 -1
- package/dist/property-8UcTqffH.js +0 -623
- package/dist/property-8UcTqffH.js.map +0 -1
- package/dist/qr-code-DGvMTPaF.js +0 -11
- package/dist/qr-code-DGvMTPaF.js.map +0 -1
- package/dist/receive-CVWmkRpl.js +0 -262
- package/dist/receive-CVWmkRpl.js.map +0 -1
- package/dist/recycle-horizontal-DDVEtj7J.js +0 -14
- package/dist/recycle-horizontal-DDVEtj7J.js.map +0 -1
- package/dist/ref-DAjgVrGH.js +0 -43
- package/dist/ref-DAjgVrGH.js.map +0 -1
- package/dist/refresh-BmNFE8Pg.js +0 -13
- package/dist/refresh-BmNFE8Pg.js.map +0 -1
- package/dist/reown-logo-B-UO-SeO.js +0 -17
- package/dist/reown-logo-B-UO-SeO.js.map +0 -1
- package/dist/search-DR_B_4SQ.js +0 -13
- package/dist/search-DR_B_4SQ.js.map +0 -1
- package/dist/secp256k1-DnXqhCKw.js +0 -2031
- package/dist/secp256k1-DnXqhCKw.js.map +0 -1
- package/dist/send-BNU8VrfM.js +0 -20
- package/dist/send-BNU8VrfM.js.map +0 -1
- package/dist/send-DHzM4I8V.js +0 -1365
- package/dist/send-DHzM4I8V.js.map +0 -1
- package/dist/socials-DsoFf1B8.js +0 -796
- package/dist/socials-DsoFf1B8.js.map +0 -1
- package/dist/swapHorizontal-BQOjfwRW.js +0 -13
- package/dist/swapHorizontal-BQOjfwRW.js.map +0 -1
- package/dist/swapHorizontalBold-DMKR9Zys.js +0 -13
- package/dist/swapHorizontalBold-DMKR9Zys.js.map +0 -1
- package/dist/swapHorizontalMedium-DVsqt18q.js +0 -21
- package/dist/swapHorizontalMedium-DVsqt18q.js.map +0 -1
- package/dist/swapHorizontalRoundedBold-CM5U-o8X.js +0 -13
- package/dist/swapHorizontalRoundedBold-CM5U-o8X.js.map +0 -1
- package/dist/swapVertical-P9UnfCR-.js +0 -13
- package/dist/swapVertical-P9UnfCR-.js.map +0 -1
- package/dist/swaps-F0roy6mK.js +0 -2121
- package/dist/swaps-F0roy6mK.js.map +0 -1
- package/dist/telegram-Bd4DGbnk.js +0 -21
- package/dist/telegram-Bd4DGbnk.js.map +0 -1
- package/dist/three-dots-M94oc7-3.js +0 -10
- package/dist/three-dots-M94oc7-3.js.map +0 -1
- package/dist/transactions-DwtZvXx1.js +0 -38
- package/dist/transactions-DwtZvXx1.js.map +0 -1
- package/dist/twitch--lJ-X_Y6.js +0 -23
- package/dist/twitch--lJ-X_Y6.js.map +0 -1
- package/dist/twitterIcon-DDp_lnzc.js +0 -11
- package/dist/twitterIcon-DDp_lnzc.js.map +0 -1
- package/dist/vanilla-CgG5xMJO.js +0 -448
- package/dist/vanilla-CgG5xMJO.js.map +0 -1
- package/dist/verify-Doojt-tK.js +0 -13
- package/dist/verify-Doojt-tK.js.map +0 -1
- package/dist/verify-filled-EHdbo2B7.js +0 -13
- package/dist/verify-filled-EHdbo2B7.js.map +0 -1
- package/dist/w3m-modal-CVsid-gN.js +0 -1725
- package/dist/w3m-modal-CVsid-gN.js.map +0 -1
- package/dist/w3m-modal-CZ4s4A2R.js +0 -2008
- package/dist/w3m-modal-CZ4s4A2R.js.map +0 -1
- package/dist/wallet-CowxEORz.js +0 -13
- package/dist/wallet-CowxEORz.js.map +0 -1
- package/dist/wallet-placeholder-B7p7Oae2.js +0 -19
- package/dist/wallet-placeholder-B7p7Oae2.js.map +0 -1
- package/dist/wallet-standard-BUMbKbZo.js +0 -523
- package/dist/wallet-standard-BUMbKbZo.js.map +0 -1
- package/dist/walletconnect-CKMr88Pk.js +0 -39
- package/dist/walletconnect-CKMr88Pk.js.map +0 -1
- package/dist/warning-circle-CjIPgJnm.js +0 -17
- package/dist/warning-circle-CjIPgJnm.js.map +0 -1
- package/dist/x-CaxhfhgU.js +0 -17
- package/dist/x-CaxhfhgU.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WebCryptoP256-B0F1BoHd.js","sources":["../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/constants/abis.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/userOperation/getInitCode.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/userOperation/toPackedUserOperation.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/userOperation/getUserOperationTypedData.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/userOperation/getUserOperationHash.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/accounts/toSmartAccount.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/errors/bundler.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/errors/userOperation.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/errors/getBundlerError.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/errors/getUserOperationError.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/formatters/userOperationGas.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/formatters/userOperationRequest.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/paymaster/getPaymasterData.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/paymaster/getPaymasterStubData.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/bundler/prepareUserOperation.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/bundler/estimateUserOperationGas.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/bundler/getSupportedEntryPoints.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/formatters/userOperation.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/bundler/getUserOperation.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/utils/formatters/userOperationReceipt.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/bundler/getUserOperationReceipt.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/bundler/sendUserOperation.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/actions/bundler/waitForUserOperationReceipt.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/clients/decorators/bundler.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/clients/createBundlerClient.js","../../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/account-abstraction/constants/address.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/version.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/internal/errors.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Errors.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Json.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/internal/bytes.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/internal/hex.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Hex.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Bytes.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Hash.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/PublicKey.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Solidity.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Signature.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/Base64.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/WebAuthnP256.js","../../../node_modules/.pnpm/ox@0.6.9_typescript@5.9.2_zod@3.25.76/node_modules/ox/_esm/core/WebCryptoP256.js"],"sourcesContent":["export const entryPoint06Abi = [\n {\n inputs: [\n { name: 'preOpGas', type: 'uint256' },\n { name: 'paid', type: 'uint256' },\n { name: 'validAfter', type: 'uint48' },\n { name: 'validUntil', type: 'uint48' },\n { name: 'targetSuccess', type: 'bool' },\n { name: 'targetResult', type: 'bytes' },\n ],\n name: 'ExecutionResult',\n type: 'error',\n },\n {\n inputs: [\n { name: 'opIndex', type: 'uint256' },\n { name: 'reason', type: 'string' },\n ],\n name: 'FailedOp',\n type: 'error',\n },\n {\n inputs: [{ name: 'sender', type: 'address' }],\n name: 'SenderAddressResult',\n type: 'error',\n },\n {\n inputs: [{ name: 'aggregator', type: 'address' }],\n name: 'SignatureValidationFailed',\n type: 'error',\n },\n {\n inputs: [\n {\n components: [\n { name: 'preOpGas', type: 'uint256' },\n { name: 'prefund', type: 'uint256' },\n { name: 'sigFailed', type: 'bool' },\n { name: 'validAfter', type: 'uint48' },\n { name: 'validUntil', type: 'uint48' },\n { name: 'paymasterContext', type: 'bytes' },\n ],\n name: 'returnInfo',\n type: 'tuple',\n },\n {\n components: [\n { name: 'stake', type: 'uint256' },\n { name: 'unstakeDelaySec', type: 'uint256' },\n ],\n name: 'senderInfo',\n type: 'tuple',\n },\n {\n components: [\n { name: 'stake', type: 'uint256' },\n { name: 'unstakeDelaySec', type: 'uint256' },\n ],\n name: 'factoryInfo',\n type: 'tuple',\n },\n {\n components: [\n { name: 'stake', type: 'uint256' },\n { name: 'unstakeDelaySec', type: 'uint256' },\n ],\n name: 'paymasterInfo',\n type: 'tuple',\n },\n ],\n name: 'ValidationResult',\n type: 'error',\n },\n {\n inputs: [\n {\n components: [\n { name: 'preOpGas', type: 'uint256' },\n { name: 'prefund', type: 'uint256' },\n { name: 'sigFailed', type: 'bool' },\n { name: 'validAfter', type: 'uint48' },\n { name: 'validUntil', type: 'uint48' },\n { name: 'paymasterContext', type: 'bytes' },\n ],\n name: 'returnInfo',\n type: 'tuple',\n },\n {\n components: [\n { name: 'stake', type: 'uint256' },\n { name: 'unstakeDelaySec', type: 'uint256' },\n ],\n name: 'senderInfo',\n type: 'tuple',\n },\n {\n components: [\n { name: 'stake', type: 'uint256' },\n { name: 'unstakeDelaySec', type: 'uint256' },\n ],\n name: 'factoryInfo',\n type: 'tuple',\n },\n {\n components: [\n { name: 'stake', type: 'uint256' },\n { name: 'unstakeDelaySec', type: 'uint256' },\n ],\n name: 'paymasterInfo',\n type: 'tuple',\n },\n {\n components: [\n { name: 'aggregator', type: 'address' },\n {\n components: [\n { name: 'stake', type: 'uint256' },\n {\n name: 'unstakeDelaySec',\n type: 'uint256',\n },\n ],\n name: 'stakeInfo',\n type: 'tuple',\n },\n ],\n name: 'aggregatorInfo',\n type: 'tuple',\n },\n ],\n name: 'ValidationResultWithAggregation',\n type: 'error',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n name: 'factory',\n type: 'address',\n },\n {\n indexed: false,\n name: 'paymaster',\n type: 'address',\n },\n ],\n name: 'AccountDeployed',\n type: 'event',\n },\n { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'totalDeposit',\n type: 'uint256',\n },\n ],\n name: 'Deposited',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'aggregator',\n type: 'address',\n },\n ],\n name: 'SignatureAggregatorChanged',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'totalStaked',\n type: 'uint256',\n },\n {\n indexed: false,\n name: 'unstakeDelaySec',\n type: 'uint256',\n },\n ],\n name: 'StakeLocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'withdrawTime',\n type: 'uint256',\n },\n ],\n name: 'StakeUnlocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'withdrawAddress',\n type: 'address',\n },\n {\n indexed: false,\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'StakeWithdrawn',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: true,\n name: 'paymaster',\n type: 'address',\n },\n {\n indexed: false,\n name: 'nonce',\n type: 'uint256',\n },\n { indexed: false, name: 'success', type: 'bool' },\n {\n indexed: false,\n name: 'actualGasCost',\n type: 'uint256',\n },\n {\n indexed: false,\n name: 'actualGasUsed',\n type: 'uint256',\n },\n ],\n name: 'UserOperationEvent',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n name: 'nonce',\n type: 'uint256',\n },\n {\n indexed: false,\n name: 'revertReason',\n type: 'bytes',\n },\n ],\n name: 'UserOperationRevertReason',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'withdrawAddress',\n type: 'address',\n },\n {\n indexed: false,\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'Withdrawn',\n type: 'event',\n },\n {\n inputs: [],\n name: 'SIG_VALIDATION_FAILED',\n outputs: [{ name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { name: 'initCode', type: 'bytes' },\n { name: 'sender', type: 'address' },\n { name: 'paymasterAndData', type: 'bytes' },\n ],\n name: '_validateSenderAndPaymaster',\n outputs: [],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ name: 'unstakeDelaySec', type: 'uint32' }],\n name: 'addStake',\n outputs: [],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [{ name: 'account', type: 'address' }],\n name: 'balanceOf',\n outputs: [{ name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ name: 'account', type: 'address' }],\n name: 'depositTo',\n outputs: [],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [{ name: '', type: 'address' }],\n name: 'deposits',\n outputs: [\n { name: 'deposit', type: 'uint112' },\n { name: 'staked', type: 'bool' },\n { name: 'stake', type: 'uint112' },\n { name: 'unstakeDelaySec', type: 'uint32' },\n { name: 'withdrawTime', type: 'uint48' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ name: 'account', type: 'address' }],\n name: 'getDepositInfo',\n outputs: [\n {\n components: [\n { name: 'deposit', type: 'uint112' },\n { name: 'staked', type: 'bool' },\n { name: 'stake', type: 'uint112' },\n { name: 'unstakeDelaySec', type: 'uint32' },\n { name: 'withdrawTime', type: 'uint48' },\n ],\n name: 'info',\n type: 'tuple',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { name: 'sender', type: 'address' },\n { name: 'key', type: 'uint192' },\n ],\n name: 'getNonce',\n outputs: [{ name: 'nonce', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ name: 'initCode', type: 'bytes' }],\n name: 'getSenderAddress',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n { name: 'callGasLimit', type: 'uint256' },\n {\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'maxFeePerGas', type: 'uint256' },\n {\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n { name: 'paymasterAndData', type: 'bytes' },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'userOp',\n type: 'tuple',\n },\n ],\n name: 'getUserOpHash',\n outputs: [{ name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n {\n name: 'callGasLimit',\n type: 'uint256',\n },\n {\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n {\n name: 'maxFeePerGas',\n type: 'uint256',\n },\n {\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n {\n name: 'paymasterAndData',\n type: 'bytes',\n },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'userOps',\n type: 'tuple[]',\n },\n {\n name: 'aggregator',\n type: 'address',\n },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'opsPerAggregator',\n type: 'tuple[]',\n },\n { name: 'beneficiary', type: 'address' },\n ],\n name: 'handleAggregatedOps',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n { name: 'callGasLimit', type: 'uint256' },\n {\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'maxFeePerGas', type: 'uint256' },\n {\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n { name: 'paymasterAndData', type: 'bytes' },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'ops',\n type: 'tuple[]',\n },\n { name: 'beneficiary', type: 'address' },\n ],\n name: 'handleOps',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ name: 'key', type: 'uint192' }],\n name: 'incrementNonce',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { name: 'callData', type: 'bytes' },\n {\n components: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n {\n name: 'callGasLimit',\n type: 'uint256',\n },\n {\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'paymaster', type: 'address' },\n {\n name: 'maxFeePerGas',\n type: 'uint256',\n },\n {\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n ],\n name: 'mUserOp',\n type: 'tuple',\n },\n { name: 'userOpHash', type: 'bytes32' },\n { name: 'prefund', type: 'uint256' },\n { name: 'contextOffset', type: 'uint256' },\n { name: 'preOpGas', type: 'uint256' },\n ],\n name: 'opInfo',\n type: 'tuple',\n },\n { name: 'context', type: 'bytes' },\n ],\n name: 'innerHandleOp',\n outputs: [{ name: 'actualGasCost', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { name: '', type: 'address' },\n { name: '', type: 'uint192' },\n ],\n name: 'nonceSequenceNumber',\n outputs: [{ name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n { name: 'callGasLimit', type: 'uint256' },\n {\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'maxFeePerGas', type: 'uint256' },\n {\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n { name: 'paymasterAndData', type: 'bytes' },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'op',\n type: 'tuple',\n },\n { name: 'target', type: 'address' },\n { name: 'targetCallData', type: 'bytes' },\n ],\n name: 'simulateHandleOp',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n { name: 'callGasLimit', type: 'uint256' },\n {\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'maxFeePerGas', type: 'uint256' },\n {\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n { name: 'paymasterAndData', type: 'bytes' },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'userOp',\n type: 'tuple',\n },\n ],\n name: 'simulateValidation',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'unlockStake',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n name: 'withdrawAddress',\n type: 'address',\n },\n ],\n name: 'withdrawStake',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n name: 'withdrawAddress',\n type: 'address',\n },\n { name: 'withdrawAmount', type: 'uint256' },\n ],\n name: 'withdrawTo',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n { stateMutability: 'payable', type: 'receive' },\n];\nexport const entryPoint07Abi = [\n {\n inputs: [\n { name: 'success', type: 'bool' },\n { name: 'ret', type: 'bytes' },\n ],\n name: 'DelegateAndRevert',\n type: 'error',\n },\n {\n inputs: [\n { name: 'opIndex', type: 'uint256' },\n { name: 'reason', type: 'string' },\n ],\n name: 'FailedOp',\n type: 'error',\n },\n {\n inputs: [\n { name: 'opIndex', type: 'uint256' },\n { name: 'reason', type: 'string' },\n { name: 'inner', type: 'bytes' },\n ],\n name: 'FailedOpWithRevert',\n type: 'error',\n },\n {\n inputs: [{ name: 'returnData', type: 'bytes' }],\n name: 'PostOpReverted',\n type: 'error',\n },\n { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },\n {\n inputs: [{ name: 'sender', type: 'address' }],\n name: 'SenderAddressResult',\n type: 'error',\n },\n {\n inputs: [{ name: 'aggregator', type: 'address' }],\n name: 'SignatureValidationFailed',\n type: 'error',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n name: 'factory',\n type: 'address',\n },\n {\n indexed: false,\n name: 'paymaster',\n type: 'address',\n },\n ],\n name: 'AccountDeployed',\n type: 'event',\n },\n { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'totalDeposit',\n type: 'uint256',\n },\n ],\n name: 'Deposited',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n name: 'nonce',\n type: 'uint256',\n },\n {\n indexed: false,\n name: 'revertReason',\n type: 'bytes',\n },\n ],\n name: 'PostOpRevertReason',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'aggregator',\n type: 'address',\n },\n ],\n name: 'SignatureAggregatorChanged',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'totalStaked',\n type: 'uint256',\n },\n {\n indexed: false,\n name: 'unstakeDelaySec',\n type: 'uint256',\n },\n ],\n name: 'StakeLocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'withdrawTime',\n type: 'uint256',\n },\n ],\n name: 'StakeUnlocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'withdrawAddress',\n type: 'address',\n },\n {\n indexed: false,\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'StakeWithdrawn',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: true,\n name: 'paymaster',\n type: 'address',\n },\n {\n indexed: false,\n name: 'nonce',\n type: 'uint256',\n },\n { indexed: false, name: 'success', type: 'bool' },\n {\n indexed: false,\n name: 'actualGasCost',\n type: 'uint256',\n },\n {\n indexed: false,\n name: 'actualGasUsed',\n type: 'uint256',\n },\n ],\n name: 'UserOperationEvent',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n name: 'nonce',\n type: 'uint256',\n },\n ],\n name: 'UserOperationPrefundTooLow',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n name: 'nonce',\n type: 'uint256',\n },\n {\n indexed: false,\n name: 'revertReason',\n type: 'bytes',\n },\n ],\n name: 'UserOperationRevertReason',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n name: 'withdrawAddress',\n type: 'address',\n },\n {\n indexed: false,\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'Withdrawn',\n type: 'event',\n },\n {\n inputs: [{ name: 'unstakeDelaySec', type: 'uint32' }],\n name: 'addStake',\n outputs: [],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [{ name: 'account', type: 'address' }],\n name: 'balanceOf',\n outputs: [{ name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { name: 'target', type: 'address' },\n { name: 'data', type: 'bytes' },\n ],\n name: 'delegateAndRevert',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ name: 'account', type: 'address' }],\n name: 'depositTo',\n outputs: [],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [{ name: '', type: 'address' }],\n name: 'deposits',\n outputs: [\n { name: 'deposit', type: 'uint256' },\n { name: 'staked', type: 'bool' },\n { name: 'stake', type: 'uint112' },\n { name: 'unstakeDelaySec', type: 'uint32' },\n { name: 'withdrawTime', type: 'uint48' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ name: 'account', type: 'address' }],\n name: 'getDepositInfo',\n outputs: [\n {\n components: [\n { name: 'deposit', type: 'uint256' },\n { name: 'staked', type: 'bool' },\n { name: 'stake', type: 'uint112' },\n { name: 'unstakeDelaySec', type: 'uint32' },\n { name: 'withdrawTime', type: 'uint48' },\n ],\n name: 'info',\n type: 'tuple',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { name: 'sender', type: 'address' },\n { name: 'key', type: 'uint192' },\n ],\n name: 'getNonce',\n outputs: [{ name: 'nonce', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ name: 'initCode', type: 'bytes' }],\n name: 'getSenderAddress',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n {\n name: 'accountGasLimits',\n type: 'bytes32',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'gasFees', type: 'bytes32' },\n { name: 'paymasterAndData', type: 'bytes' },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'userOp',\n type: 'tuple',\n },\n ],\n name: 'getUserOpHash',\n outputs: [{ name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n {\n name: 'accountGasLimits',\n type: 'bytes32',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'gasFees', type: 'bytes32' },\n {\n name: 'paymasterAndData',\n type: 'bytes',\n },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'userOps',\n type: 'tuple[]',\n },\n {\n name: 'aggregator',\n type: 'address',\n },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'opsPerAggregator',\n type: 'tuple[]',\n },\n { name: 'beneficiary', type: 'address' },\n ],\n name: 'handleAggregatedOps',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n { name: 'initCode', type: 'bytes' },\n { name: 'callData', type: 'bytes' },\n {\n name: 'accountGasLimits',\n type: 'bytes32',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'gasFees', type: 'bytes32' },\n { name: 'paymasterAndData', type: 'bytes' },\n { name: 'signature', type: 'bytes' },\n ],\n name: 'ops',\n type: 'tuple[]',\n },\n { name: 'beneficiary', type: 'address' },\n ],\n name: 'handleOps',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ name: 'key', type: 'uint192' }],\n name: 'incrementNonce',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { name: 'callData', type: 'bytes' },\n {\n components: [\n {\n components: [\n { name: 'sender', type: 'address' },\n { name: 'nonce', type: 'uint256' },\n {\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'callGasLimit',\n type: 'uint256',\n },\n {\n name: 'paymasterVerificationGasLimit',\n type: 'uint256',\n },\n {\n name: 'paymasterPostOpGasLimit',\n type: 'uint256',\n },\n {\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { name: 'paymaster', type: 'address' },\n {\n name: 'maxFeePerGas',\n type: 'uint256',\n },\n {\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n ],\n name: 'mUserOp',\n type: 'tuple',\n },\n { name: 'userOpHash', type: 'bytes32' },\n { name: 'prefund', type: 'uint256' },\n { name: 'contextOffset', type: 'uint256' },\n { name: 'preOpGas', type: 'uint256' },\n ],\n name: 'opInfo',\n type: 'tuple',\n },\n { name: 'context', type: 'bytes' },\n ],\n name: 'innerHandleOp',\n outputs: [{ name: 'actualGasCost', type: 'uint256' }],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { name: '', type: 'address' },\n { name: '', type: 'uint192' },\n ],\n name: 'nonceSequenceNumber',\n outputs: [{ name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ name: 'interfaceId', type: 'bytes4' }],\n name: 'supportsInterface',\n outputs: [{ name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'unlockStake',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n name: 'withdrawAddress',\n type: 'address',\n },\n ],\n name: 'withdrawStake',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n name: 'withdrawAddress',\n type: 'address',\n },\n { name: 'withdrawAmount', type: 'uint256' },\n ],\n name: 'withdrawTo',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n { stateMutability: 'payable', type: 'receive' },\n];\nexport const entryPoint08Abi = [\n { inputs: [], stateMutability: 'nonpayable', type: 'constructor' },\n {\n inputs: [\n { internalType: 'bool', name: 'success', type: 'bool' },\n { internalType: 'bytes', name: 'ret', type: 'bytes' },\n ],\n name: 'DelegateAndRevert',\n type: 'error',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'opIndex', type: 'uint256' },\n { internalType: 'string', name: 'reason', type: 'string' },\n ],\n name: 'FailedOp',\n type: 'error',\n },\n {\n inputs: [\n { internalType: 'uint256', name: 'opIndex', type: 'uint256' },\n { internalType: 'string', name: 'reason', type: 'string' },\n { internalType: 'bytes', name: 'inner', type: 'bytes' },\n ],\n name: 'FailedOpWithRevert',\n type: 'error',\n },\n { inputs: [], name: 'InvalidShortString', type: 'error' },\n {\n inputs: [{ internalType: 'bytes', name: 'returnData', type: 'bytes' }],\n name: 'PostOpReverted',\n type: 'error',\n },\n { inputs: [], name: 'ReentrancyGuardReentrantCall', type: 'error' },\n {\n inputs: [{ internalType: 'address', name: 'sender', type: 'address' }],\n name: 'SenderAddressResult',\n type: 'error',\n },\n {\n inputs: [{ internalType: 'address', name: 'aggregator', type: 'address' }],\n name: 'SignatureValidationFailed',\n type: 'error',\n },\n {\n inputs: [{ internalType: 'string', name: 'str', type: 'string' }],\n name: 'StringTooLong',\n type: 'error',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'address',\n name: 'factory',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'address',\n name: 'paymaster',\n type: 'address',\n },\n ],\n name: 'AccountDeployed',\n type: 'event',\n },\n { anonymous: false, inputs: [], name: 'BeforeExecution', type: 'event' },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'totalDeposit',\n type: 'uint256',\n },\n ],\n name: 'Deposited',\n type: 'event',\n },\n { anonymous: false, inputs: [], name: 'EIP712DomainChanged', type: 'event' },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'nonce',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'bytes',\n name: 'revertReason',\n type: 'bytes',\n },\n ],\n name: 'PostOpRevertReason',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'aggregator',\n type: 'address',\n },\n ],\n name: 'SignatureAggregatorChanged',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'totalStaked',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'unstakeDelaySec',\n type: 'uint256',\n },\n ],\n name: 'StakeLocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'withdrawTime',\n type: 'uint256',\n },\n ],\n name: 'StakeUnlocked',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'address',\n name: 'withdrawAddress',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'StakeWithdrawn',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'paymaster',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'nonce',\n type: 'uint256',\n },\n { indexed: false, internalType: 'bool', name: 'success', type: 'bool' },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'actualGasCost',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'actualGasUsed',\n type: 'uint256',\n },\n ],\n name: 'UserOperationEvent',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'nonce',\n type: 'uint256',\n },\n ],\n name: 'UserOperationPrefundTooLow',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'bytes32',\n name: 'userOpHash',\n type: 'bytes32',\n },\n {\n indexed: true,\n internalType: 'address',\n name: 'sender',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'nonce',\n type: 'uint256',\n },\n {\n indexed: false,\n internalType: 'bytes',\n name: 'revertReason',\n type: 'bytes',\n },\n ],\n name: 'UserOperationRevertReason',\n type: 'event',\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n internalType: 'address',\n name: 'account',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'address',\n name: 'withdrawAddress',\n type: 'address',\n },\n {\n indexed: false,\n internalType: 'uint256',\n name: 'amount',\n type: 'uint256',\n },\n ],\n name: 'Withdrawn',\n type: 'event',\n },\n {\n inputs: [\n { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },\n ],\n name: 'addStake',\n outputs: [],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'account', type: 'address' }],\n name: 'balanceOf',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'target', type: 'address' },\n { internalType: 'bytes', name: 'data', type: 'bytes' },\n ],\n name: 'delegateAndRevert',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'account', type: 'address' }],\n name: 'depositTo',\n outputs: [],\n stateMutability: 'payable',\n type: 'function',\n },\n {\n inputs: [],\n name: 'eip712Domain',\n outputs: [\n { internalType: 'bytes1', name: 'fields', type: 'bytes1' },\n { internalType: 'string', name: 'name', type: 'string' },\n { internalType: 'string', name: 'version', type: 'string' },\n { internalType: 'uint256', name: 'chainId', type: 'uint256' },\n { internalType: 'address', name: 'verifyingContract', type: 'address' },\n { internalType: 'bytes32', name: 'salt', type: 'bytes32' },\n { internalType: 'uint256[]', name: 'extensions', type: 'uint256[]' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'address', name: 'account', type: 'address' }],\n name: 'getDepositInfo',\n outputs: [\n {\n components: [\n { internalType: 'uint256', name: 'deposit', type: 'uint256' },\n { internalType: 'bool', name: 'staked', type: 'bool' },\n { internalType: 'uint112', name: 'stake', type: 'uint112' },\n { internalType: 'uint32', name: 'unstakeDelaySec', type: 'uint32' },\n { internalType: 'uint48', name: 'withdrawTime', type: 'uint48' },\n ],\n internalType: 'struct IStakeManager.DepositInfo',\n name: 'info',\n type: 'tuple',\n },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getDomainSeparatorV4',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: 'sender', type: 'address' },\n { internalType: 'uint192', name: 'key', type: 'uint192' },\n ],\n name: 'getNonce',\n outputs: [{ internalType: 'uint256', name: 'nonce', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'getPackedUserOpTypeHash',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'pure',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'bytes', name: 'initCode', type: 'bytes' }],\n name: 'getSenderAddress',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { internalType: 'address', name: 'sender', type: 'address' },\n { internalType: 'uint256', name: 'nonce', type: 'uint256' },\n { internalType: 'bytes', name: 'initCode', type: 'bytes' },\n { internalType: 'bytes', name: 'callData', type: 'bytes' },\n {\n internalType: 'bytes32',\n name: 'accountGasLimits',\n type: 'bytes32',\n },\n {\n internalType: 'uint256',\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },\n { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n ],\n internalType: 'struct PackedUserOperation',\n name: 'userOp',\n type: 'tuple',\n },\n ],\n name: 'getUserOpHash',\n outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n {\n components: [\n { internalType: 'address', name: 'sender', type: 'address' },\n { internalType: 'uint256', name: 'nonce', type: 'uint256' },\n { internalType: 'bytes', name: 'initCode', type: 'bytes' },\n { internalType: 'bytes', name: 'callData', type: 'bytes' },\n {\n internalType: 'bytes32',\n name: 'accountGasLimits',\n type: 'bytes32',\n },\n {\n internalType: 'uint256',\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },\n {\n internalType: 'bytes',\n name: 'paymasterAndData',\n type: 'bytes',\n },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n ],\n internalType: 'struct PackedUserOperation[]',\n name: 'userOps',\n type: 'tuple[]',\n },\n {\n internalType: 'contract IAggregator',\n name: 'aggregator',\n type: 'address',\n },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n ],\n internalType: 'struct IEntryPoint.UserOpsPerAggregator[]',\n name: 'opsPerAggregator',\n type: 'tuple[]',\n },\n { internalType: 'address payable', name: 'beneficiary', type: 'address' },\n ],\n name: 'handleAggregatedOps',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n components: [\n { internalType: 'address', name: 'sender', type: 'address' },\n { internalType: 'uint256', name: 'nonce', type: 'uint256' },\n { internalType: 'bytes', name: 'initCode', type: 'bytes' },\n { internalType: 'bytes', name: 'callData', type: 'bytes' },\n {\n internalType: 'bytes32',\n name: 'accountGasLimits',\n type: 'bytes32',\n },\n {\n internalType: 'uint256',\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { internalType: 'bytes32', name: 'gasFees', type: 'bytes32' },\n { internalType: 'bytes', name: 'paymasterAndData', type: 'bytes' },\n { internalType: 'bytes', name: 'signature', type: 'bytes' },\n ],\n internalType: 'struct PackedUserOperation[]',\n name: 'ops',\n type: 'tuple[]',\n },\n { internalType: 'address payable', name: 'beneficiary', type: 'address' },\n ],\n name: 'handleOps',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'uint192', name: 'key', type: 'uint192' }],\n name: 'incrementNonce',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'bytes', name: 'callData', type: 'bytes' },\n {\n components: [\n {\n components: [\n { internalType: 'address', name: 'sender', type: 'address' },\n { internalType: 'uint256', name: 'nonce', type: 'uint256' },\n {\n internalType: 'uint256',\n name: 'verificationGasLimit',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'callGasLimit',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'paymasterVerificationGasLimit',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'paymasterPostOpGasLimit',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'preVerificationGas',\n type: 'uint256',\n },\n { internalType: 'address', name: 'paymaster', type: 'address' },\n {\n internalType: 'uint256',\n name: 'maxFeePerGas',\n type: 'uint256',\n },\n {\n internalType: 'uint256',\n name: 'maxPriorityFeePerGas',\n type: 'uint256',\n },\n ],\n internalType: 'struct EntryPoint.MemoryUserOp',\n name: 'mUserOp',\n type: 'tuple',\n },\n { internalType: 'bytes32', name: 'userOpHash', type: 'bytes32' },\n { internalType: 'uint256', name: 'prefund', type: 'uint256' },\n { internalType: 'uint256', name: 'contextOffset', type: 'uint256' },\n { internalType: 'uint256', name: 'preOpGas', type: 'uint256' },\n ],\n internalType: 'struct EntryPoint.UserOpInfo',\n name: 'opInfo',\n type: 'tuple',\n },\n { internalType: 'bytes', name: 'context', type: 'bytes' },\n ],\n name: 'innerHandleOp',\n outputs: [\n { internalType: 'uint256', name: 'actualGasCost', type: 'uint256' },\n ],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n { internalType: 'address', name: '', type: 'address' },\n { internalType: 'uint192', name: '', type: 'uint192' },\n ],\n name: 'nonceSequenceNumber',\n outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'senderCreator',\n outputs: [\n { internalType: 'contract ISenderCreator', name: '', type: 'address' },\n ],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],\n name: 'supportsInterface',\n outputs: [{ internalType: 'bool', name: '', type: 'bool' }],\n stateMutability: 'view',\n type: 'function',\n },\n {\n inputs: [],\n name: 'unlockStake',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address payable',\n name: 'withdrawAddress',\n type: 'address',\n },\n ],\n name: 'withdrawStake',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n {\n inputs: [\n {\n internalType: 'address payable',\n name: 'withdrawAddress',\n type: 'address',\n },\n { internalType: 'uint256', name: 'withdrawAmount', type: 'uint256' },\n ],\n name: 'withdrawTo',\n outputs: [],\n stateMutability: 'nonpayable',\n type: 'function',\n },\n { stateMutability: 'payable', type: 'receive' },\n];\n//# sourceMappingURL=abis.js.map","import { concat } from '../../../utils/data/concat.js';\nexport function getInitCode(userOperation) {\n const { authorization, factory, factoryData } = userOperation;\n if (factory === '0x7702' ||\n factory === '0x7702000000000000000000000000000000000000') {\n if (!authorization)\n return '0x7702000000000000000000000000000000000000';\n const delegation = authorization.address;\n return concat([delegation, factoryData ?? '0x']);\n }\n if (!factory)\n return '0x';\n return concat([factory, factoryData ?? '0x']);\n}\n//# sourceMappingURL=getInitCode.js.map","import { concat } from '../../../utils/data/concat.js';\nimport { pad } from '../../../utils/data/pad.js';\nimport { numberToHex } from '../../../utils/index.js';\nimport { getInitCode } from './getInitCode.js';\nexport function toPackedUserOperation(userOperation) {\n const { callGasLimit, callData, maxPriorityFeePerGas, maxFeePerGas, paymaster, paymasterData, paymasterPostOpGasLimit, paymasterVerificationGasLimit, sender, signature = '0x', verificationGasLimit, } = userOperation;\n const accountGasLimits = concat([\n pad(numberToHex(verificationGasLimit || 0n), { size: 16 }),\n pad(numberToHex(callGasLimit || 0n), { size: 16 }),\n ]);\n const initCode = getInitCode(userOperation);\n const gasFees = concat([\n pad(numberToHex(maxPriorityFeePerGas || 0n), { size: 16 }),\n pad(numberToHex(maxFeePerGas || 0n), { size: 16 }),\n ]);\n const nonce = userOperation.nonce ?? 0n;\n const paymasterAndData = paymaster\n ? concat([\n paymaster,\n pad(numberToHex(paymasterVerificationGasLimit || 0n), {\n size: 16,\n }),\n pad(numberToHex(paymasterPostOpGasLimit || 0n), {\n size: 16,\n }),\n paymasterData || '0x',\n ])\n : '0x';\n const preVerificationGas = userOperation.preVerificationGas ?? 0n;\n return {\n accountGasLimits,\n callData,\n initCode,\n gasFees,\n nonce,\n paymasterAndData,\n preVerificationGas,\n sender,\n signature,\n };\n}\n//# sourceMappingURL=toPackedUserOperation.js.map","import { toPackedUserOperation } from './toPackedUserOperation.js';\nconst types = {\n PackedUserOperation: [\n { type: 'address', name: 'sender' },\n { type: 'uint256', name: 'nonce' },\n { type: 'bytes', name: 'initCode' },\n { type: 'bytes', name: 'callData' },\n { type: 'bytes32', name: 'accountGasLimits' },\n { type: 'uint256', name: 'preVerificationGas' },\n { type: 'bytes32', name: 'gasFees' },\n { type: 'bytes', name: 'paymasterAndData' },\n ],\n};\nexport function getUserOperationTypedData(parameters) {\n const { chainId, entryPointAddress, userOperation } = parameters;\n const packedUserOp = toPackedUserOperation(userOperation);\n return {\n types,\n primaryType: 'PackedUserOperation',\n domain: {\n name: 'ERC4337',\n version: '1',\n chainId,\n verifyingContract: entryPointAddress,\n },\n message: packedUserOp,\n };\n}\n//# sourceMappingURL=getUserOperationTypedData.js.map","import { encodeAbiParameters } from '../../../utils/abi/encodeAbiParameters.js';\nimport { keccak256 } from '../../../utils/hash/keccak256.js';\nimport { hashTypedData } from '../../../utils/signature/hashTypedData.js';\nimport { getInitCode } from './getInitCode.js';\nimport { getUserOperationTypedData } from './getUserOperationTypedData.js';\nimport { toPackedUserOperation } from './toPackedUserOperation.js';\nexport function getUserOperationHash(parameters) {\n const { chainId, entryPointAddress, entryPointVersion } = parameters;\n const userOperation = parameters.userOperation;\n const { authorization, callData = '0x', callGasLimit, maxFeePerGas, maxPriorityFeePerGas, nonce, paymasterAndData = '0x', preVerificationGas, sender, verificationGasLimit, } = userOperation;\n if (entryPointVersion === '0.8')\n return hashTypedData(getUserOperationTypedData({\n chainId,\n entryPointAddress,\n userOperation,\n }));\n const packedUserOp = (() => {\n if (entryPointVersion === '0.6') {\n const factory = userOperation.initCode?.slice(0, 42);\n const factoryData = userOperation.initCode?.slice(42);\n const initCode = getInitCode({\n authorization,\n factory,\n factoryData,\n });\n return encodeAbiParameters([\n { type: 'address' },\n { type: 'uint256' },\n { type: 'bytes32' },\n { type: 'bytes32' },\n { type: 'uint256' },\n { type: 'uint256' },\n { type: 'uint256' },\n { type: 'uint256' },\n { type: 'uint256' },\n { type: 'bytes32' },\n ], [\n sender,\n nonce,\n keccak256(initCode),\n keccak256(callData),\n callGasLimit,\n verificationGasLimit,\n preVerificationGas,\n maxFeePerGas,\n maxPriorityFeePerGas,\n keccak256(paymasterAndData),\n ]);\n }\n if (entryPointVersion === '0.7') {\n const packedUserOp = toPackedUserOperation(userOperation);\n return encodeAbiParameters([\n { type: 'address' },\n { type: 'uint256' },\n { type: 'bytes32' },\n { type: 'bytes32' },\n { type: 'bytes32' },\n { type: 'uint256' },\n { type: 'bytes32' },\n { type: 'bytes32' },\n ], [\n packedUserOp.sender,\n packedUserOp.nonce,\n keccak256(packedUserOp.initCode),\n keccak256(packedUserOp.callData),\n packedUserOp.accountGasLimits,\n packedUserOp.preVerificationGas,\n packedUserOp.gasFees,\n keccak256(packedUserOp.paymasterAndData),\n ]);\n }\n throw new Error(`entryPointVersion \"${entryPointVersion}\" not supported.`);\n })();\n return keccak256(encodeAbiParameters([{ type: 'bytes32' }, { type: 'address' }, { type: 'uint256' }], [keccak256(packedUserOp), entryPointAddress, BigInt(chainId)]));\n}\n//# sourceMappingURL=getUserOperationHash.js.map","import { parseAbi } from 'abitype';\nimport { getCode } from '../../actions/public/getCode.js';\nimport { readContract } from '../../actions/public/readContract.js';\nimport { getAction } from '../../utils/getAction.js';\nimport { createNonceManager } from '../../utils/nonceManager.js';\nimport { serializeErc6492Signature } from '../../utils/signature/serializeErc6492Signature.js';\n/**\n * @description Creates a Smart Account with a provided account implementation.\n *\n * @param parameters - {@link ToSmartAccountParameters}\n * @returns A Smart Account. {@link ToSmartAccountReturnType}\n */\nexport async function toSmartAccount(implementation) {\n const { extend, nonceKeyManager = createNonceManager({\n source: {\n get() {\n return Date.now();\n },\n set() { },\n },\n }), ...rest } = implementation;\n let deployed = false;\n const address = await implementation.getAddress();\n return {\n ...extend,\n ...rest,\n address,\n async getFactoryArgs() {\n if ('isDeployed' in this && (await this.isDeployed()))\n return { factory: undefined, factoryData: undefined };\n return implementation.getFactoryArgs();\n },\n async getNonce(parameters) {\n const key = parameters?.key ??\n BigInt(await nonceKeyManager.consume({\n address,\n chainId: implementation.client.chain.id,\n client: implementation.client,\n }));\n if (implementation.getNonce)\n return await implementation.getNonce({ ...parameters, key });\n const nonce = await readContract(implementation.client, {\n abi: parseAbi([\n 'function getNonce(address, uint192) pure returns (uint256)',\n ]),\n address: implementation.entryPoint.address,\n functionName: 'getNonce',\n args: [address, key],\n });\n return nonce;\n },\n async isDeployed() {\n if (deployed)\n return true;\n const code = await getAction(implementation.client, getCode, 'getCode')({\n address,\n });\n deployed = Boolean(code);\n return deployed;\n },\n ...(implementation.sign\n ? {\n async sign(parameters) {\n const [{ factory, factoryData }, signature] = await Promise.all([\n this.getFactoryArgs(),\n implementation.sign(parameters),\n ]);\n if (factory && factoryData)\n return serializeErc6492Signature({\n address: factory,\n data: factoryData,\n signature,\n });\n return signature;\n },\n }\n : {}),\n async signMessage(parameters) {\n const [{ factory, factoryData }, signature] = await Promise.all([\n this.getFactoryArgs(),\n implementation.signMessage(parameters),\n ]);\n if (factory && factoryData && factory !== '0x7702')\n return serializeErc6492Signature({\n address: factory,\n data: factoryData,\n signature,\n });\n return signature;\n },\n async signTypedData(parameters) {\n const [{ factory, factoryData }, signature] = await Promise.all([\n this.getFactoryArgs(),\n implementation.signTypedData(parameters),\n ]);\n if (factory && factoryData && factory !== '0x7702')\n return serializeErc6492Signature({\n address: factory,\n data: factoryData,\n signature,\n });\n return signature;\n },\n type: 'smart',\n };\n}\n//# sourceMappingURL=toSmartAccount.js.map","import { BaseError } from '../../errors/base.js';\nexport class AccountNotDeployedError extends BaseError {\n constructor({ cause, }) {\n super('Smart Account is not deployed.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.',\n '- An incorrect `sender` address is provided.',\n ],\n name: 'AccountNotDeployedError',\n });\n }\n}\nObject.defineProperty(AccountNotDeployedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa20/\n});\nexport class ExecutionRevertedError extends BaseError {\n constructor({ cause, data, message, } = {}) {\n const reason = message\n ?.replace('execution reverted: ', '')\n ?.replace('execution reverted', '');\n super(`Execution reverted ${reason ? `with reason: ${reason}` : 'for an unknown reason'}.`, {\n cause,\n name: 'ExecutionRevertedError',\n });\n Object.defineProperty(this, \"data\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.data = data;\n }\n}\nObject.defineProperty(ExecutionRevertedError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32521\n});\nObject.defineProperty(ExecutionRevertedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /execution reverted/\n});\nexport class FailedToSendToBeneficiaryError extends BaseError {\n constructor({ cause, }) {\n super('Failed to send funds to beneficiary.', {\n cause,\n name: 'FailedToSendToBeneficiaryError',\n });\n }\n}\nObject.defineProperty(FailedToSendToBeneficiaryError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa91/\n});\nexport class GasValuesOverflowError extends BaseError {\n constructor({ cause, }) {\n super('Gas value overflowed.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- one of the gas values exceeded 2**120 (uint120)',\n ].filter(Boolean),\n name: 'GasValuesOverflowError',\n });\n }\n}\nObject.defineProperty(GasValuesOverflowError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa94/\n});\nexport class HandleOpsOutOfGasError extends BaseError {\n constructor({ cause, }) {\n super('The `handleOps` function was called by the Bundler with a gas limit too low.', {\n cause,\n name: 'HandleOpsOutOfGasError',\n });\n }\n}\nObject.defineProperty(HandleOpsOutOfGasError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa95/\n});\nexport class InitCodeFailedError extends BaseError {\n constructor({ cause, factory, factoryData, initCode, }) {\n super('Failed to simulate deployment for Smart Account.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- Invalid `factory`/`factoryData` or `initCode` properties are present',\n '- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)',\n '- Smart Account deployment execution reverted with an error\\n',\n factory && `factory: ${factory}`,\n factoryData && `factoryData: ${factoryData}`,\n initCode && `initCode: ${initCode}`,\n ].filter(Boolean),\n name: 'InitCodeFailedError',\n });\n }\n}\nObject.defineProperty(InitCodeFailedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa13/\n});\nexport class InitCodeMustCreateSenderError extends BaseError {\n constructor({ cause, factory, factoryData, initCode, }) {\n super('Smart Account initialization implementation did not create an account.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- `factory`/`factoryData` or `initCode` properties are invalid',\n '- Smart Account initialization implementation is incorrect\\n',\n factory && `factory: ${factory}`,\n factoryData && `factoryData: ${factoryData}`,\n initCode && `initCode: ${initCode}`,\n ].filter(Boolean),\n name: 'InitCodeMustCreateSenderError',\n });\n }\n}\nObject.defineProperty(InitCodeMustCreateSenderError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa15/\n});\nexport class InitCodeMustReturnSenderError extends BaseError {\n constructor({ cause, factory, factoryData, initCode, sender, }) {\n super('Smart Account initialization implementation does not return the expected sender.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n 'Smart Account initialization implementation does not return a sender address\\n',\n factory && `factory: ${factory}`,\n factoryData && `factoryData: ${factoryData}`,\n initCode && `initCode: ${initCode}`,\n sender && `sender: ${sender}`,\n ].filter(Boolean),\n name: 'InitCodeMustReturnSenderError',\n });\n }\n}\nObject.defineProperty(InitCodeMustReturnSenderError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa14/\n});\nexport class InsufficientPrefundError extends BaseError {\n constructor({ cause, }) {\n super('Smart Account does not have sufficient funds to execute the User Operation.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the Smart Account does not have sufficient funds to cover the required prefund, or',\n '- a Paymaster was not provided',\n ].filter(Boolean),\n name: 'InsufficientPrefundError',\n });\n }\n}\nObject.defineProperty(InsufficientPrefundError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa21/\n});\nexport class InternalCallOnlyError extends BaseError {\n constructor({ cause, }) {\n super('Bundler attempted to call an invalid function on the EntryPoint.', {\n cause,\n name: 'InternalCallOnlyError',\n });\n }\n}\nObject.defineProperty(InternalCallOnlyError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa92/\n});\nexport class InvalidAggregatorError extends BaseError {\n constructor({ cause, }) {\n super('Bundler used an invalid aggregator for handling aggregated User Operations.', {\n cause,\n name: 'InvalidAggregatorError',\n });\n }\n}\nObject.defineProperty(InvalidAggregatorError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa96/\n});\nexport class InvalidAccountNonceError extends BaseError {\n constructor({ cause, nonce, }) {\n super('Invalid Smart Account nonce used for User Operation.', {\n cause,\n metaMessages: [nonce && `nonce: ${nonce}`].filter(Boolean),\n name: 'InvalidAccountNonceError',\n });\n }\n}\nObject.defineProperty(InvalidAccountNonceError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa25/\n});\nexport class InvalidBeneficiaryError extends BaseError {\n constructor({ cause, }) {\n super('Bundler has not set a beneficiary address.', {\n cause,\n name: 'InvalidBeneficiaryError',\n });\n }\n}\nObject.defineProperty(InvalidBeneficiaryError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa90/\n});\nexport class InvalidFieldsError extends BaseError {\n constructor({ cause, }) {\n super('Invalid fields set on User Operation.', {\n cause,\n name: 'InvalidFieldsError',\n });\n }\n}\nObject.defineProperty(InvalidFieldsError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32602\n});\nexport class InvalidPaymasterAndDataError extends BaseError {\n constructor({ cause, paymasterAndData, }) {\n super('Paymaster properties provided are invalid.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the `paymasterAndData` property is of an incorrect length\\n',\n paymasterAndData && `paymasterAndData: ${paymasterAndData}`,\n ].filter(Boolean),\n name: 'InvalidPaymasterAndDataError',\n });\n }\n}\nObject.defineProperty(InvalidPaymasterAndDataError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa93/\n});\nexport class PaymasterDepositTooLowError extends BaseError {\n constructor({ cause, }) {\n super('Paymaster deposit for the User Operation is too low.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the Paymaster has deposited less than the expected amount via the `deposit` function',\n ].filter(Boolean),\n name: 'PaymasterDepositTooLowError',\n });\n }\n}\nObject.defineProperty(PaymasterDepositTooLowError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32508\n});\nObject.defineProperty(PaymasterDepositTooLowError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa31/\n});\nexport class PaymasterFunctionRevertedError extends BaseError {\n constructor({ cause, }) {\n super('The `validatePaymasterUserOp` function on the Paymaster reverted.', {\n cause,\n name: 'PaymasterFunctionRevertedError',\n });\n }\n}\nObject.defineProperty(PaymasterFunctionRevertedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa33/\n});\nexport class PaymasterNotDeployedError extends BaseError {\n constructor({ cause, }) {\n super('The Paymaster contract has not been deployed.', {\n cause,\n name: 'PaymasterNotDeployedError',\n });\n }\n}\nObject.defineProperty(PaymasterNotDeployedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa30/\n});\nexport class PaymasterRateLimitError extends BaseError {\n constructor({ cause }) {\n super('UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.', {\n cause,\n name: 'PaymasterRateLimitError',\n });\n }\n}\nObject.defineProperty(PaymasterRateLimitError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32504\n});\nexport class PaymasterStakeTooLowError extends BaseError {\n constructor({ cause }) {\n super('UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.', {\n cause,\n name: 'PaymasterStakeTooLowError',\n });\n }\n}\nObject.defineProperty(PaymasterStakeTooLowError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32505\n});\nexport class PaymasterPostOpFunctionRevertedError extends BaseError {\n constructor({ cause, }) {\n super('Paymaster `postOp` function reverted.', {\n cause,\n name: 'PaymasterPostOpFunctionRevertedError',\n });\n }\n}\nObject.defineProperty(PaymasterPostOpFunctionRevertedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa50/\n});\nexport class SenderAlreadyConstructedError extends BaseError {\n constructor({ cause, factory, factoryData, initCode, }) {\n super('Smart Account has already been deployed.', {\n cause,\n metaMessages: [\n 'Remove the following properties and try again:',\n factory && '`factory`',\n factoryData && '`factoryData`',\n initCode && '`initCode`',\n ].filter(Boolean),\n name: 'SenderAlreadyConstructedError',\n });\n }\n}\nObject.defineProperty(SenderAlreadyConstructedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa10/\n});\nexport class SignatureCheckFailedError extends BaseError {\n constructor({ cause }) {\n super('UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).', {\n cause,\n name: 'SignatureCheckFailedError',\n });\n }\n}\nObject.defineProperty(SignatureCheckFailedError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32507\n});\nexport class SmartAccountFunctionRevertedError extends BaseError {\n constructor({ cause, }) {\n super('The `validateUserOp` function on the Smart Account reverted.', {\n cause,\n name: 'SmartAccountFunctionRevertedError',\n });\n }\n}\nObject.defineProperty(SmartAccountFunctionRevertedError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa23/\n});\nexport class UnsupportedSignatureAggregatorError extends BaseError {\n constructor({ cause }) {\n super('UserOperation rejected because account specified unsupported signature aggregator.', {\n cause,\n name: 'UnsupportedSignatureAggregatorError',\n });\n }\n}\nObject.defineProperty(UnsupportedSignatureAggregatorError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32506\n});\nexport class UserOperationExpiredError extends BaseError {\n constructor({ cause, }) {\n super('User Operation expired.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied',\n ].filter(Boolean),\n name: 'UserOperationExpiredError',\n });\n }\n}\nObject.defineProperty(UserOperationExpiredError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa22/\n});\nexport class UserOperationPaymasterExpiredError extends BaseError {\n constructor({ cause, }) {\n super('Paymaster for User Operation expired.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied',\n ].filter(Boolean),\n name: 'UserOperationPaymasterExpiredError',\n });\n }\n}\nObject.defineProperty(UserOperationPaymasterExpiredError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa32/\n});\nexport class UserOperationSignatureError extends BaseError {\n constructor({ cause, }) {\n super('Signature provided for the User Operation is invalid.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account',\n ].filter(Boolean),\n name: 'UserOperationSignatureError',\n });\n }\n}\nObject.defineProperty(UserOperationSignatureError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa24/\n});\nexport class UserOperationPaymasterSignatureError extends BaseError {\n constructor({ cause, }) {\n super('Signature provided for the User Operation is invalid.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster',\n ].filter(Boolean),\n name: 'UserOperationPaymasterSignatureError',\n });\n }\n}\nObject.defineProperty(UserOperationPaymasterSignatureError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa34/\n});\nexport class UserOperationRejectedByEntryPointError extends BaseError {\n constructor({ cause }) {\n super(\"User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.\", {\n cause,\n name: 'UserOperationRejectedByEntryPointError',\n });\n }\n}\nObject.defineProperty(UserOperationRejectedByEntryPointError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32500\n});\nexport class UserOperationRejectedByPaymasterError extends BaseError {\n constructor({ cause }) {\n super(\"User Operation rejected by Paymaster's `validatePaymasterUserOp`.\", {\n cause,\n name: 'UserOperationRejectedByPaymasterError',\n });\n }\n}\nObject.defineProperty(UserOperationRejectedByPaymasterError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32501\n});\nexport class UserOperationRejectedByOpCodeError extends BaseError {\n constructor({ cause }) {\n super('User Operation rejected with op code validation error.', {\n cause,\n name: 'UserOperationRejectedByOpCodeError',\n });\n }\n}\nObject.defineProperty(UserOperationRejectedByOpCodeError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32502\n});\nexport class UserOperationOutOfTimeRangeError extends BaseError {\n constructor({ cause }) {\n super('UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).', {\n cause,\n name: 'UserOperationOutOfTimeRangeError',\n });\n }\n}\nObject.defineProperty(UserOperationOutOfTimeRangeError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32503\n});\nexport class UnknownBundlerError extends BaseError {\n constructor({ cause }) {\n super(`An error occurred while executing user operation: ${cause?.shortMessage}`, {\n cause,\n name: 'UnknownBundlerError',\n });\n }\n}\nexport class VerificationGasLimitExceededError extends BaseError {\n constructor({ cause, }) {\n super('User Operation verification gas limit exceeded.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the gas used for verification exceeded the `verificationGasLimit`',\n ].filter(Boolean),\n name: 'VerificationGasLimitExceededError',\n });\n }\n}\nObject.defineProperty(VerificationGasLimitExceededError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa40/\n});\nexport class VerificationGasLimitTooLowError extends BaseError {\n constructor({ cause, }) {\n super('User Operation verification gas limit is too low.', {\n cause,\n metaMessages: [\n 'This could arise when:',\n '- the `verificationGasLimit` is too low to verify the User Operation',\n ].filter(Boolean),\n name: 'VerificationGasLimitTooLowError',\n });\n }\n}\nObject.defineProperty(VerificationGasLimitTooLowError, \"message\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /aa41/\n});\n//# sourceMappingURL=bundler.js.map","import { BaseError } from '../../errors/base.js';\nimport { prettyPrint } from '../../errors/transaction.js';\nimport { formatGwei } from '../../utils/index.js';\nexport class UserOperationExecutionError extends BaseError {\n constructor(cause, { callData, callGasLimit, docsPath, factory, factoryData, initCode, maxFeePerGas, maxPriorityFeePerGas, nonce, paymaster, paymasterAndData, paymasterData, paymasterPostOpGasLimit, paymasterVerificationGasLimit, preVerificationGas, sender, signature, verificationGasLimit, }) {\n const prettyArgs = prettyPrint({\n callData,\n callGasLimit,\n factory,\n factoryData,\n initCode,\n maxFeePerGas: typeof maxFeePerGas !== 'undefined' &&\n `${formatGwei(maxFeePerGas)} gwei`,\n maxPriorityFeePerGas: typeof maxPriorityFeePerGas !== 'undefined' &&\n `${formatGwei(maxPriorityFeePerGas)} gwei`,\n nonce,\n paymaster,\n paymasterAndData,\n paymasterData,\n paymasterPostOpGasLimit,\n paymasterVerificationGasLimit,\n preVerificationGas,\n sender,\n signature,\n verificationGasLimit,\n });\n super(cause.shortMessage, {\n cause,\n docsPath,\n metaMessages: [\n ...(cause.metaMessages ? [...cause.metaMessages, ' '] : []),\n 'Request Arguments:',\n prettyArgs,\n ].filter(Boolean),\n name: 'UserOperationExecutionError',\n });\n Object.defineProperty(this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.cause = cause;\n }\n}\nexport class UserOperationReceiptNotFoundError extends BaseError {\n constructor({ hash }) {\n super(`User Operation receipt with hash \"${hash}\" could not be found. The User Operation may not have been processed yet.`, { name: 'UserOperationReceiptNotFoundError' });\n }\n}\nexport class UserOperationNotFoundError extends BaseError {\n constructor({ hash }) {\n super(`User Operation with hash \"${hash}\" could not be found.`, {\n name: 'UserOperationNotFoundError',\n });\n }\n}\nexport class WaitForUserOperationReceiptTimeoutError extends BaseError {\n constructor({ hash }) {\n super(`Timed out while waiting for User Operation with hash \"${hash}\" to be confirmed.`, { name: 'WaitForUserOperationReceiptTimeoutError' });\n }\n}\n//# sourceMappingURL=userOperation.js.map","import { AccountNotDeployedError, ExecutionRevertedError, FailedToSendToBeneficiaryError, GasValuesOverflowError, HandleOpsOutOfGasError, InitCodeFailedError, InitCodeMustCreateSenderError, InitCodeMustReturnSenderError, InsufficientPrefundError, InternalCallOnlyError, InvalidAccountNonceError, InvalidAggregatorError, InvalidBeneficiaryError, InvalidFieldsError, InvalidPaymasterAndDataError, PaymasterDepositTooLowError, PaymasterFunctionRevertedError, PaymasterNotDeployedError, PaymasterPostOpFunctionRevertedError, PaymasterRateLimitError, PaymasterStakeTooLowError, SenderAlreadyConstructedError, SignatureCheckFailedError, SmartAccountFunctionRevertedError, UnknownBundlerError, UnsupportedSignatureAggregatorError, UserOperationExpiredError, UserOperationOutOfTimeRangeError, UserOperationPaymasterExpiredError, UserOperationPaymasterSignatureError, UserOperationRejectedByEntryPointError, UserOperationRejectedByOpCodeError, UserOperationRejectedByPaymasterError, UserOperationSignatureError, VerificationGasLimitExceededError, VerificationGasLimitTooLowError, } from '../../errors/bundler.js';\nconst bundlerErrors = [\n ExecutionRevertedError,\n InvalidFieldsError,\n PaymasterDepositTooLowError,\n PaymasterRateLimitError,\n PaymasterStakeTooLowError,\n SignatureCheckFailedError,\n UnsupportedSignatureAggregatorError,\n UserOperationOutOfTimeRangeError,\n UserOperationRejectedByEntryPointError,\n UserOperationRejectedByPaymasterError,\n UserOperationRejectedByOpCodeError,\n];\nexport function getBundlerError(err, args) {\n const message = (err.details || '').toLowerCase();\n if (AccountNotDeployedError.message.test(message))\n return new AccountNotDeployedError({\n cause: err,\n });\n if (FailedToSendToBeneficiaryError.message.test(message))\n return new FailedToSendToBeneficiaryError({\n cause: err,\n });\n if (GasValuesOverflowError.message.test(message))\n return new GasValuesOverflowError({\n cause: err,\n });\n if (HandleOpsOutOfGasError.message.test(message))\n return new HandleOpsOutOfGasError({\n cause: err,\n });\n if (InitCodeFailedError.message.test(message))\n return new InitCodeFailedError({\n cause: err,\n factory: args.factory,\n factoryData: args.factoryData,\n initCode: args.initCode,\n });\n if (InitCodeMustCreateSenderError.message.test(message))\n return new InitCodeMustCreateSenderError({\n cause: err,\n factory: args.factory,\n factoryData: args.factoryData,\n initCode: args.initCode,\n });\n if (InitCodeMustReturnSenderError.message.test(message))\n return new InitCodeMustReturnSenderError({\n cause: err,\n factory: args.factory,\n factoryData: args.factoryData,\n initCode: args.initCode,\n sender: args.sender,\n });\n if (InsufficientPrefundError.message.test(message))\n return new InsufficientPrefundError({\n cause: err,\n });\n if (InternalCallOnlyError.message.test(message))\n return new InternalCallOnlyError({\n cause: err,\n });\n if (InvalidAccountNonceError.message.test(message))\n return new InvalidAccountNonceError({\n cause: err,\n nonce: args.nonce,\n });\n if (InvalidAggregatorError.message.test(message))\n return new InvalidAggregatorError({\n cause: err,\n });\n if (InvalidBeneficiaryError.message.test(message))\n return new InvalidBeneficiaryError({\n cause: err,\n });\n if (InvalidPaymasterAndDataError.message.test(message))\n return new InvalidPaymasterAndDataError({\n cause: err,\n });\n if (PaymasterDepositTooLowError.message.test(message))\n return new PaymasterDepositTooLowError({\n cause: err,\n });\n if (PaymasterFunctionRevertedError.message.test(message))\n return new PaymasterFunctionRevertedError({\n cause: err,\n });\n if (PaymasterNotDeployedError.message.test(message))\n return new PaymasterNotDeployedError({\n cause: err,\n });\n if (PaymasterPostOpFunctionRevertedError.message.test(message))\n return new PaymasterPostOpFunctionRevertedError({\n cause: err,\n });\n if (SmartAccountFunctionRevertedError.message.test(message))\n return new SmartAccountFunctionRevertedError({\n cause: err,\n });\n if (SenderAlreadyConstructedError.message.test(message))\n return new SenderAlreadyConstructedError({\n cause: err,\n factory: args.factory,\n factoryData: args.factoryData,\n initCode: args.initCode,\n });\n if (UserOperationExpiredError.message.test(message))\n return new UserOperationExpiredError({\n cause: err,\n });\n if (UserOperationPaymasterExpiredError.message.test(message))\n return new UserOperationPaymasterExpiredError({\n cause: err,\n });\n if (UserOperationPaymasterSignatureError.message.test(message))\n return new UserOperationPaymasterSignatureError({\n cause: err,\n });\n if (UserOperationSignatureError.message.test(message))\n return new UserOperationSignatureError({\n cause: err,\n });\n if (VerificationGasLimitExceededError.message.test(message))\n return new VerificationGasLimitExceededError({\n cause: err,\n });\n if (VerificationGasLimitTooLowError.message.test(message))\n return new VerificationGasLimitTooLowError({\n cause: err,\n });\n const error = err.walk((e) => bundlerErrors.some((error) => error.code === e.code));\n if (error) {\n if (error.code === ExecutionRevertedError.code)\n return new ExecutionRevertedError({\n cause: err,\n data: error.data,\n message: error.details,\n });\n if (error.code === InvalidFieldsError.code)\n return new InvalidFieldsError({\n cause: err,\n });\n if (error.code === PaymasterDepositTooLowError.code)\n return new PaymasterDepositTooLowError({\n cause: err,\n });\n if (error.code === PaymasterRateLimitError.code)\n return new PaymasterRateLimitError({\n cause: err,\n });\n if (error.code === PaymasterStakeTooLowError.code)\n return new PaymasterStakeTooLowError({\n cause: err,\n });\n if (error.code === SignatureCheckFailedError.code)\n return new SignatureCheckFailedError({\n cause: err,\n });\n if (error.code === UnsupportedSignatureAggregatorError.code)\n return new UnsupportedSignatureAggregatorError({\n cause: err,\n });\n if (error.code === UserOperationOutOfTimeRangeError.code)\n return new UserOperationOutOfTimeRangeError({\n cause: err,\n });\n if (error.code === UserOperationRejectedByEntryPointError.code)\n return new UserOperationRejectedByEntryPointError({\n cause: err,\n });\n if (error.code === UserOperationRejectedByPaymasterError.code)\n return new UserOperationRejectedByPaymasterError({\n cause: err,\n });\n if (error.code === UserOperationRejectedByOpCodeError.code)\n return new UserOperationRejectedByOpCodeError({\n cause: err,\n });\n }\n return new UnknownBundlerError({\n cause: err,\n });\n}\n//# sourceMappingURL=getBundlerError.js.map","import { BaseError } from '../../../errors/base.js';\nimport { ContractFunctionExecutionError, ContractFunctionRevertedError, ContractFunctionZeroDataError, } from '../../../errors/contract.js';\nimport { decodeErrorResult } from '../../../utils/abi/decodeErrorResult.js';\nimport { ExecutionRevertedError } from '../../errors/bundler.js';\nimport { UserOperationExecutionError, } from '../../errors/userOperation.js';\nimport { getBundlerError, } from './getBundlerError.js';\nexport function getUserOperationError(err, { calls, docsPath, ...args }) {\n const cause = (() => {\n const cause = getBundlerError(err, args);\n if (calls && cause instanceof ExecutionRevertedError) {\n const revertData = getRevertData(cause);\n const contractCalls = calls?.filter((call) => call.abi);\n if (revertData && contractCalls.length > 0)\n return getContractError({ calls: contractCalls, revertData });\n }\n return cause;\n })();\n return new UserOperationExecutionError(cause, {\n docsPath,\n ...args,\n });\n}\n/////////////////////////////////////////////////////////////////////////////////\nfunction getRevertData(error) {\n let revertData;\n error.walk((e) => {\n const error = e;\n if (typeof error.data === 'string' ||\n typeof error.data?.revertData === 'string' ||\n (!(error instanceof BaseError) && typeof error.message === 'string')) {\n const match = (error.data?.revertData ||\n error.data ||\n error.message).match?.(/(0x[A-Za-z0-9]*)/);\n if (match) {\n revertData = match[1];\n return true;\n }\n }\n return false;\n });\n return revertData;\n}\nfunction getContractError(parameters) {\n const { calls, revertData } = parameters;\n const { abi, functionName, args, to } = (() => {\n const contractCalls = calls?.filter((call) => Boolean(call.abi));\n if (contractCalls.length === 1)\n return contractCalls[0];\n const compatContractCalls = contractCalls.filter((call) => {\n try {\n return Boolean(decodeErrorResult({\n abi: call.abi,\n data: revertData,\n }));\n }\n catch {\n return false;\n }\n });\n if (compatContractCalls.length === 1)\n return compatContractCalls[0];\n return {\n abi: [],\n functionName: contractCalls.reduce((acc, call) => `${acc ? `${acc} | ` : ''}${call.functionName}`, ''),\n args: undefined,\n to: undefined,\n };\n })();\n const cause = (() => {\n if (revertData === '0x')\n return new ContractFunctionZeroDataError({ functionName });\n return new ContractFunctionRevertedError({\n abi,\n data: revertData,\n functionName,\n });\n })();\n return new ContractFunctionExecutionError(cause, {\n abi,\n args,\n contractAddress: to,\n functionName,\n });\n}\n//# sourceMappingURL=getUserOperationError.js.map","export function formatUserOperationGas(parameters) {\n const gas = {};\n if (parameters.callGasLimit)\n gas.callGasLimit = BigInt(parameters.callGasLimit);\n if (parameters.preVerificationGas)\n gas.preVerificationGas = BigInt(parameters.preVerificationGas);\n if (parameters.verificationGasLimit)\n gas.verificationGasLimit = BigInt(parameters.verificationGasLimit);\n if (parameters.paymasterPostOpGasLimit)\n gas.paymasterPostOpGasLimit = BigInt(parameters.paymasterPostOpGasLimit);\n if (parameters.paymasterVerificationGasLimit)\n gas.paymasterVerificationGasLimit = BigInt(parameters.paymasterVerificationGasLimit);\n return gas;\n}\n//# sourceMappingURL=userOperationGas.js.map","import { numberToHex } from '../../../utils/encoding/toHex.js';\nimport { pad } from '../../../utils/index.js';\nexport function formatUserOperationRequest(request) {\n const rpcRequest = {};\n if (typeof request.callData !== 'undefined')\n rpcRequest.callData = request.callData;\n if (typeof request.callGasLimit !== 'undefined')\n rpcRequest.callGasLimit = numberToHex(request.callGasLimit);\n if (typeof request.factory !== 'undefined')\n rpcRequest.factory = request.factory;\n if (typeof request.factoryData !== 'undefined')\n rpcRequest.factoryData = request.factoryData;\n if (typeof request.initCode !== 'undefined')\n rpcRequest.initCode = request.initCode;\n if (typeof request.maxFeePerGas !== 'undefined')\n rpcRequest.maxFeePerGas = numberToHex(request.maxFeePerGas);\n if (typeof request.maxPriorityFeePerGas !== 'undefined')\n rpcRequest.maxPriorityFeePerGas = numberToHex(request.maxPriorityFeePerGas);\n if (typeof request.nonce !== 'undefined')\n rpcRequest.nonce = numberToHex(request.nonce);\n if (typeof request.paymaster !== 'undefined')\n rpcRequest.paymaster = request.paymaster;\n if (typeof request.paymasterAndData !== 'undefined')\n rpcRequest.paymasterAndData = request.paymasterAndData || '0x';\n if (typeof request.paymasterData !== 'undefined')\n rpcRequest.paymasterData = request.paymasterData;\n if (typeof request.paymasterPostOpGasLimit !== 'undefined')\n rpcRequest.paymasterPostOpGasLimit = numberToHex(request.paymasterPostOpGasLimit);\n if (typeof request.paymasterVerificationGasLimit !== 'undefined')\n rpcRequest.paymasterVerificationGasLimit = numberToHex(request.paymasterVerificationGasLimit);\n if (typeof request.preVerificationGas !== 'undefined')\n rpcRequest.preVerificationGas = numberToHex(request.preVerificationGas);\n if (typeof request.sender !== 'undefined')\n rpcRequest.sender = request.sender;\n if (typeof request.signature !== 'undefined')\n rpcRequest.signature = request.signature;\n if (typeof request.verificationGasLimit !== 'undefined')\n rpcRequest.verificationGasLimit = numberToHex(request.verificationGasLimit);\n if (typeof request.authorization !== 'undefined')\n rpcRequest.eip7702Auth = formatAuthorization(request.authorization);\n return rpcRequest;\n}\nfunction formatAuthorization(authorization) {\n return {\n address: authorization.address,\n chainId: numberToHex(authorization.chainId),\n nonce: numberToHex(authorization.nonce),\n r: authorization.r\n ? numberToHex(BigInt(authorization.r), { size: 32 })\n : pad('0x', { size: 32 }),\n s: authorization.s\n ? numberToHex(BigInt(authorization.s), { size: 32 })\n : pad('0x', { size: 32 }),\n yParity: authorization.yParity\n ? numberToHex(authorization.yParity, { size: 1 })\n : pad('0x', { size: 32 }),\n };\n}\n//# sourceMappingURL=userOperationRequest.js.map","import { hexToBigInt } from '../../../utils/encoding/fromHex.js';\nimport { numberToHex } from '../../../utils/encoding/toHex.js';\nimport { formatUserOperationRequest, } from '../../utils/formatters/userOperationRequest.js';\n/**\n * Retrieves paymaster-related User Operation properties to be used for sending the User Operation.\n *\n * - Docs: https://viem.sh/account-abstraction/actions/paymaster/getPaymasterData\n *\n * @param client - Client to use\n * @param parameters - {@link GetPaymasterDataParameters}\n * @returns Paymaster-related User Operation properties. {@link GetPaymasterDataReturnType}\n *\n * @example\n * import { http } from 'viem'\n * import { createPaymasterClient, getPaymasterData } from 'viem/account-abstraction'\n *\n * const paymasterClient = createPaymasterClient({\n * transport: http('https://...'),\n * })\n *\n * const userOperation = { ... }\n *\n * const values = await getPaymasterData(paymasterClient, {\n * chainId: 1,\n * entryPointAddress: '0x...',\n * ...userOperation,\n * })\n */\nexport async function getPaymasterData(client, parameters) {\n const { chainId, entryPointAddress, context, ...userOperation } = parameters;\n const request = formatUserOperationRequest(userOperation);\n const { paymasterPostOpGasLimit, paymasterVerificationGasLimit, ...rest } = await client.request({\n method: 'pm_getPaymasterData',\n params: [\n {\n ...request,\n callGasLimit: request.callGasLimit ?? '0x0',\n verificationGasLimit: request.verificationGasLimit ?? '0x0',\n preVerificationGas: request.preVerificationGas ?? '0x0',\n },\n entryPointAddress,\n numberToHex(chainId),\n context,\n ],\n });\n return {\n ...rest,\n ...(paymasterPostOpGasLimit && {\n paymasterPostOpGasLimit: hexToBigInt(paymasterPostOpGasLimit),\n }),\n ...(paymasterVerificationGasLimit && {\n paymasterVerificationGasLimit: hexToBigInt(paymasterVerificationGasLimit),\n }),\n };\n}\n//# sourceMappingURL=getPaymasterData.js.map","import { hexToBigInt } from '../../../utils/encoding/fromHex.js';\nimport { numberToHex } from '../../../utils/encoding/toHex.js';\nimport { formatUserOperationRequest, } from '../../utils/formatters/userOperationRequest.js';\n/**\n * Retrieves paymaster-related User Operation properties to be used for gas estimation.\n *\n * - Docs: https://viem.sh/account-abstraction/actions/paymaster/getPaymasterStubData\n *\n * @param client - Client to use\n * @param parameters - {@link GetPaymasterStubDataParameters}\n * @returns Paymaster-related User Operation properties. {@link GetPaymasterStubDataReturnType}\n *\n * @example\n * import { http } from 'viem'\n * import { createPaymasterClient, getPaymasterStubData } from 'viem/account-abstraction'\n *\n * const paymasterClient = createPaymasterClient({\n * transport: http('https://...'),\n * })\n *\n * const userOperation = { ... }\n *\n * const values = await getPaymasterStubData(paymasterClient, {\n * chainId: 1,\n * entryPointAddress: '0x...',\n * ...userOperation,\n * })\n */\nexport async function getPaymasterStubData(client, parameters) {\n const { chainId, entryPointAddress, context, ...userOperation } = parameters;\n const request = formatUserOperationRequest(userOperation);\n const { paymasterPostOpGasLimit, paymasterVerificationGasLimit, ...rest } = await client.request({\n method: 'pm_getPaymasterStubData',\n params: [\n {\n ...request,\n callGasLimit: request.callGasLimit ?? '0x0',\n verificationGasLimit: request.verificationGasLimit ?? '0x0',\n preVerificationGas: request.preVerificationGas ?? '0x0',\n },\n entryPointAddress,\n numberToHex(chainId),\n context,\n ],\n });\n return {\n ...rest,\n ...(paymasterPostOpGasLimit && {\n paymasterPostOpGasLimit: hexToBigInt(paymasterPostOpGasLimit),\n }),\n ...(paymasterVerificationGasLimit && {\n paymasterVerificationGasLimit: hexToBigInt(paymasterVerificationGasLimit),\n }),\n };\n}\n//# sourceMappingURL=getPaymasterStubData.js.map","import { parseAccount, } from '../../../accounts/utils/parseAccount.js';\nimport { prepareAuthorization } from '../../../actions/index.js';\nimport { estimateFeesPerGas, } from '../../../actions/public/estimateFeesPerGas.js';\nimport { getChainId as getChainId_ } from '../../../actions/public/getChainId.js';\nimport { AccountNotFoundError } from '../../../errors/account.js';\nimport { encodeFunctionData, } from '../../../utils/abi/encodeFunctionData.js';\nimport { concat } from '../../../utils/data/concat.js';\nimport { getAction } from '../../../utils/getAction.js';\nimport { getPaymasterData as getPaymasterData_, } from '../paymaster/getPaymasterData.js';\nimport { getPaymasterStubData as getPaymasterStubData_, } from '../paymaster/getPaymasterStubData.js';\nimport { estimateUserOperationGas, } from './estimateUserOperationGas.js';\nconst defaultParameters = [\n 'factory',\n 'fees',\n 'gas',\n 'paymaster',\n 'nonce',\n 'signature',\n 'authorization',\n];\n/**\n * Prepares a User Operation and fills in missing properties.\n *\n * - Docs: https://viem.sh/actions/bundler/prepareUserOperation\n *\n * @param args - {@link PrepareUserOperationParameters}\n * @returns The User Operation. {@link PrepareUserOperationReturnType}\n *\n * @example\n * import { createBundlerClient, http } from 'viem'\n * import { toSmartAccount } from 'viem/accounts'\n * import { mainnet } from 'viem/chains'\n * import { prepareUserOperation } from 'viem/actions'\n *\n * const account = await toSmartAccount({ ... })\n *\n * const client = createBundlerClient({\n * chain: mainnet,\n * transport: http(),\n * })\n *\n * const request = await prepareUserOperation(client, {\n * account,\n * calls: [{ to: '0x...', value: parseEther('1') }],\n * })\n */\nexport async function prepareUserOperation(client, parameters_) {\n const parameters = parameters_;\n const { account: account_ = client.account, parameters: properties = defaultParameters, stateOverride, } = parameters;\n ////////////////////////////////////////////////////////////////////////////////\n // Assert that an Account is defined.\n ////////////////////////////////////////////////////////////////////////////////\n if (!account_)\n throw new AccountNotFoundError();\n const account = parseAccount(account_);\n ////////////////////////////////////////////////////////////////////////////////\n // Declare typed Bundler Client.\n ////////////////////////////////////////////////////////////////////////////////\n const bundlerClient = client;\n ////////////////////////////////////////////////////////////////////////////////\n // Declare Paymaster properties.\n ////////////////////////////////////////////////////////////////////////////////\n const paymaster = parameters.paymaster ?? bundlerClient?.paymaster;\n const paymasterAddress = typeof paymaster === 'string' ? paymaster : undefined;\n const { getPaymasterStubData, getPaymasterData } = (() => {\n // If `paymaster: true`, we will assume the Bundler Client supports Paymaster Actions.\n if (paymaster === true)\n return {\n getPaymasterStubData: (parameters) => getAction(bundlerClient, getPaymasterStubData_, 'getPaymasterStubData')(parameters),\n getPaymasterData: (parameters) => getAction(bundlerClient, getPaymasterData_, 'getPaymasterData')(parameters),\n };\n // If Actions are passed to `paymaster` (via Paymaster Client or directly), we will use them.\n if (typeof paymaster === 'object') {\n const { getPaymasterStubData, getPaymasterData } = paymaster;\n return {\n getPaymasterStubData: (getPaymasterData && getPaymasterStubData\n ? getPaymasterStubData\n : getPaymasterData),\n getPaymasterData: getPaymasterData && getPaymasterStubData\n ? getPaymasterData\n : undefined,\n };\n }\n // No Paymaster functions.\n return {\n getPaymasterStubData: undefined,\n getPaymasterData: undefined,\n };\n })();\n const paymasterContext = parameters.paymasterContext\n ? parameters.paymasterContext\n : bundlerClient?.paymasterContext;\n ////////////////////////////////////////////////////////////////////////////////\n // Set up the User Operation request.\n ////////////////////////////////////////////////////////////////////////////////\n let request = {\n ...parameters,\n paymaster: paymasterAddress,\n sender: account.address,\n };\n ////////////////////////////////////////////////////////////////////////////////\n // Concurrently prepare properties required to fill the User Operation.\n ////////////////////////////////////////////////////////////////////////////////\n const [callData, factory, fees, nonce, authorization] = await Promise.all([\n (async () => {\n if (parameters.calls)\n return account.encodeCalls(parameters.calls.map((call_) => {\n const call = call_;\n if (call.abi)\n return {\n data: encodeFunctionData(call),\n to: call.to,\n value: call.value,\n };\n return call;\n }));\n return parameters.callData;\n })(),\n (async () => {\n if (!properties.includes('factory'))\n return undefined;\n if (parameters.initCode)\n return { initCode: parameters.initCode };\n if (parameters.factory && parameters.factoryData) {\n return {\n factory: parameters.factory,\n factoryData: parameters.factoryData,\n };\n }\n const { factory, factoryData } = await account.getFactoryArgs();\n if (account.entryPoint.version === '0.6')\n return {\n initCode: factory && factoryData ? concat([factory, factoryData]) : undefined,\n };\n return {\n factory,\n factoryData,\n };\n })(),\n (async () => {\n if (!properties.includes('fees'))\n return undefined;\n // If we have sufficient properties for fees, return them.\n if (typeof parameters.maxFeePerGas === 'bigint' &&\n typeof parameters.maxPriorityFeePerGas === 'bigint')\n return request;\n // If the Bundler Client has a `estimateFeesPerGas` hook, run it.\n if (bundlerClient?.userOperation?.estimateFeesPerGas) {\n const fees = await bundlerClient.userOperation.estimateFeesPerGas({\n account,\n bundlerClient,\n userOperation: request,\n });\n return {\n ...request,\n ...fees,\n };\n }\n // Otherwise, we will need to estimate the fees to fill the fee properties.\n try {\n const client_ = bundlerClient.client ?? client;\n const fees = await getAction(client_, estimateFeesPerGas, 'estimateFeesPerGas')({\n chain: client_.chain,\n type: 'eip1559',\n });\n return {\n maxFeePerGas: typeof parameters.maxFeePerGas === 'bigint'\n ? parameters.maxFeePerGas\n : BigInt(\n // Bundlers unfortunately have strict rules on fee prechecks – we will need to set a generous buffer.\n 2n * fees.maxFeePerGas),\n maxPriorityFeePerGas: typeof parameters.maxPriorityFeePerGas === 'bigint'\n ? parameters.maxPriorityFeePerGas\n : BigInt(\n // Bundlers unfortunately have strict rules on fee prechecks – we will need to set a generous buffer.\n 2n * fees.maxPriorityFeePerGas),\n };\n }\n catch {\n return undefined;\n }\n })(),\n (async () => {\n if (!properties.includes('nonce'))\n return undefined;\n if (typeof parameters.nonce === 'bigint')\n return parameters.nonce;\n return account.getNonce();\n })(),\n (async () => {\n if (!properties.includes('authorization'))\n return undefined;\n if (typeof parameters.authorization === 'object')\n return parameters.authorization;\n if (account.authorization && !(await account.isDeployed())) {\n const authorization = await prepareAuthorization(account.client, account.authorization);\n return {\n ...authorization,\n r: '0xfffffffffffffffffffffffffffffff000000000000000000000000000000000',\n s: '0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',\n yParity: 1,\n };\n }\n return undefined;\n })(),\n ]);\n ////////////////////////////////////////////////////////////////////////////////\n // Fill User Operation with the prepared properties from above.\n ////////////////////////////////////////////////////////////////////////////////\n if (typeof callData !== 'undefined')\n request.callData = callData;\n if (typeof factory !== 'undefined')\n request = { ...request, ...factory };\n if (typeof fees !== 'undefined')\n request = { ...request, ...fees };\n if (typeof nonce !== 'undefined')\n request.nonce = nonce;\n if (typeof authorization !== 'undefined')\n request.authorization = authorization;\n ////////////////////////////////////////////////////////////////////////////////\n // Fill User Operation with the `signature` property.\n ////////////////////////////////////////////////////////////////////////////////\n if (properties.includes('signature')) {\n if (typeof parameters.signature !== 'undefined')\n request.signature = parameters.signature;\n else\n request.signature = await account.getStubSignature(request);\n }\n ////////////////////////////////////////////////////////////////////////////////\n // `initCode` is required to be filled with EntryPoint 0.6.\n ////////////////////////////////////////////////////////////////////////////////\n // If no `initCode` is provided, we use an empty bytes string.\n if (account.entryPoint.version === '0.6' && !request.initCode)\n request.initCode = '0x';\n ////////////////////////////////////////////////////////////////////////////////\n // Fill User Operation with paymaster-related properties for **gas estimation**.\n ////////////////////////////////////////////////////////////////////////////////\n let chainId;\n async function getChainId() {\n if (chainId)\n return chainId;\n if (client.chain)\n return client.chain.id;\n const chainId_ = await getAction(client, getChainId_, 'getChainId')({});\n chainId = chainId_;\n return chainId;\n }\n // If the User Operation is intended to be sponsored, we will need to fill the paymaster-related\n // User Operation properties required to estimate the User Operation gas.\n let isPaymasterPopulated = false;\n if (properties.includes('paymaster') &&\n getPaymasterStubData &&\n !paymasterAddress &&\n !parameters.paymasterAndData) {\n const { isFinal = false, sponsor: _, ...paymasterArgs } = await getPaymasterStubData({\n chainId: await getChainId(),\n entryPointAddress: account.entryPoint.address,\n context: paymasterContext,\n ...request,\n });\n isPaymasterPopulated = isFinal;\n request = {\n ...request,\n ...paymasterArgs,\n };\n }\n ////////////////////////////////////////////////////////////////////////////////\n // `paymasterAndData` is required to be filled with EntryPoint 0.6.\n ////////////////////////////////////////////////////////////////////////////////\n // If no `paymasterAndData` is provided, we use an empty bytes string.\n if (account.entryPoint.version === '0.6' && !request.paymasterAndData)\n request.paymasterAndData = '0x';\n ////////////////////////////////////////////////////////////////////////////////\n // Fill User Operation with gas-related properties.\n ////////////////////////////////////////////////////////////////////////////////\n if (properties.includes('gas')) {\n // If the Account has opinionated gas estimation logic, run the `estimateGas` hook and\n // fill the request with the prepared gas properties.\n if (account.userOperation?.estimateGas) {\n const gas = await account.userOperation.estimateGas(request);\n request = {\n ...request,\n ...gas,\n };\n }\n // If not all the gas properties are already populated, we will need to estimate the gas\n // to fill the gas properties.\n if (typeof request.callGasLimit === 'undefined' ||\n typeof request.preVerificationGas === 'undefined' ||\n typeof request.verificationGasLimit === 'undefined' ||\n (request.paymaster &&\n typeof request.paymasterPostOpGasLimit === 'undefined') ||\n (request.paymaster &&\n typeof request.paymasterVerificationGasLimit === 'undefined')) {\n const gas = await getAction(bundlerClient, estimateUserOperationGas, 'estimateUserOperationGas')({\n account,\n // Some Bundlers fail if nullish gas values are provided for gas estimation :') –\n // so we will need to set a default zeroish value.\n callGasLimit: 0n,\n preVerificationGas: 0n,\n verificationGasLimit: 0n,\n stateOverride,\n ...(request.paymaster\n ? {\n paymasterPostOpGasLimit: 0n,\n paymasterVerificationGasLimit: 0n,\n }\n : {}),\n ...request,\n });\n request = {\n ...request,\n callGasLimit: request.callGasLimit ?? gas.callGasLimit,\n preVerificationGas: request.preVerificationGas ?? gas.preVerificationGas,\n verificationGasLimit: request.verificationGasLimit ?? gas.verificationGasLimit,\n paymasterPostOpGasLimit: request.paymasterPostOpGasLimit ?? gas.paymasterPostOpGasLimit,\n paymasterVerificationGasLimit: request.paymasterVerificationGasLimit ??\n gas.paymasterVerificationGasLimit,\n };\n }\n }\n ////////////////////////////////////////////////////////////////////////////////\n // Fill User Operation with paymaster-related properties for **sending** the User Operation.\n ////////////////////////////////////////////////////////////////////////////////\n // If the User Operation is intended to be sponsored, we will need to fill the paymaster-related\n // User Operation properties required to send the User Operation.\n if (properties.includes('paymaster') &&\n getPaymasterData &&\n !paymasterAddress &&\n !parameters.paymasterAndData &&\n !isPaymasterPopulated) {\n // Retrieve paymaster-related User Operation properties to be used for **sending** the User Operation.\n const paymaster = await getPaymasterData({\n chainId: await getChainId(),\n entryPointAddress: account.entryPoint.address,\n context: paymasterContext,\n ...request,\n });\n request = {\n ...request,\n ...paymaster,\n };\n }\n ////////////////////////////////////////////////////////////////////////////////\n // Remove redundant properties that do not conform to the User Operation schema.\n ////////////////////////////////////////////////////////////////////////////////\n delete request.calls;\n delete request.parameters;\n delete request.paymasterContext;\n if (typeof request.paymaster !== 'string')\n delete request.paymaster;\n ////////////////////////////////////////////////////////////////////////////////\n return request;\n}\n//# sourceMappingURL=prepareUserOperation.js.map","import { parseAccount, } from '../../../accounts/utils/parseAccount.js';\nimport { AccountNotFoundError } from '../../../errors/account.js';\nimport { getAction } from '../../../utils/getAction.js';\nimport { serializeStateOverride } from '../../../utils/stateOverride.js';\nimport { getUserOperationError } from '../../utils/errors/getUserOperationError.js';\nimport { formatUserOperationGas, } from '../../utils/formatters/userOperationGas.js';\nimport { formatUserOperationRequest, } from '../../utils/formatters/userOperationRequest.js';\nimport { prepareUserOperation, } from './prepareUserOperation.js';\n/**\n * Returns an estimate of gas values necessary to execute the User Operation.\n *\n * - Docs: https://viem.sh/actions/bundler/estimateUserOperationGas\n *\n * @param client - Client to use\n * @param parameters - {@link EstimateUserOperationGasParameters}\n * @returns The gas estimate (in wei). {@link EstimateUserOperationGasReturnType}\n *\n * @example\n * import { createBundlerClient, http, parseEther } from 'viem'\n * import { toSmartAccount } from 'viem/accounts'\n * import { mainnet } from 'viem/chains'\n * import { estimateUserOperationGas } from 'viem/actions'\n *\n * const account = await toSmartAccount({ ... })\n *\n * const bundlerClient = createBundlerClient({\n * chain: mainnet,\n * transport: http(),\n * })\n *\n * const values = await estimateUserOperationGas(bundlerClient, {\n * account,\n * calls: [{ to: '0x...', value: parseEther('1') }],\n * })\n */\nexport async function estimateUserOperationGas(client, parameters) {\n const { account: account_ = client.account, entryPointAddress, stateOverride, } = parameters;\n if (!account_ && !parameters.sender)\n throw new AccountNotFoundError();\n const account = account_ ? parseAccount(account_) : undefined;\n const rpcStateOverride = serializeStateOverride(stateOverride);\n const request = account\n ? await getAction(client, prepareUserOperation, 'prepareUserOperation')({\n ...parameters,\n parameters: [\n 'authorization',\n 'factory',\n 'nonce',\n 'paymaster',\n 'signature',\n ],\n })\n : parameters;\n try {\n const params = [\n formatUserOperationRequest(request),\n (entryPointAddress ?? account?.entryPoint?.address),\n ];\n const result = await client.request({\n method: 'eth_estimateUserOperationGas',\n params: rpcStateOverride ? [...params, rpcStateOverride] : [...params],\n });\n return formatUserOperationGas(result);\n }\n catch (error) {\n const calls = parameters.calls;\n throw getUserOperationError(error, {\n ...request,\n ...(calls ? { calls } : {}),\n });\n }\n}\n//# sourceMappingURL=estimateUserOperationGas.js.map","/**\n * Returns the EntryPoints that the bundler supports.\n *\n * - Docs: https://viem.sh/actions/bundler/getSupportedEntryPoints\n *\n * @param client - Client to use\n * @param parameters - {@link GetSupportedEntryPointsParameters}\n * @returns Supported Entry Points. {@link GetSupportedEntryPointsReturnType}\n *\n * @example\n * import { createBundlerClient, http, parseEther } from 'viem'\n * import { mainnet } from 'viem/chains'\n * import { getSupportedEntryPoints } from 'viem/actions'\n *\n * const bundlerClient = createBundlerClient({\n * chain: mainnet,\n * transport: http(),\n * })\n *\n * const addresses = await getSupportedEntryPoints(bundlerClient)\n */\nexport function getSupportedEntryPoints(client) {\n return client.request({ method: 'eth_supportedEntryPoints' });\n}\n//# sourceMappingURL=getSupportedEntryPoints.js.map","export function formatUserOperation(parameters) {\n const userOperation = { ...parameters };\n if (parameters.callGasLimit)\n userOperation.callGasLimit = BigInt(parameters.callGasLimit);\n if (parameters.maxFeePerGas)\n userOperation.maxFeePerGas = BigInt(parameters.maxFeePerGas);\n if (parameters.maxPriorityFeePerGas)\n userOperation.maxPriorityFeePerGas = BigInt(parameters.maxPriorityFeePerGas);\n if (parameters.nonce)\n userOperation.nonce = BigInt(parameters.nonce);\n if (parameters.paymasterPostOpGasLimit)\n userOperation.paymasterPostOpGasLimit = BigInt(parameters.paymasterPostOpGasLimit);\n if (parameters.paymasterVerificationGasLimit)\n userOperation.paymasterVerificationGasLimit = BigInt(parameters.paymasterVerificationGasLimit);\n if (parameters.preVerificationGas)\n userOperation.preVerificationGas = BigInt(parameters.preVerificationGas);\n if (parameters.verificationGasLimit)\n userOperation.verificationGasLimit = BigInt(parameters.verificationGasLimit);\n return userOperation;\n}\n//# sourceMappingURL=userOperation.js.map","import { UserOperationNotFoundError, } from '../../errors/userOperation.js';\nimport { formatUserOperation } from '../../utils/formatters/userOperation.js';\n/**\n * Retrieves information about a User Operation given a hash.\n *\n * - Docs: https://viem.sh/account-abstraction/actions/bundler/getUserOperation\n *\n * @param client - Client to use\n * @param parameters - {@link GetUserOperationParameters}\n * @returns The receipt. {@link GetUserOperationReturnType}\n *\n * @example\n * import { createBundlerClient, http } from 'viem'\n * import { mainnet } from 'viem/chains'\n * import { getUserOperation } from 'viem/actions\n *\n * const client = createBundlerClient({\n * chain: mainnet,\n * transport: http(),\n * })\n *\n * const receipt = await getUserOperation(client, {\n * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',\n * })\n */\nexport async function getUserOperation(client, { hash }) {\n const result = await client.request({\n method: 'eth_getUserOperationByHash',\n params: [hash],\n }, { dedupe: true });\n if (!result)\n throw new UserOperationNotFoundError({ hash });\n const { blockHash, blockNumber, entryPoint, transactionHash, userOperation } = result;\n return {\n blockHash,\n blockNumber: BigInt(blockNumber),\n entryPoint,\n transactionHash,\n userOperation: formatUserOperation(userOperation),\n };\n}\n//# sourceMappingURL=getUserOperation.js.map","import { formatLog } from '../../../utils/formatters/log.js';\nimport { formatTransactionReceipt } from '../../../utils/formatters/transactionReceipt.js';\nexport function formatUserOperationReceipt(parameters) {\n const receipt = { ...parameters };\n if (parameters.actualGasCost)\n receipt.actualGasCost = BigInt(parameters.actualGasCost);\n if (parameters.actualGasUsed)\n receipt.actualGasUsed = BigInt(parameters.actualGasUsed);\n if (parameters.logs)\n receipt.logs = parameters.logs.map((log) => formatLog(log));\n if (parameters.receipt)\n receipt.receipt = formatTransactionReceipt(receipt.receipt);\n return receipt;\n}\n//# sourceMappingURL=userOperationReceipt.js.map","import { UserOperationReceiptNotFoundError, } from '../../errors/userOperation.js';\nimport { formatUserOperationReceipt } from '../../utils/formatters/userOperationReceipt.js';\n/**\n * Returns the User Operation Receipt given a User Operation hash.\n *\n * - Docs: https://viem.sh/docs/actions/bundler/getUserOperationReceipt\n *\n * @param client - Client to use\n * @param parameters - {@link GetUserOperationReceiptParameters}\n * @returns The receipt. {@link GetUserOperationReceiptReturnType}\n *\n * @example\n * import { createBundlerClient, http } from 'viem'\n * import { mainnet } from 'viem/chains'\n * import { getUserOperationReceipt } from 'viem/actions\n *\n * const client = createBundlerClient({\n * chain: mainnet,\n * transport: http(),\n * })\n *\n * const receipt = await getUserOperationReceipt(client, {\n * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',\n * })\n */\nexport async function getUserOperationReceipt(client, { hash }) {\n const receipt = await client.request({\n method: 'eth_getUserOperationReceipt',\n params: [hash],\n }, { dedupe: true });\n if (!receipt)\n throw new UserOperationReceiptNotFoundError({ hash });\n return formatUserOperationReceipt(receipt);\n}\n//# sourceMappingURL=getUserOperationReceipt.js.map","import { parseAccount } from '../../../accounts/utils/parseAccount.js';\nimport { AccountNotFoundError } from '../../../errors/account.js';\nimport { getAction } from '../../../utils/getAction.js';\nimport { getUserOperationError } from '../../utils/errors/getUserOperationError.js';\nimport { formatUserOperationRequest, } from '../../utils/formatters/userOperationRequest.js';\nimport { prepareUserOperation, } from './prepareUserOperation.js';\n/**\n * Broadcasts a User Operation to the Bundler.\n *\n * - Docs: https://viem.sh/actions/bundler/sendUserOperation\n *\n * @param client - Client to use\n * @param parameters - {@link SendUserOperationParameters}\n * @returns The User Operation hash. {@link SendUserOperationReturnType}\n *\n * @example\n * import { createBundlerClient, http, parseEther } from 'viem'\n * import { mainnet } from 'viem/chains'\n * import { toSmartAccount } from 'viem/accounts'\n * import { sendUserOperation } from 'viem/actions'\n *\n * const account = await toSmartAccount({ ... })\n *\n * const bundlerClient = createBundlerClient({\n * chain: mainnet,\n * transport: http(),\n * })\n *\n * const values = await sendUserOperation(bundlerClient, {\n * account,\n * calls: [{ to: '0x...', value: parseEther('1') }],\n * })\n */\nexport async function sendUserOperation(client, parameters) {\n const { account: account_ = client.account, entryPointAddress } = parameters;\n if (!account_ && !parameters.sender)\n throw new AccountNotFoundError();\n const account = account_ ? parseAccount(account_) : undefined;\n const request = account\n ? await getAction(client, prepareUserOperation, 'prepareUserOperation')(parameters)\n : parameters;\n const signature = (parameters.signature ||\n (await account?.signUserOperation?.(request)));\n const rpcParameters = formatUserOperationRequest({\n ...request,\n signature,\n });\n try {\n return await client.request({\n method: 'eth_sendUserOperation',\n params: [\n rpcParameters,\n (entryPointAddress ?? account?.entryPoint?.address),\n ],\n }, { retryCount: 0 });\n }\n catch (error) {\n const calls = parameters.calls;\n throw getUserOperationError(error, {\n ...request,\n ...(calls ? { calls } : {}),\n signature,\n });\n }\n}\n//# sourceMappingURL=sendUserOperation.js.map","import { getAction } from '../../../utils/getAction.js';\nimport { observe } from '../../../utils/observe.js';\nimport { poll } from '../../../utils/poll.js';\nimport { stringify } from '../../../utils/stringify.js';\nimport { WaitForUserOperationReceiptTimeoutError, } from '../../errors/userOperation.js';\nimport { getUserOperationReceipt, } from './getUserOperationReceipt.js';\n/**\n * Waits for the User Operation to be included on a [Block](https://viem.sh/docs/glossary/terms#block) (one confirmation), and then returns the User Operation receipt.\n *\n * - Docs: https://viem.sh/docs/actions/bundler/waitForUserOperationReceipt\n *\n * @param client - Client to use\n * @param parameters - {@link WaitForUserOperationReceiptParameters}\n * @returns The receipt. {@link WaitForUserOperationReceiptReturnType}\n *\n * @example\n * import { createBundlerClient, http } from 'viem'\n * import { mainnet } from 'viem/chains'\n * import { waitForUserOperationReceipt } from 'viem/actions'\n *\n * const client = createBundlerClient({\n * chain: mainnet,\n * transport: http(),\n * })\n *\n * const receipt = await waitForUserOperationReceipt(client, {\n * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',\n * })\n */\nexport function waitForUserOperationReceipt(client, parameters) {\n const { hash, pollingInterval = client.pollingInterval, retryCount, timeout = 120_000, } = parameters;\n let count = 0;\n const observerId = stringify([\n 'waitForUserOperationReceipt',\n client.uid,\n hash,\n ]);\n return new Promise((resolve, reject) => {\n const unobserve = observe(observerId, { resolve, reject }, (emit) => {\n const done = (fn) => {\n unpoll();\n fn();\n unobserve();\n };\n const unpoll = poll(async () => {\n if (retryCount && count >= retryCount)\n done(() => emit.reject(new WaitForUserOperationReceiptTimeoutError({ hash })));\n try {\n const receipt = await getAction(client, getUserOperationReceipt, 'getUserOperationReceipt')({ hash });\n done(() => emit.resolve(receipt));\n }\n catch (err) {\n const error = err;\n if (error.name !== 'UserOperationReceiptNotFoundError')\n done(() => emit.reject(error));\n }\n count++;\n }, {\n emitOnBegin: true,\n interval: pollingInterval,\n });\n if (timeout)\n setTimeout(() => done(() => emit.reject(new WaitForUserOperationReceiptTimeoutError({ hash }))), timeout);\n return unpoll;\n });\n });\n}\n//# sourceMappingURL=waitForUserOperationReceipt.js.map","import { getChainId, } from '../../../actions/public/getChainId.js';\nimport { estimateUserOperationGas, } from '../../actions/bundler/estimateUserOperationGas.js';\nimport { getSupportedEntryPoints, } from '../../actions/bundler/getSupportedEntryPoints.js';\nimport { getUserOperation, } from '../../actions/bundler/getUserOperation.js';\nimport { getUserOperationReceipt, } from '../../actions/bundler/getUserOperationReceipt.js';\nimport { prepareUserOperation, } from '../../actions/bundler/prepareUserOperation.js';\nimport { sendUserOperation, } from '../../actions/bundler/sendUserOperation.js';\nimport { waitForUserOperationReceipt, } from '../../actions/bundler/waitForUserOperationReceipt.js';\nexport function bundlerActions(client) {\n return {\n estimateUserOperationGas: (parameters) => estimateUserOperationGas(client, parameters),\n getChainId: () => getChainId(client),\n getSupportedEntryPoints: () => getSupportedEntryPoints(client),\n getUserOperation: (parameters) => getUserOperation(client, parameters),\n getUserOperationReceipt: (parameters) => getUserOperationReceipt(client, parameters),\n prepareUserOperation: (parameters) => prepareUserOperation(client, parameters),\n sendUserOperation: (parameters) => sendUserOperation(client, parameters),\n waitForUserOperationReceipt: (parameters) => waitForUserOperationReceipt(client, parameters),\n };\n}\n//# sourceMappingURL=bundler.js.map","import { createClient, } from '../../clients/createClient.js';\nimport { bundlerActions } from './decorators/bundler.js';\nexport function createBundlerClient(parameters) {\n const { client: client_, key = 'bundler', name = 'Bundler Client', paymaster, paymasterContext, transport, userOperation, } = parameters;\n const client = Object.assign(createClient({\n ...parameters,\n chain: parameters.chain ?? client_?.chain,\n key,\n name,\n transport,\n type: 'bundlerClient',\n }), { client: client_, paymaster, paymasterContext, userOperation });\n return client.extend(bundlerActions);\n}\n//# sourceMappingURL=createBundlerClient.js.map","export const entryPoint06Address = '0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789';\nexport const entryPoint07Address = '0x0000000071727De22E5E9d8BAf0edAc6f37da032';\nexport const entryPoint08Address = '0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108';\n//# sourceMappingURL=address.js.map","/** @internal */\nexport const version = '0.1.1';\n//# sourceMappingURL=version.js.map","import { version } from '../version.js';\n/** @internal */\nexport function getUrl(url) {\n return url;\n}\n/** @internal */\nexport function getVersion() {\n return version;\n}\n/** @internal */\nexport function prettyPrint(args) {\n if (!args)\n return '';\n const entries = Object.entries(args)\n .map(([key, value]) => {\n if (value === undefined || value === false)\n return null;\n return [key, value];\n })\n .filter(Boolean);\n const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);\n return entries\n .map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`)\n .join('\\n');\n}\n//# sourceMappingURL=errors.js.map","import { getVersion } from './internal/errors.js';\n/**\n * Base error class inherited by all errors thrown by ox.\n *\n * @example\n * ```ts\n * import { Errors } from 'ox'\n * throw new Errors.BaseError('An error occurred')\n * ```\n */\nexport class BaseError extends Error {\n constructor(shortMessage, options = {}) {\n const details = (() => {\n if (options.cause instanceof BaseError) {\n if (options.cause.details)\n return options.cause.details;\n if (options.cause.shortMessage)\n return options.cause.shortMessage;\n }\n if (options.cause?.message)\n return options.cause.message;\n return options.details;\n })();\n const docsPath = (() => {\n if (options.cause instanceof BaseError)\n return options.cause.docsPath || options.docsPath;\n return options.docsPath;\n })();\n const docsBaseUrl = 'https://oxlib.sh';\n const docs = `${docsBaseUrl}${docsPath ?? ''}`;\n const message = [\n shortMessage || 'An error occurred.',\n ...(options.metaMessages ? ['', ...options.metaMessages] : []),\n ...(details || docsPath\n ? [\n '',\n details ? `Details: ${details}` : undefined,\n docsPath ? `See: ${docs}` : undefined,\n ]\n : []),\n ]\n .filter((x) => typeof x === 'string')\n .join('\\n');\n super(message, options.cause ? { cause: options.cause } : undefined);\n Object.defineProperty(this, \"details\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"docs\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"docsPath\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"shortMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'BaseError'\n });\n Object.defineProperty(this, \"version\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: `ox@${getVersion()}`\n });\n this.cause = options.cause;\n this.details = details;\n this.docs = docs;\n this.docsPath = docsPath;\n this.shortMessage = shortMessage;\n }\n walk(fn) {\n return walk(this, fn);\n }\n}\n/** @internal */\nfunction walk(err, fn) {\n if (fn?.(err))\n return err;\n if (err && typeof err === 'object' && 'cause' in err && err.cause)\n return walk(err.cause, fn);\n return fn ? null : err;\n}\n//# sourceMappingURL=Errors.js.map","const bigIntSuffix = '#__bigint';\n/**\n * Parses a JSON string, with support for `bigint`.\n *\n * @example\n * ```ts twoslash\n * import { Json } from 'ox'\n *\n * const json = Json.parse('{\"foo\":\"bar\",\"baz\":\"69420694206942069420694206942069420694206942069420#__bigint\"}')\n * // @log: {\n * // @log: foo: 'bar',\n * // @log: baz: 69420694206942069420694206942069420694206942069420n\n * // @log: }\n * ```\n *\n * @param string - The value to parse.\n * @param reviver - A function that transforms the results.\n * @returns The parsed value.\n */\nexport function parse(string, reviver) {\n return JSON.parse(string, (key, value_) => {\n const value = value_;\n if (typeof value === 'string' && value.endsWith(bigIntSuffix))\n return BigInt(value.slice(0, -bigIntSuffix.length));\n return typeof reviver === 'function' ? reviver(key, value) : value;\n });\n}\n/**\n * Stringifies a value to its JSON representation, with support for `bigint`.\n *\n * @example\n * ```ts twoslash\n * import { Json } from 'ox'\n *\n * const json = Json.stringify({\n * foo: 'bar',\n * baz: 69420694206942069420694206942069420694206942069420n,\n * })\n * // @log: '{\"foo\":\"bar\",\"baz\":\"69420694206942069420694206942069420694206942069420#__bigint\"}'\n * ```\n *\n * @param value - The value to stringify.\n * @param replacer - A function that transforms the results. It is passed the key and value of the property, and must return the value to be used in the JSON string. If this function returns `undefined`, the property is not included in the resulting JSON string.\n * @param space - A string or number that determines the indentation of the JSON string. If it is a number, it indicates the number of spaces to use as indentation; if it is a string (e.g. `'\\t'`), it uses the string as the indentation character.\n * @returns The JSON string.\n */\nexport function stringify(value, replacer, space) {\n return JSON.stringify(value, (key, value) => {\n if (typeof replacer === 'function')\n return replacer(key, value);\n if (typeof value === 'bigint')\n return value.toString() + bigIntSuffix;\n return value;\n }, space);\n}\n//# sourceMappingURL=Json.js.map","import * as Bytes from '../Bytes.js';\n/** @internal */\nexport function assertSize(bytes, size_) {\n if (Bytes.size(bytes) > size_)\n throw new Bytes.SizeOverflowError({\n givenSize: Bytes.size(bytes),\n maxSize: size_,\n });\n}\n/** @internal */\nexport function assertStartOffset(value, start) {\n if (typeof start === 'number' && start > 0 && start > Bytes.size(value) - 1)\n throw new Bytes.SliceOffsetOutOfBoundsError({\n offset: start,\n position: 'start',\n size: Bytes.size(value),\n });\n}\n/** @internal */\nexport function assertEndOffset(value, start, end) {\n if (typeof start === 'number' &&\n typeof end === 'number' &&\n Bytes.size(value) !== end - start) {\n throw new Bytes.SliceOffsetOutOfBoundsError({\n offset: end,\n position: 'end',\n size: Bytes.size(value),\n });\n }\n}\n/** @internal */\nexport const charCodeMap = {\n zero: 48,\n nine: 57,\n A: 65,\n F: 70,\n a: 97,\n f: 102,\n};\n/** @internal */\nexport function charCodeToBase16(char) {\n if (char >= charCodeMap.zero && char <= charCodeMap.nine)\n return char - charCodeMap.zero;\n if (char >= charCodeMap.A && char <= charCodeMap.F)\n return char - (charCodeMap.A - 10);\n if (char >= charCodeMap.a && char <= charCodeMap.f)\n return char - (charCodeMap.a - 10);\n return undefined;\n}\n/** @internal */\nexport function pad(bytes, options = {}) {\n const { dir, size = 32 } = options;\n if (size === 0)\n return bytes;\n if (bytes.length > size)\n throw new Bytes.SizeExceedsPaddingSizeError({\n size: bytes.length,\n targetSize: size,\n type: 'Bytes',\n });\n const paddedBytes = new Uint8Array(size);\n for (let i = 0; i < size; i++) {\n const padEnd = dir === 'right';\n paddedBytes[padEnd ? i : size - i - 1] =\n bytes[padEnd ? i : bytes.length - i - 1];\n }\n return paddedBytes;\n}\n/** @internal */\nexport function trim(value, options = {}) {\n const { dir = 'left' } = options;\n let data = value;\n let sliceLength = 0;\n for (let i = 0; i < data.length - 1; i++) {\n if (data[dir === 'left' ? i : data.length - i - 1].toString() === '0')\n sliceLength++;\n else\n break;\n }\n data =\n dir === 'left'\n ? data.slice(sliceLength)\n : data.slice(0, data.length - sliceLength);\n return data;\n}\n//# sourceMappingURL=bytes.js.map","import * as Hex from '../Hex.js';\n/** @internal */\nexport function assertSize(hex, size_) {\n if (Hex.size(hex) > size_)\n throw new Hex.SizeOverflowError({\n givenSize: Hex.size(hex),\n maxSize: size_,\n });\n}\n/** @internal */\nexport function assertStartOffset(value, start) {\n if (typeof start === 'number' && start > 0 && start > Hex.size(value) - 1)\n throw new Hex.SliceOffsetOutOfBoundsError({\n offset: start,\n position: 'start',\n size: Hex.size(value),\n });\n}\n/** @internal */\nexport function assertEndOffset(value, start, end) {\n if (typeof start === 'number' &&\n typeof end === 'number' &&\n Hex.size(value) !== end - start) {\n throw new Hex.SliceOffsetOutOfBoundsError({\n offset: end,\n position: 'end',\n size: Hex.size(value),\n });\n }\n}\n/** @internal */\nexport function pad(hex_, options = {}) {\n const { dir, size = 32 } = options;\n if (size === 0)\n return hex_;\n const hex = hex_.replace('0x', '');\n if (hex.length > size * 2)\n throw new Hex.SizeExceedsPaddingSizeError({\n size: Math.ceil(hex.length / 2),\n targetSize: size,\n type: 'Hex',\n });\n return `0x${hex[dir === 'right' ? 'padEnd' : 'padStart'](size * 2, '0')}`;\n}\n/** @internal */\nexport function trim(value, options = {}) {\n const { dir = 'left' } = options;\n let data = value.replace('0x', '');\n let sliceLength = 0;\n for (let i = 0; i < data.length - 1; i++) {\n if (data[dir === 'left' ? i : data.length - i - 1].toString() === '0')\n sliceLength++;\n else\n break;\n }\n data =\n dir === 'left'\n ? data.slice(sliceLength)\n : data.slice(0, data.length - sliceLength);\n if (data === '0')\n return '0x';\n if (dir === 'right' && data.length % 2 === 1)\n return `0x${data}0`;\n return `0x${data}`;\n}\n//# sourceMappingURL=hex.js.map","import { equalBytes } from '@noble/curves/abstract/utils';\nimport * as Bytes from './Bytes.js';\nimport * as Errors from './Errors.js';\nimport * as Json from './Json.js';\nimport * as internal_bytes from './internal/bytes.js';\nimport * as internal from './internal/hex.js';\nconst encoder = /*#__PURE__*/ new TextEncoder();\nconst hexes = /*#__PURE__*/ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, '0'));\n/**\n * Asserts if the given value is {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.assert('abc')\n * // @error: InvalidHexValueTypeError:\n * // @error: Value `\"abc\"` of type `string` is an invalid hex type.\n * // @error: Hex types must be represented as `\"0x\\${string}\"`.\n * ```\n *\n * @param value - The value to assert.\n * @param options - Options.\n */\nexport function assert(value, options = {}) {\n const { strict = false } = options;\n if (!value)\n throw new InvalidHexTypeError(value);\n if (typeof value !== 'string')\n throw new InvalidHexTypeError(value);\n if (strict) {\n if (!/^0x[0-9a-fA-F]*$/.test(value))\n throw new InvalidHexValueError(value);\n }\n if (!value.startsWith('0x'))\n throw new InvalidHexValueError(value);\n}\n/**\n * Concatenates two or more {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.concat('0x123', '0x456')\n * // @log: '0x123456'\n * ```\n *\n * @param values - The {@link ox#Hex.Hex} values to concatenate.\n * @returns The concatenated {@link ox#Hex.Hex} value.\n */\nexport function concat(...values) {\n return `0x${values.reduce((acc, x) => acc + x.replace('0x', ''), '')}`;\n}\n/**\n * Instantiates a {@link ox#Hex.Hex} value from a hex string or {@link ox#Bytes.Bytes} value.\n *\n * :::tip\n *\n * To instantiate from a **Boolean**, **String**, or **Number**, use one of the following:\n *\n * - `Hex.fromBoolean`\n *\n * - `Hex.fromString`\n *\n * - `Hex.fromNumber`\n *\n * :::\n *\n * @example\n * ```ts twoslash\n * import { Bytes, Hex } from 'ox'\n *\n * Hex.from('0x48656c6c6f20576f726c6421')\n * // @log: '0x48656c6c6f20576f726c6421'\n *\n * Hex.from(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // @log: '0x48656c6c6f20576f726c6421'\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} value to encode.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function from(value) {\n if (value instanceof Uint8Array)\n return fromBytes(value);\n if (Array.isArray(value))\n return fromBytes(new Uint8Array(value));\n return value;\n}\n/**\n * Encodes a boolean into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromBoolean(true)\n * // @log: '0x1'\n *\n * Hex.fromBoolean(false)\n * // @log: '0x0'\n *\n * Hex.fromBoolean(true, { size: 32 })\n * // @log: '0x0000000000000000000000000000000000000000000000000000000000000001'\n * ```\n *\n * @param value - The boolean value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromBoolean(value, options = {}) {\n const hex = `0x${Number(value)}`;\n if (typeof options.size === 'number') {\n internal.assertSize(hex, options.size);\n return padLeft(hex, options.size);\n }\n return hex;\n}\n/**\n * Encodes a {@link ox#Bytes.Bytes} value into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes, Hex } from 'ox'\n *\n * Hex.fromBytes(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // @log: '0x48656c6c6f20576f726c6421'\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromBytes(value, options = {}) {\n let string = '';\n for (let i = 0; i < value.length; i++)\n string += hexes[value[i]];\n const hex = `0x${string}`;\n if (typeof options.size === 'number') {\n internal.assertSize(hex, options.size);\n return padRight(hex, options.size);\n }\n return hex;\n}\n/**\n * Encodes a number or bigint into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromNumber(420)\n * // @log: '0x1a4'\n *\n * Hex.fromNumber(420, { size: 32 })\n * // @log: '0x00000000000000000000000000000000000000000000000000000000000001a4'\n * ```\n *\n * @param value - The number or bigint value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromNumber(value, options = {}) {\n const { signed, size } = options;\n const value_ = BigInt(value);\n let maxValue;\n if (size) {\n if (signed)\n maxValue = (1n << (BigInt(size) * 8n - 1n)) - 1n;\n else\n maxValue = 2n ** (BigInt(size) * 8n) - 1n;\n }\n else if (typeof value === 'number') {\n maxValue = BigInt(Number.MAX_SAFE_INTEGER);\n }\n const minValue = typeof maxValue === 'bigint' && signed ? -maxValue - 1n : 0;\n if ((maxValue && value_ > maxValue) || value_ < minValue) {\n const suffix = typeof value === 'bigint' ? 'n' : '';\n throw new IntegerOutOfRangeError({\n max: maxValue ? `${maxValue}${suffix}` : undefined,\n min: `${minValue}${suffix}`,\n signed,\n size,\n value: `${value}${suffix}`,\n });\n }\n const stringValue = (signed && value_ < 0 ? (1n << BigInt(size * 8)) + BigInt(value_) : value_).toString(16);\n const hex = `0x${stringValue}`;\n if (size)\n return padLeft(hex, size);\n return hex;\n}\n/**\n * Encodes a string into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n * Hex.fromString('Hello World!')\n * // '0x48656c6c6f20576f726c6421'\n *\n * Hex.fromString('Hello World!', { size: 32 })\n * // '0x48656c6c6f20576f726c64210000000000000000000000000000000000000000'\n * ```\n *\n * @param value - The string value to encode.\n * @param options - Options.\n * @returns The encoded {@link ox#Hex.Hex} value.\n */\nexport function fromString(value, options = {}) {\n return fromBytes(encoder.encode(value), options);\n}\n/**\n * Checks if two {@link ox#Hex.Hex} values are equal.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.isEqual('0xdeadbeef', '0xdeadbeef')\n * // @log: true\n *\n * Hex.isEqual('0xda', '0xba')\n * // @log: false\n * ```\n *\n * @param hexA - The first {@link ox#Hex.Hex} value.\n * @param hexB - The second {@link ox#Hex.Hex} value.\n * @returns `true` if the two {@link ox#Hex.Hex} values are equal, `false` otherwise.\n */\nexport function isEqual(hexA, hexB) {\n return equalBytes(Bytes.fromHex(hexA), Bytes.fromHex(hexB));\n}\n/**\n * Pads a {@link ox#Hex.Hex} value to the left with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.padLeft('0x1234', 4)\n * // @log: '0x00001234'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to pad.\n * @param size - The size (in bytes) of the output hex value.\n * @returns The padded {@link ox#Hex.Hex} value.\n */\nexport function padLeft(value, size) {\n return internal.pad(value, { dir: 'left', size });\n}\n/**\n * Pads a {@link ox#Hex.Hex} value to the right with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts\n * import { Hex } from 'ox'\n *\n * Hex.padRight('0x1234', 4)\n * // @log: '0x12340000'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to pad.\n * @param size - The size (in bytes) of the output hex value.\n * @returns The padded {@link ox#Hex.Hex} value.\n */\nexport function padRight(value, size) {\n return internal.pad(value, { dir: 'right', size });\n}\n/**\n * Generates a random {@link ox#Hex.Hex} value of the specified length.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * const hex = Hex.random(32)\n * // @log: '0x...'\n * ```\n *\n * @returns Random {@link ox#Hex.Hex} value.\n */\nexport function random(length) {\n return fromBytes(Bytes.random(length));\n}\n/**\n * Returns a section of a {@link ox#Bytes.Bytes} value given a start/end bytes offset.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.slice('0x0123456789', 1, 4)\n * // @log: '0x234567'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to slice.\n * @param start - The start offset (in bytes).\n * @param end - The end offset (in bytes).\n * @param options - Options.\n * @returns The sliced {@link ox#Hex.Hex} value.\n */\nexport function slice(value, start, end, options = {}) {\n const { strict } = options;\n internal.assertStartOffset(value, start);\n const value_ = `0x${value\n .replace('0x', '')\n .slice((start ?? 0) * 2, (end ?? value.length) * 2)}`;\n if (strict)\n internal.assertEndOffset(value_, start, end);\n return value_;\n}\n/**\n * Retrieves the size of a {@link ox#Hex.Hex} value (in bytes).\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.size('0xdeadbeef')\n * // @log: 4\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to get the size of.\n * @returns The size of the {@link ox#Hex.Hex} value (in bytes).\n */\nexport function size(value) {\n return Math.ceil((value.length - 2) / 2);\n}\n/**\n * Trims leading zeros from a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.trimLeft('0x00000000deadbeef')\n * // @log: '0xdeadbeef'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to trim.\n * @returns The trimmed {@link ox#Hex.Hex} value.\n */\nexport function trimLeft(value) {\n return internal.trim(value, { dir: 'left' });\n}\n/**\n * Trims trailing zeros from a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.trimRight('0xdeadbeef00000000')\n * // @log: '0xdeadbeef'\n * ```\n *\n * @param value - The {@link ox#Hex.Hex} value to trim.\n * @returns The trimmed {@link ox#Hex.Hex} value.\n */\nexport function trimRight(value) {\n return internal.trim(value, { dir: 'right' });\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a BigInt.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toBigInt('0x1a4')\n * // @log: 420n\n *\n * Hex.toBigInt('0x00000000000000000000000000000000000000000000000000000000000001a4', { size: 32 })\n * // @log: 420n\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded BigInt.\n */\nexport function toBigInt(hex, options = {}) {\n const { signed } = options;\n if (options.size)\n internal.assertSize(hex, options.size);\n const value = BigInt(hex);\n if (!signed)\n return value;\n const size = (hex.length - 2) / 2;\n const max_unsigned = (1n << (BigInt(size) * 8n)) - 1n;\n const max_signed = max_unsigned >> 1n;\n if (value <= max_signed)\n return value;\n return value - max_unsigned - 1n;\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a boolean.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toBoolean('0x01')\n * // @log: true\n *\n * Hex.toBoolean('0x0000000000000000000000000000000000000000000000000000000000000001', { size: 32 })\n * // @log: true\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded boolean.\n */\nexport function toBoolean(hex, options = {}) {\n if (options.size)\n internal.assertSize(hex, options.size);\n const hex_ = trimLeft(hex);\n if (hex_ === '0x')\n return false;\n if (hex_ === '0x1')\n return true;\n throw new InvalidHexBooleanError(hex);\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * const data = Hex.toBytes('0x48656c6c6f20776f726c6421')\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33])\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded {@link ox#Bytes.Bytes}.\n */\nexport function toBytes(hex, options = {}) {\n return Bytes.fromHex(hex, options);\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a number.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toNumber('0x1a4')\n * // @log: 420\n *\n * Hex.toNumber('0x00000000000000000000000000000000000000000000000000000000000001a4', { size: 32 })\n * // @log: 420\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded number.\n */\nexport function toNumber(hex, options = {}) {\n const { signed, size } = options;\n if (!signed && !size)\n return Number(hex);\n return Number(toBigInt(hex, options));\n}\n/**\n * Decodes a {@link ox#Hex.Hex} value into a string.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toString('0x48656c6c6f20576f726c6421')\n * // @log: 'Hello world!'\n *\n * Hex.toString('0x48656c6c6f20576f726c64210000000000000000000000000000000000000000', {\n * size: 32,\n * })\n * // @log: 'Hello world'\n * ```\n *\n * @param hex - The {@link ox#Hex.Hex} value to decode.\n * @param options - Options.\n * @returns The decoded string.\n */\nexport function toString(hex, options = {}) {\n const { size } = options;\n let bytes = Bytes.fromHex(hex);\n if (size) {\n internal_bytes.assertSize(bytes, size);\n bytes = Bytes.trimRight(bytes);\n }\n return new TextDecoder().decode(bytes);\n}\n/**\n * Checks if the given value is {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes, Hex } from 'ox'\n *\n * Hex.validate('0xdeadbeef')\n * // @log: true\n *\n * Hex.validate(Bytes.from([1, 2, 3]))\n * // @log: false\n * ```\n *\n * @param value - The value to check.\n * @param options - Options.\n * @returns `true` if the value is a {@link ox#Hex.Hex}, `false` otherwise.\n */\nexport function validate(value, options = {}) {\n const { strict = false } = options;\n try {\n assert(value, { strict });\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Thrown when the provided integer is out of range, and cannot be represented as a hex value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromNumber(420182738912731283712937129)\n * // @error: Hex.IntegerOutOfRangeError: Number \\`4.2018273891273126e+26\\` is not in safe unsigned integer range (`0` to `9007199254740991`)\n * ```\n */\nexport class IntegerOutOfRangeError extends Errors.BaseError {\n constructor({ max, min, signed, size, value, }) {\n super(`Number \\`${value}\\` is not in safe${size ? ` ${size * 8}-bit` : ''}${signed ? ' signed' : ' unsigned'} integer range ${max ? `(\\`${min}\\` to \\`${max}\\`)` : `(above \\`${min}\\`)`}`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.IntegerOutOfRangeError'\n });\n }\n}\n/**\n * Thrown when the provided hex value cannot be represented as a boolean.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.toBoolean('0xa')\n * // @error: Hex.InvalidHexBooleanError: Hex value `\"0xa\"` is not a valid boolean.\n * // @error: The hex value must be `\"0x0\"` (false) or `\"0x1\"` (true).\n * ```\n */\nexport class InvalidHexBooleanError extends Errors.BaseError {\n constructor(hex) {\n super(`Hex value \\`\"${hex}\"\\` is not a valid boolean.`, {\n metaMessages: [\n 'The hex value must be `\"0x0\"` (false) or `\"0x1\"` (true).',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidHexBooleanError'\n });\n }\n}\n/**\n * Thrown when the provided value is not a valid hex type.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.assert(1)\n * // @error: Hex.InvalidHexTypeError: Value `1` of type `number` is an invalid hex type.\n * ```\n */\nexport class InvalidHexTypeError extends Errors.BaseError {\n constructor(value) {\n super(`Value \\`${typeof value === 'object' ? Json.stringify(value) : value}\\` of type \\`${typeof value}\\` is an invalid hex type.`, {\n metaMessages: ['Hex types must be represented as `\"0x${string}\"`.'],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidHexTypeError'\n });\n }\n}\n/**\n * Thrown when the provided hex value is invalid.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.assert('0x0123456789abcdefg')\n * // @error: Hex.InvalidHexValueError: Value `0x0123456789abcdefg` is an invalid hex value.\n * // @error: Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).\n * ```\n */\nexport class InvalidHexValueError extends Errors.BaseError {\n constructor(value) {\n super(`Value \\`${value}\\` is an invalid hex value.`, {\n metaMessages: [\n 'Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidHexValueError'\n });\n }\n}\n/**\n * Thrown when the provided hex value is an odd length.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.fromHex('0xabcde')\n * // @error: Hex.InvalidLengthError: Hex value `\"0xabcde\"` is an odd length (5 nibbles).\n * ```\n */\nexport class InvalidLengthError extends Errors.BaseError {\n constructor(value) {\n super(`Hex value \\`\"${value}\"\\` is an odd length (${value.length - 2} nibbles).`, {\n metaMessages: ['It must be an even length.'],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.InvalidLengthError'\n });\n }\n}\n/**\n * Thrown when the size of the value exceeds the expected max size.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.fromString('Hello World!', { size: 8 })\n * // @error: Hex.SizeOverflowError: Size cannot exceed `8` bytes. Given size: `12` bytes.\n * ```\n */\nexport class SizeOverflowError extends Errors.BaseError {\n constructor({ givenSize, maxSize }) {\n super(`Size cannot exceed \\`${maxSize}\\` bytes. Given size: \\`${givenSize}\\` bytes.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.SizeOverflowError'\n });\n }\n}\n/**\n * Thrown when the slice offset exceeds the bounds of the value.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.slice('0x0123456789', 6)\n * // @error: Hex.SliceOffsetOutOfBoundsError: Slice starting at offset `6` is out-of-bounds (size: `5`).\n * ```\n */\nexport class SliceOffsetOutOfBoundsError extends Errors.BaseError {\n constructor({ offset, position, size, }) {\n super(`Slice ${position === 'start' ? 'starting' : 'ending'} at offset \\`${offset}\\` is out-of-bounds (size: \\`${size}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.SliceOffsetOutOfBoundsError'\n });\n }\n}\n/**\n * Thrown when the size of the value exceeds the pad size.\n *\n * @example\n * ```ts twoslash\n * import { Hex } from 'ox'\n *\n * Hex.padLeft('0x1a4e12a45a21323123aaa87a897a897a898a6567a578a867a98778a667a85a875a87a6a787a65a675a6a9', 32)\n * // @error: Hex.SizeExceedsPaddingSizeError: Hex size (`43`) exceeds padding size (`32`).\n * ```\n */\nexport class SizeExceedsPaddingSizeError extends Errors.BaseError {\n constructor({ size, targetSize, type, }) {\n super(`${type.charAt(0).toUpperCase()}${type\n .slice(1)\n .toLowerCase()} size (\\`${size}\\`) exceeds padding size (\\`${targetSize}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Hex.SizeExceedsPaddingSizeError'\n });\n }\n}\n//# sourceMappingURL=Hex.js.map","import { equalBytes } from '@noble/curves/abstract/utils';\nimport * as Errors from './Errors.js';\nimport * as Hex from './Hex.js';\nimport * as Json from './Json.js';\nimport * as internal from './internal/bytes.js';\nimport * as internal_hex from './internal/hex.js';\nconst decoder = /*#__PURE__*/ new TextDecoder();\nconst encoder = /*#__PURE__*/ new TextEncoder();\n/**\n * Asserts if the given value is {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.assert('abc')\n * // @error: Bytes.InvalidBytesTypeError:\n * // @error: Value `\"abc\"` of type `string` is an invalid Bytes value.\n * // @error: Bytes values must be of type `Uint8Array`.\n * ```\n *\n * @param value - Value to assert.\n */\nexport function assert(value) {\n if (value instanceof Uint8Array)\n return;\n if (!value)\n throw new InvalidBytesTypeError(value);\n if (typeof value !== 'object')\n throw new InvalidBytesTypeError(value);\n if (!('BYTES_PER_ELEMENT' in value))\n throw new InvalidBytesTypeError(value);\n if (value.BYTES_PER_ELEMENT !== 1 || value.constructor.name !== 'Uint8Array')\n throw new InvalidBytesTypeError(value);\n}\n/**\n * Concatenates two or more {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const bytes = Bytes.concat(\n * Bytes.from([1]),\n * Bytes.from([69]),\n * Bytes.from([420, 69]),\n * )\n * // @log: Uint8Array [ 1, 69, 420, 69 ]\n * ```\n *\n * @param values - Values to concatenate.\n * @returns Concatenated {@link ox#Bytes.Bytes}.\n */\nexport function concat(...values) {\n let length = 0;\n for (const arr of values) {\n length += arr.length;\n }\n const result = new Uint8Array(length);\n for (let i = 0, index = 0; i < values.length; i++) {\n const arr = values[i];\n result.set(arr, index);\n index += arr.length;\n }\n return result;\n}\n/**\n * Instantiates a {@link ox#Bytes.Bytes} value from a `Uint8Array`, a hex string, or an array of unsigned 8-bit integers.\n *\n * :::tip\n *\n * To instantiate from a **Boolean**, **String**, or **Number**, use one of the following:\n *\n * - `Bytes.fromBoolean`\n *\n * - `Bytes.fromString`\n *\n * - `Bytes.fromNumber`\n *\n * :::\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.from([255, 124, 5, 4])\n * // @log: Uint8Array([255, 124, 5, 4])\n *\n * const data = Bytes.from('0xdeadbeef')\n * // @log: Uint8Array([222, 173, 190, 239])\n * ```\n *\n * @param value - Value to convert.\n * @returns A {@link ox#Bytes.Bytes} instance.\n */\nexport function from(value) {\n if (value instanceof Uint8Array)\n return value;\n if (typeof value === 'string')\n return fromHex(value);\n return fromArray(value);\n}\n/**\n * Converts an array of unsigned 8-bit integers into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromArray([255, 124, 5, 4])\n * // @log: Uint8Array([255, 124, 5, 4])\n * ```\n *\n * @param value - Value to convert.\n * @returns A {@link ox#Bytes.Bytes} instance.\n */\nexport function fromArray(value) {\n return value instanceof Uint8Array ? value : new Uint8Array(value);\n}\n/**\n * Encodes a boolean value into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromBoolean(true)\n * // @log: Uint8Array([1])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromBoolean(true, { size: 32 })\n * // @log: Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1])\n * ```\n *\n * @param value - Boolean value to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromBoolean(value, options = {}) {\n const { size } = options;\n const bytes = new Uint8Array(1);\n bytes[0] = Number(value);\n if (typeof size === 'number') {\n internal.assertSize(bytes, size);\n return padLeft(bytes, size);\n }\n return bytes;\n}\n/**\n * Encodes a {@link ox#Hex.Hex} value into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromHex('0x48656c6c6f20776f726c6421')\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromHex('0x48656c6c6f20776f726c6421', { size: 32 })\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])\n * ```\n *\n * @param value - {@link ox#Hex.Hex} value to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromHex(value, options = {}) {\n const { size } = options;\n let hex = value;\n if (size) {\n internal_hex.assertSize(value, size);\n hex = Hex.padRight(value, size);\n }\n let hexString = hex.slice(2);\n if (hexString.length % 2)\n hexString = `0${hexString}`;\n const length = hexString.length / 2;\n const bytes = new Uint8Array(length);\n for (let index = 0, j = 0; index < length; index++) {\n const nibbleLeft = internal.charCodeToBase16(hexString.charCodeAt(j++));\n const nibbleRight = internal.charCodeToBase16(hexString.charCodeAt(j++));\n if (nibbleLeft === undefined || nibbleRight === undefined) {\n throw new Errors.BaseError(`Invalid byte sequence (\"${hexString[j - 2]}${hexString[j - 1]}\" in \"${hexString}\").`);\n }\n bytes[index] = nibbleLeft * 16 + nibbleRight;\n }\n return bytes;\n}\n/**\n * Encodes a number value into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromNumber(420)\n * // @log: Uint8Array([1, 164])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromNumber(420, { size: 4 })\n * // @log: Uint8Array([0, 0, 1, 164])\n * ```\n *\n * @param value - Number value to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromNumber(value, options) {\n const hex = Hex.fromNumber(value, options);\n return fromHex(hex);\n}\n/**\n * Encodes a string into {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromString('Hello world!')\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33])\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.fromString('Hello world!', { size: 32 })\n * // @log: Uint8Array([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])\n * ```\n *\n * @param value - String to encode.\n * @param options - Encoding options.\n * @returns Encoded {@link ox#Bytes.Bytes}.\n */\nexport function fromString(value, options = {}) {\n const { size } = options;\n const bytes = encoder.encode(value);\n if (typeof size === 'number') {\n internal.assertSize(bytes, size);\n return padRight(bytes, size);\n }\n return bytes;\n}\n/**\n * Checks if two {@link ox#Bytes.Bytes} values are equal.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.isEqual(Bytes.from([1]), Bytes.from([1]))\n * // @log: true\n *\n * Bytes.isEqual(Bytes.from([1]), Bytes.from([2]))\n * // @log: false\n * ```\n *\n * @param bytesA - First {@link ox#Bytes.Bytes} value.\n * @param bytesB - Second {@link ox#Bytes.Bytes} value.\n * @returns `true` if the two values are equal, otherwise `false`.\n */\nexport function isEqual(bytesA, bytesB) {\n return equalBytes(bytesA, bytesB);\n}\n/**\n * Pads a {@link ox#Bytes.Bytes} value to the left with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.padLeft(Bytes.from([1]), 4)\n * // @log: Uint8Array([0, 0, 0, 1])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value to pad.\n * @param size - Size to pad the {@link ox#Bytes.Bytes} value to.\n * @returns Padded {@link ox#Bytes.Bytes} value.\n */\nexport function padLeft(value, size) {\n return internal.pad(value, { dir: 'left', size });\n}\n/**\n * Pads a {@link ox#Bytes.Bytes} value to the right with zero bytes until it reaches the given `size` (default: 32 bytes).\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.padRight(Bytes.from([1]), 4)\n * // @log: Uint8Array([1, 0, 0, 0])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value to pad.\n * @param size - Size to pad the {@link ox#Bytes.Bytes} value to.\n * @returns Padded {@link ox#Bytes.Bytes} value.\n */\nexport function padRight(value, size) {\n return internal.pad(value, { dir: 'right', size });\n}\n/**\n * Generates random {@link ox#Bytes.Bytes} of the specified length.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const bytes = Bytes.random(32)\n * // @log: Uint8Array([... x32])\n * ```\n *\n * @param length - Length of the random {@link ox#Bytes.Bytes} to generate.\n * @returns Random {@link ox#Bytes.Bytes} of the specified length.\n */\nexport function random(length) {\n return crypto.getRandomValues(new Uint8Array(length));\n}\n/**\n * Retrieves the size of a {@link ox#Bytes.Bytes} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.size(Bytes.from([1, 2, 3, 4]))\n * // @log: 4\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value.\n * @returns Size of the {@link ox#Bytes.Bytes} value.\n */\nexport function size(value) {\n return value.length;\n}\n/**\n * Returns a section of a {@link ox#Bytes.Bytes} value given a start/end bytes offset.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.slice(\n * Bytes.from([1, 2, 3, 4, 5, 6, 7, 8, 9]),\n * 1,\n * 4,\n * )\n * // @log: Uint8Array([2, 3, 4])\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} value.\n * @param start - Start offset.\n * @param end - End offset.\n * @param options - Slice options.\n * @returns Sliced {@link ox#Bytes.Bytes} value.\n */\nexport function slice(value, start, end, options = {}) {\n const { strict } = options;\n internal.assertStartOffset(value, start);\n const value_ = value.slice(start, end);\n if (strict)\n internal.assertEndOffset(value_, start, end);\n return value_;\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a bigint.\n *\n * @example\n * ```ts\n * import { Bytes } from 'ox'\n *\n * Bytes.toBigInt(Bytes.from([1, 164]))\n * // @log: 420n\n * ```\n *\n * @param bytes - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Decoding options.\n * @returns Decoded bigint.\n */\nexport function toBigInt(bytes, options = {}) {\n const { size } = options;\n if (typeof size !== 'undefined')\n internal.assertSize(bytes, size);\n const hex = Hex.fromBytes(bytes, options);\n return Hex.toBigInt(hex, options);\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a boolean.\n *\n * @example\n * ```ts\n * import { Bytes } from 'ox'\n *\n * Bytes.toBoolean(Bytes.from([1]))\n * // @log: true\n * ```\n *\n * @param bytes - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Decoding options.\n * @returns Decoded boolean.\n */\nexport function toBoolean(bytes, options = {}) {\n const { size } = options;\n let bytes_ = bytes;\n if (typeof size !== 'undefined') {\n internal.assertSize(bytes_, size);\n bytes_ = trimLeft(bytes_);\n }\n if (bytes_.length > 1 || bytes_[0] > 1)\n throw new InvalidBytesBooleanError(bytes_);\n return Boolean(bytes_[0]);\n}\n/**\n * Encodes a {@link ox#Bytes.Bytes} value into a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.toHex(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // '0x48656c6c6f20576f726c6421'\n * ```\n *\n * @param value - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Options.\n * @returns Decoded {@link ox#Hex.Hex} value.\n */\nexport function toHex(value, options = {}) {\n return Hex.fromBytes(value, options);\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a number.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.toNumber(Bytes.from([1, 164]))\n * // @log: 420\n * ```\n */\nexport function toNumber(bytes, options = {}) {\n const { size } = options;\n if (typeof size !== 'undefined')\n internal.assertSize(bytes, size);\n const hex = Hex.fromBytes(bytes, options);\n return Hex.toNumber(hex, options);\n}\n/**\n * Decodes a {@link ox#Bytes.Bytes} into a string.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * const data = Bytes.toString(Bytes.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]))\n * // @log: 'Hello world'\n * ```\n *\n * @param bytes - The {@link ox#Bytes.Bytes} to decode.\n * @param options - Options.\n * @returns Decoded string.\n */\nexport function toString(bytes, options = {}) {\n const { size } = options;\n let bytes_ = bytes;\n if (typeof size !== 'undefined') {\n internal.assertSize(bytes_, size);\n bytes_ = trimRight(bytes_);\n }\n return decoder.decode(bytes_);\n}\n/**\n * Trims leading zeros from a {@link ox#Bytes.Bytes} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.trimLeft(Bytes.from([0, 0, 0, 0, 1, 2, 3]))\n * // @log: Uint8Array([1, 2, 3])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value.\n * @returns Trimmed {@link ox#Bytes.Bytes} value.\n */\nexport function trimLeft(value) {\n return internal.trim(value, { dir: 'left' });\n}\n/**\n * Trims trailing zeros from a {@link ox#Bytes.Bytes} value.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.trimRight(Bytes.from([1, 2, 3, 0, 0, 0, 0]))\n * // @log: Uint8Array([1, 2, 3])\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} value.\n * @returns Trimmed {@link ox#Bytes.Bytes} value.\n */\nexport function trimRight(value) {\n return internal.trim(value, { dir: 'right' });\n}\n/**\n * Checks if the given value is {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.validate('0x')\n * // @log: false\n *\n * Bytes.validate(Bytes.from([1, 2, 3]))\n * // @log: true\n * ```\n *\n * @param value - Value to check.\n * @returns `true` if the value is {@link ox#Bytes.Bytes}, otherwise `false`.\n */\nexport function validate(value) {\n try {\n assert(value);\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Thrown when the bytes value cannot be represented as a boolean.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.toBoolean(Bytes.from([5]))\n * // @error: Bytes.InvalidBytesBooleanError: Bytes value `[5]` is not a valid boolean.\n * // @error: The bytes array must contain a single byte of either a `0` or `1` value.\n * ```\n */\nexport class InvalidBytesBooleanError extends Errors.BaseError {\n constructor(bytes) {\n super(`Bytes value \\`${bytes}\\` is not a valid boolean.`, {\n metaMessages: [\n 'The bytes array must contain a single byte of either a `0` or `1` value.',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.InvalidBytesBooleanError'\n });\n }\n}\n/**\n * Thrown when a value cannot be converted to bytes.\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Bytes } from 'ox'\n *\n * Bytes.from('foo')\n * // @error: Bytes.InvalidBytesTypeError: Value `foo` of type `string` is an invalid Bytes value.\n * ```\n */\nexport class InvalidBytesTypeError extends Errors.BaseError {\n constructor(value) {\n super(`Value \\`${typeof value === 'object' ? Json.stringify(value) : value}\\` of type \\`${typeof value}\\` is an invalid Bytes value.`, {\n metaMessages: ['Bytes values must be of type `Bytes`.'],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.InvalidBytesTypeError'\n });\n }\n}\n/**\n * Thrown when a size exceeds the maximum allowed size.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.fromString('Hello World!', { size: 8 })\n * // @error: Bytes.SizeOverflowError: Size cannot exceed `8` bytes. Given size: `12` bytes.\n * ```\n */\nexport class SizeOverflowError extends Errors.BaseError {\n constructor({ givenSize, maxSize }) {\n super(`Size cannot exceed \\`${maxSize}\\` bytes. Given size: \\`${givenSize}\\` bytes.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.SizeOverflowError'\n });\n }\n}\n/**\n * Thrown when a slice offset is out-of-bounds.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.slice(Bytes.from([1, 2, 3]), 4)\n * // @error: Bytes.SliceOffsetOutOfBoundsError: Slice starting at offset `4` is out-of-bounds (size: `3`).\n * ```\n */\nexport class SliceOffsetOutOfBoundsError extends Errors.BaseError {\n constructor({ offset, position, size, }) {\n super(`Slice ${position === 'start' ? 'starting' : 'ending'} at offset \\`${offset}\\` is out-of-bounds (size: \\`${size}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.SliceOffsetOutOfBoundsError'\n });\n }\n}\n/**\n * Thrown when a the padding size exceeds the maximum allowed size.\n *\n * @example\n * ```ts twoslash\n * import { Bytes } from 'ox'\n *\n * Bytes.padLeft(Bytes.fromString('Hello World!'), 8)\n * // @error: [Bytes.SizeExceedsPaddingSizeError: Bytes size (`12`) exceeds padding size (`8`).\n * ```\n */\nexport class SizeExceedsPaddingSizeError extends Errors.BaseError {\n constructor({ size, targetSize, type, }) {\n super(`${type.charAt(0).toUpperCase()}${type\n .slice(1)\n .toLowerCase()} size (\\`${size}\\`) exceeds padding size (\\`${targetSize}\\`).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Bytes.SizeExceedsPaddingSizeError'\n });\n }\n}\n//# sourceMappingURL=Bytes.js.map","import { ripemd160 as noble_ripemd160 } from '@noble/hashes/ripemd160';\nimport { keccak_256 as noble_keccak256 } from '@noble/hashes/sha3';\nimport { sha256 as noble_sha256 } from '@noble/hashes/sha256';\nimport * as Bytes from './Bytes.js';\nimport * as Hex from './Hex.js';\n/**\n * Calculates the [Keccak256](https://en.wikipedia.org/wiki/SHA-3) hash of a {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.\n *\n * This function is a re-export of `keccak_256` from [`@noble/hashes`](https://github.com/paulmillr/noble-hashes), an audited & minimal JS hashing library.\n *\n * @example\n * ```ts twoslash\n * import { Hash } from 'ox'\n *\n * Hash.keccak256('0xdeadbeef')\n * // @log: '0xd4fd4e189132273036449fc9e11198c739161b4c0116a9a2dccdfa1c492006f1'\n * ```\n *\n * @example\n * ### Calculate Hash of a String\n *\n * ```ts twoslash\n * import { Hash, Hex } from 'ox'\n *\n * Hash.keccak256(Hex.fromString('hello world'))\n * // @log: '0x3ea2f1d0abf3fc66cf29eebb70cbd4e7fe762ef8a09bcc06c8edf641230afec0'\n * ```\n *\n * @example\n * ### Configure Return Type\n *\n * ```ts twoslash\n * import { Hash } from 'ox'\n *\n * Hash.keccak256('0xdeadbeef', { as: 'Bytes' })\n * // @log: Uint8Array [...]\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.\n * @param options - Options.\n * @returns Keccak256 hash.\n */\nexport function keccak256(value, options = {}) {\n const { as = typeof value === 'string' ? 'Hex' : 'Bytes' } = options;\n const bytes = noble_keccak256(Bytes.from(value));\n if (as === 'Bytes')\n return bytes;\n return Hex.fromBytes(bytes);\n}\n/**\n * Calculates the [Ripemd160](https://en.wikipedia.org/wiki/RIPEMD) hash of a {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.\n *\n * This function is a re-export of `ripemd160` from [`@noble/hashes`](https://github.com/paulmillr/noble-hashes), an audited & minimal JS hashing library.\n *\n * @example\n * ```ts twoslash\n * import { Hash } from 'ox'\n *\n * Hash.ripemd160('0xdeadbeef')\n * // '0x226821c2f5423e11fe9af68bd285c249db2e4b5a'\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.\n * @param options - Options.\n * @returns Ripemd160 hash.\n */\nexport function ripemd160(value, options = {}) {\n const { as = typeof value === 'string' ? 'Hex' : 'Bytes' } = options;\n const bytes = noble_ripemd160(Bytes.from(value));\n if (as === 'Bytes')\n return bytes;\n return Hex.fromBytes(bytes);\n}\n/**\n * Calculates the [Sha256](https://en.wikipedia.org/wiki/SHA-256) hash of a {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.\n *\n * This function is a re-export of `sha256` from [`@noble/hashes`](https://github.com/paulmillr/noble-hashes), an audited & minimal JS hashing library.\n *\n * @example\n * ```ts twoslash\n * import { Hash } from 'ox'\n *\n * Hash.sha256('0xdeadbeef')\n * // '0x5f78c33274e43fa9de5659265c1d917e25c03722dcb0b8d27db8d5feaa813953'\n * ```\n *\n * @param value - {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.\n * @param options - Options.\n * @returns Sha256 hash.\n */\nexport function sha256(value, options = {}) {\n const { as = typeof value === 'string' ? 'Hex' : 'Bytes' } = options;\n const bytes = noble_sha256(Bytes.from(value));\n if (as === 'Bytes')\n return bytes;\n return Hex.fromBytes(bytes);\n}\n/**\n * Checks if a string is a valid hash value.\n *\n * @example\n * ```ts twoslash\n * import { Hash } from 'ox'\n *\n * Hash.validate('0x')\n * // @log: false\n *\n * Hash.validate('0x3ea2f1d0abf3fc66cf29eebb70cbd4e7fe762ef8a09bcc06c8edf641230afec0')\n * // @log: true\n * ```\n *\n * @param value - Value to check.\n * @returns Whether the value is a valid hash.\n */\nexport function validate(value) {\n return Hex.validate(value) && Hex.size(value) === 32;\n}\n//# sourceMappingURL=Hash.js.map","import * as Bytes from './Bytes.js';\nimport * as Errors from './Errors.js';\nimport * as Hex from './Hex.js';\nimport * as Json from './Json.js';\n/**\n * Asserts that a {@link ox#PublicKey.PublicKey} is valid.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * PublicKey.assert({\n * prefix: 4,\n * y: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * })\n * // @error: PublicKey.InvalidError: Value \\`{\"y\":\"1\"}\\` is not a valid public key.\n * // @error: Public key must contain:\n * // @error: - an `x` and `prefix` value (compressed)\n * // @error: - an `x`, `y`, and `prefix` value (uncompressed)\n * ```\n *\n * @param publicKey - The public key object to assert.\n */\nexport function assert(publicKey, options = {}) {\n const { compressed } = options;\n const { prefix, x, y } = publicKey;\n // Uncompressed\n if (compressed === false ||\n (typeof x === 'bigint' && typeof y === 'bigint')) {\n if (prefix !== 4)\n throw new InvalidPrefixError({\n prefix,\n cause: new InvalidUncompressedPrefixError(),\n });\n return;\n }\n // Compressed\n if (compressed === true ||\n (typeof x === 'bigint' && typeof y === 'undefined')) {\n if (prefix !== 3 && prefix !== 2)\n throw new InvalidPrefixError({\n prefix,\n cause: new InvalidCompressedPrefixError(),\n });\n return;\n }\n // Unknown/invalid\n throw new InvalidError({ publicKey });\n}\n/**\n * Compresses a {@link ox#PublicKey.PublicKey}.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.from({\n * prefix: 4,\n * x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * })\n *\n * const compressed = PublicKey.compress(publicKey) // [!code focus]\n * // @log: {\n * // @log: prefix: 3,\n * // @log: x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * // @log: }\n * ```\n *\n * @param publicKey - The public key to compress.\n * @returns The compressed public key.\n */\nexport function compress(publicKey) {\n const { x, y } = publicKey;\n return {\n prefix: y % 2n === 0n ? 2 : 3,\n x,\n };\n}\n/**\n * Instantiates a typed {@link ox#PublicKey.PublicKey} object from a {@link ox#PublicKey.PublicKey}, {@link ox#Bytes.Bytes}, or {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.from({\n * prefix: 4,\n * x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * })\n * // @log: {\n * // @log: prefix: 4,\n * // @log: x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * // @log: y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * // @log: }\n * ```\n *\n * @example\n * ### From Serialized\n *\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.from('0x048318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed753547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5')\n * // @log: {\n * // @log: prefix: 4,\n * // @log: x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * // @log: y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * // @log: }\n * ```\n *\n * @param value - The public key value to instantiate.\n * @returns The instantiated {@link ox#PublicKey.PublicKey}.\n */\nexport function from(value) {\n const publicKey = (() => {\n if (Hex.validate(value))\n return fromHex(value);\n if (Bytes.validate(value))\n return fromBytes(value);\n const { prefix, x, y } = value;\n if (typeof x === 'bigint' && typeof y === 'bigint')\n return { prefix: prefix ?? 0x04, x, y };\n return { prefix, x };\n })();\n assert(publicKey);\n return publicKey;\n}\n/**\n * Deserializes a {@link ox#PublicKey.PublicKey} from a {@link ox#Bytes.Bytes} value.\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.fromBytes(new Uint8Array([128, 3, 131, ...]))\n * // @log: {\n * // @log: prefix: 4,\n * // @log: x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * // @log: y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * // @log: }\n * ```\n *\n * @param publicKey - The serialized public key.\n * @returns The deserialized public key.\n */\nexport function fromBytes(publicKey) {\n return fromHex(Hex.fromBytes(publicKey));\n}\n/**\n * Deserializes a {@link ox#PublicKey.PublicKey} from a {@link ox#Hex.Hex} value.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.fromHex('0x8318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed753547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5')\n * // @log: {\n * // @log: prefix: 4,\n * // @log: x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * // @log: y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * // @log: }\n * ```\n *\n * @example\n * ### Deserializing a Compressed Public Key\n *\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.fromHex('0x038318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed75')\n * // @log: {\n * // @log: prefix: 3,\n * // @log: x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * // @log: }\n * ```\n *\n * @param publicKey - The serialized public key.\n * @returns The deserialized public key.\n */\nexport function fromHex(publicKey) {\n if (publicKey.length !== 132 &&\n publicKey.length !== 130 &&\n publicKey.length !== 68)\n throw new InvalidSerializedSizeError({ publicKey });\n if (publicKey.length === 130) {\n const x = BigInt(Hex.slice(publicKey, 0, 32));\n const y = BigInt(Hex.slice(publicKey, 32, 64));\n return {\n prefix: 4,\n x,\n y,\n };\n }\n if (publicKey.length === 132) {\n const prefix = Number(Hex.slice(publicKey, 0, 1));\n const x = BigInt(Hex.slice(publicKey, 1, 33));\n const y = BigInt(Hex.slice(publicKey, 33, 65));\n return {\n prefix,\n x,\n y,\n };\n }\n const prefix = Number(Hex.slice(publicKey, 0, 1));\n const x = BigInt(Hex.slice(publicKey, 1, 33));\n return {\n prefix,\n x,\n };\n}\n/**\n * Serializes a {@link ox#PublicKey.PublicKey} to {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.from({\n * prefix: 4,\n * x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * })\n *\n * const bytes = PublicKey.toBytes(publicKey) // [!code focus]\n * // @log: Uint8Array [128, 3, 131, ...]\n * ```\n *\n * @param publicKey - The public key to serialize.\n * @returns The serialized public key.\n */\nexport function toBytes(publicKey, options = {}) {\n return Bytes.fromHex(toHex(publicKey, options));\n}\n/**\n * Serializes a {@link ox#PublicKey.PublicKey} to {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.from({\n * prefix: 4,\n * x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * })\n *\n * const hex = PublicKey.toHex(publicKey) // [!code focus]\n * // @log: '0x048318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed753547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5'\n * ```\n *\n * @param publicKey - The public key to serialize.\n * @returns The serialized public key.\n */\nexport function toHex(publicKey, options = {}) {\n assert(publicKey);\n const { prefix, x, y } = publicKey;\n const { includePrefix = true } = options;\n const publicKey_ = Hex.concat(includePrefix ? Hex.fromNumber(prefix, { size: 1 }) : '0x', Hex.fromNumber(x, { size: 32 }), \n // If the public key is not compressed, add the y coordinate.\n typeof y === 'bigint' ? Hex.fromNumber(y, { size: 32 }) : '0x');\n return publicKey_;\n}\n/**\n * Validates a {@link ox#PublicKey.PublicKey}. Returns `true` if valid, `false` otherwise.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * const valid = PublicKey.validate({\n * prefix: 4,\n * y: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * })\n * // @log: false\n * ```\n *\n * @param publicKey - The public key object to assert.\n */\nexport function validate(publicKey, options = {}) {\n try {\n assert(publicKey, options);\n return true;\n }\n catch (error) {\n return false;\n }\n}\n/**\n * Thrown when a public key is invalid.\n *\n * @example\n * ```ts twoslash\n * import { PublicKey } from 'ox'\n *\n * PublicKey.assert({ y: 1n })\n * // @error: PublicKey.InvalidError: Value `{\"y\":1n}` is not a valid public key.\n * // @error: Public key must contain:\n * // @error: - an `x` and `prefix` value (compressed)\n * // @error: - an `x`, `y`, and `prefix` value (uncompressed)\n * ```\n */\nexport class InvalidError extends Errors.BaseError {\n constructor({ publicKey }) {\n super(`Value \\`${Json.stringify(publicKey)}\\` is not a valid public key.`, {\n metaMessages: [\n 'Public key must contain:',\n '- an `x` and `prefix` value (compressed)',\n '- an `x`, `y`, and `prefix` value (uncompressed)',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'PublicKey.InvalidError'\n });\n }\n}\n/** Thrown when a public key has an invalid prefix. */\nexport class InvalidPrefixError extends Errors.BaseError {\n constructor({ prefix, cause }) {\n super(`Prefix \"${prefix}\" is invalid.`, {\n cause,\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'PublicKey.InvalidPrefixError'\n });\n }\n}\n/** Thrown when the public key has an invalid prefix for a compressed public key. */\nexport class InvalidCompressedPrefixError extends Errors.BaseError {\n constructor() {\n super('Prefix must be 2 or 3 for compressed public keys.');\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'PublicKey.InvalidCompressedPrefixError'\n });\n }\n}\n/** Thrown when the public key has an invalid prefix for an uncompressed public key. */\nexport class InvalidUncompressedPrefixError extends Errors.BaseError {\n constructor() {\n super('Prefix must be 4 for uncompressed public keys.');\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'PublicKey.InvalidUncompressedPrefixError'\n });\n }\n}\n/** Thrown when the public key has an invalid serialized size. */\nexport class InvalidSerializedSizeError extends Errors.BaseError {\n constructor({ publicKey }) {\n super(`Value \\`${publicKey}\\` is an invalid public key size.`, {\n metaMessages: [\n 'Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).',\n `Received ${Hex.size(Hex.from(publicKey))} bytes.`,\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'PublicKey.InvalidSerializedSizeError'\n });\n }\n}\n//# sourceMappingURL=PublicKey.js.map","export const arrayRegex = /^(.*)\\[([0-9]*)\\]$/;\n// `bytes<M>`: binary type of `M` bytes, `0 < M <= 32`\n// https://regexr.com/6va55\nexport const bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;\n// `(u)int<M>`: (un)signed integer type of `M` bits, `0 < M <= 256`, `M % 8 == 0`\n// https://regexr.com/6v8hp\nexport const integerRegex = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;\nexport const maxInt8 = 2n ** (8n - 1n) - 1n;\nexport const maxInt16 = 2n ** (16n - 1n) - 1n;\nexport const maxInt24 = 2n ** (24n - 1n) - 1n;\nexport const maxInt32 = 2n ** (32n - 1n) - 1n;\nexport const maxInt40 = 2n ** (40n - 1n) - 1n;\nexport const maxInt48 = 2n ** (48n - 1n) - 1n;\nexport const maxInt56 = 2n ** (56n - 1n) - 1n;\nexport const maxInt64 = 2n ** (64n - 1n) - 1n;\nexport const maxInt72 = 2n ** (72n - 1n) - 1n;\nexport const maxInt80 = 2n ** (80n - 1n) - 1n;\nexport const maxInt88 = 2n ** (88n - 1n) - 1n;\nexport const maxInt96 = 2n ** (96n - 1n) - 1n;\nexport const maxInt104 = 2n ** (104n - 1n) - 1n;\nexport const maxInt112 = 2n ** (112n - 1n) - 1n;\nexport const maxInt120 = 2n ** (120n - 1n) - 1n;\nexport const maxInt128 = 2n ** (128n - 1n) - 1n;\nexport const maxInt136 = 2n ** (136n - 1n) - 1n;\nexport const maxInt144 = 2n ** (144n - 1n) - 1n;\nexport const maxInt152 = 2n ** (152n - 1n) - 1n;\nexport const maxInt160 = 2n ** (160n - 1n) - 1n;\nexport const maxInt168 = 2n ** (168n - 1n) - 1n;\nexport const maxInt176 = 2n ** (176n - 1n) - 1n;\nexport const maxInt184 = 2n ** (184n - 1n) - 1n;\nexport const maxInt192 = 2n ** (192n - 1n) - 1n;\nexport const maxInt200 = 2n ** (200n - 1n) - 1n;\nexport const maxInt208 = 2n ** (208n - 1n) - 1n;\nexport const maxInt216 = 2n ** (216n - 1n) - 1n;\nexport const maxInt224 = 2n ** (224n - 1n) - 1n;\nexport const maxInt232 = 2n ** (232n - 1n) - 1n;\nexport const maxInt240 = 2n ** (240n - 1n) - 1n;\nexport const maxInt248 = 2n ** (248n - 1n) - 1n;\nexport const maxInt256 = 2n ** (256n - 1n) - 1n;\nexport const minInt8 = -(2n ** (8n - 1n));\nexport const minInt16 = -(2n ** (16n - 1n));\nexport const minInt24 = -(2n ** (24n - 1n));\nexport const minInt32 = -(2n ** (32n - 1n));\nexport const minInt40 = -(2n ** (40n - 1n));\nexport const minInt48 = -(2n ** (48n - 1n));\nexport const minInt56 = -(2n ** (56n - 1n));\nexport const minInt64 = -(2n ** (64n - 1n));\nexport const minInt72 = -(2n ** (72n - 1n));\nexport const minInt80 = -(2n ** (80n - 1n));\nexport const minInt88 = -(2n ** (88n - 1n));\nexport const minInt96 = -(2n ** (96n - 1n));\nexport const minInt104 = -(2n ** (104n - 1n));\nexport const minInt112 = -(2n ** (112n - 1n));\nexport const minInt120 = -(2n ** (120n - 1n));\nexport const minInt128 = -(2n ** (128n - 1n));\nexport const minInt136 = -(2n ** (136n - 1n));\nexport const minInt144 = -(2n ** (144n - 1n));\nexport const minInt152 = -(2n ** (152n - 1n));\nexport const minInt160 = -(2n ** (160n - 1n));\nexport const minInt168 = -(2n ** (168n - 1n));\nexport const minInt176 = -(2n ** (176n - 1n));\nexport const minInt184 = -(2n ** (184n - 1n));\nexport const minInt192 = -(2n ** (192n - 1n));\nexport const minInt200 = -(2n ** (200n - 1n));\nexport const minInt208 = -(2n ** (208n - 1n));\nexport const minInt216 = -(2n ** (216n - 1n));\nexport const minInt224 = -(2n ** (224n - 1n));\nexport const minInt232 = -(2n ** (232n - 1n));\nexport const minInt240 = -(2n ** (240n - 1n));\nexport const minInt248 = -(2n ** (248n - 1n));\nexport const minInt256 = -(2n ** (256n - 1n));\nexport const maxUint8 = 2n ** 8n - 1n;\nexport const maxUint16 = 2n ** 16n - 1n;\nexport const maxUint24 = 2n ** 24n - 1n;\nexport const maxUint32 = 2n ** 32n - 1n;\nexport const maxUint40 = 2n ** 40n - 1n;\nexport const maxUint48 = 2n ** 48n - 1n;\nexport const maxUint56 = 2n ** 56n - 1n;\nexport const maxUint64 = 2n ** 64n - 1n;\nexport const maxUint72 = 2n ** 72n - 1n;\nexport const maxUint80 = 2n ** 80n - 1n;\nexport const maxUint88 = 2n ** 88n - 1n;\nexport const maxUint96 = 2n ** 96n - 1n;\nexport const maxUint104 = 2n ** 104n - 1n;\nexport const maxUint112 = 2n ** 112n - 1n;\nexport const maxUint120 = 2n ** 120n - 1n;\nexport const maxUint128 = 2n ** 128n - 1n;\nexport const maxUint136 = 2n ** 136n - 1n;\nexport const maxUint144 = 2n ** 144n - 1n;\nexport const maxUint152 = 2n ** 152n - 1n;\nexport const maxUint160 = 2n ** 160n - 1n;\nexport const maxUint168 = 2n ** 168n - 1n;\nexport const maxUint176 = 2n ** 176n - 1n;\nexport const maxUint184 = 2n ** 184n - 1n;\nexport const maxUint192 = 2n ** 192n - 1n;\nexport const maxUint200 = 2n ** 200n - 1n;\nexport const maxUint208 = 2n ** 208n - 1n;\nexport const maxUint216 = 2n ** 216n - 1n;\nexport const maxUint224 = 2n ** 224n - 1n;\nexport const maxUint232 = 2n ** 232n - 1n;\nexport const maxUint240 = 2n ** 240n - 1n;\nexport const maxUint248 = 2n ** 248n - 1n;\nexport const maxUint256 = 2n ** 256n - 1n;\n//# sourceMappingURL=Solidity.js.map","import { secp256k1 } from '@noble/curves/secp256k1';\nimport * as Bytes from './Bytes.js';\nimport * as Errors from './Errors.js';\nimport * as Hex from './Hex.js';\nimport * as Json from './Json.js';\nimport * as Solidity from './Solidity.js';\n/**\n * Asserts that a Signature is valid.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * Signature.assert({\n * r: -49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * yParity: 1,\n * })\n * // @error: InvalidSignatureRError:\n * // @error: Value `-549...n` is an invalid r value.\n * // @error: r must be a positive integer less than 2^256.\n * ```\n *\n * @param signature - The signature object to assert.\n */\nexport function assert(signature, options = {}) {\n const { recovered } = options;\n if (typeof signature.r === 'undefined')\n throw new MissingPropertiesError({ signature });\n if (typeof signature.s === 'undefined')\n throw new MissingPropertiesError({ signature });\n if (recovered && typeof signature.yParity === 'undefined')\n throw new MissingPropertiesError({ signature });\n if (signature.r < 0n || signature.r > Solidity.maxUint256)\n throw new InvalidRError({ value: signature.r });\n if (signature.s < 0n || signature.s > Solidity.maxUint256)\n throw new InvalidSError({ value: signature.s });\n if (typeof signature.yParity === 'number' &&\n signature.yParity !== 0 &&\n signature.yParity !== 1)\n throw new InvalidYParityError({ value: signature.yParity });\n}\n/**\n * Deserializes a {@link ox#Bytes.Bytes} signature into a structured {@link ox#Signature.Signature}.\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Signature } from 'ox'\n *\n * Signature.fromBytes(new Uint8Array([128, 3, 131, ...]))\n * // @log: { r: 5231...n, s: 3522...n, yParity: 0 }\n * ```\n *\n * @param signature - The serialized signature.\n * @returns The deserialized {@link ox#Signature.Signature}.\n */\nexport function fromBytes(signature) {\n return fromHex(Hex.fromBytes(signature));\n}\n/**\n * Deserializes a {@link ox#Hex.Hex} signature into a structured {@link ox#Signature.Signature}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * Signature.fromHex('0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c')\n * // @log: { r: 5231...n, s: 3522...n, yParity: 0 }\n * ```\n *\n * @param serialized - The serialized signature.\n * @returns The deserialized {@link ox#Signature.Signature}.\n */\nexport function fromHex(signature) {\n if (signature.length !== 130 && signature.length !== 132)\n throw new InvalidSerializedSizeError({ signature });\n const r = BigInt(Hex.slice(signature, 0, 32));\n const s = BigInt(Hex.slice(signature, 32, 64));\n const yParity = (() => {\n const yParity = Number(`0x${signature.slice(130)}`);\n if (Number.isNaN(yParity))\n return undefined;\n try {\n return vToYParity(yParity);\n }\n catch {\n throw new InvalidYParityError({ value: yParity });\n }\n })();\n if (typeof yParity === 'undefined')\n return {\n r,\n s,\n };\n return {\n r,\n s,\n yParity,\n };\n}\n/**\n * Extracts a {@link ox#Signature.Signature} from an arbitrary object that may include signature properties.\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Signature } from 'ox'\n *\n * Signature.extract({\n * baz: 'barry',\n * foo: 'bar',\n * r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * yParity: 1,\n * zebra: 'stripes',\n * })\n * // @log: {\n * // @log: r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * // @log: s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * // @log: yParity: 1\n * // @log: }\n * ```\n *\n * @param value - The arbitrary object to extract the signature from.\n * @returns The extracted {@link ox#Signature.Signature}.\n */\nexport function extract(value) {\n if (typeof value.r === 'undefined')\n return undefined;\n if (typeof value.s === 'undefined')\n return undefined;\n return from(value);\n}\n/**\n * Instantiates a typed {@link ox#Signature.Signature} object from a {@link ox#Signature.Signature}, {@link ox#Signature.Legacy}, {@link ox#Bytes.Bytes}, or {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * Signature.from({\n * r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * yParity: 1,\n * })\n * // @log: {\n * // @log: r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * // @log: s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * // @log: yParity: 1\n * // @log: }\n * ```\n *\n * @example\n * ### From Serialized\n *\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * Signature.from('0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db801')\n * // @log: {\n * // @log: r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * // @log: s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * // @log: yParity: 1,\n * // @log: }\n * ```\n *\n * @example\n * ### From Legacy\n *\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * Signature.from({\n * r: 47323457007453657207889730243826965761922296599680473886588287015755652701072n,\n * s: 57228803202727131502949358313456071280488184270258293674242124340113824882788n,\n * v: 27,\n * })\n * // @log: {\n * // @log: r: 47323457007453657207889730243826965761922296599680473886588287015755652701072n,\n * // @log: s: 57228803202727131502949358313456071280488184270258293674242124340113824882788n,\n * // @log: yParity: 0\n * // @log: }\n * ```\n *\n * @param signature - The signature value to instantiate.\n * @returns The instantiated {@link ox#Signature.Signature}.\n */\nexport function from(signature) {\n const signature_ = (() => {\n if (typeof signature === 'string')\n return fromHex(signature);\n if (signature instanceof Uint8Array)\n return fromBytes(signature);\n if (typeof signature.r === 'string')\n return fromRpc(signature);\n if (signature.v)\n return fromLegacy(signature);\n return {\n r: signature.r,\n s: signature.s,\n ...(typeof signature.yParity !== 'undefined'\n ? { yParity: signature.yParity }\n : {}),\n };\n })();\n assert(signature_);\n return signature_;\n}\n/**\n * Converts a DER-encoded signature to a {@link ox#Signature.Signature}.\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Signature } from 'ox'\n *\n * const signature = Signature.fromDerBytes(new Uint8Array([132, 51, 23, ...]))\n * // @log: {\n * // @log: r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * // @log: s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * // @log: }\n * ```\n *\n * @param signature - The DER-encoded signature to convert.\n * @returns The {@link ox#Signature.Signature}.\n */\nexport function fromDerBytes(signature) {\n return fromDerHex(Hex.fromBytes(signature));\n}\n/**\n * Converts a DER-encoded signature to a {@link ox#Signature.Signature}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.fromDerHex('0x304402206e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf02204a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db8')\n * // @log: {\n * // @log: r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * // @log: s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * // @log: }\n * ```\n *\n * @param signature - The DER-encoded signature to convert.\n * @returns The {@link ox#Signature.Signature}.\n */\nexport function fromDerHex(signature) {\n const { r, s } = secp256k1.Signature.fromDER(Hex.from(signature).slice(2));\n return { r, s };\n}\n/**\n * Converts a {@link ox#Signature.Legacy} into a {@link ox#Signature.Signature}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const legacy = Signature.fromLegacy({ r: 1n, s: 2n, v: 28 })\n * // @log: { r: 1n, s: 2n, yParity: 1 }\n * ```\n *\n * @param signature - The {@link ox#Signature.Legacy} to convert.\n * @returns The converted {@link ox#Signature.Signature}.\n */\nexport function fromLegacy(signature) {\n return {\n r: signature.r,\n s: signature.s,\n yParity: vToYParity(signature.v),\n };\n}\n/**\n * Converts a {@link ox#Signature.Rpc} into a {@link ox#Signature.Signature}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.fromRpc({\n * r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',\n * s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',\n * yParity: '0x0',\n * })\n * ```\n *\n * @param signature - The {@link ox#Signature.Rpc} to convert.\n * @returns The converted {@link ox#Signature.Signature}.\n */\nexport function fromRpc(signature) {\n const yParity = (() => {\n const v = signature.v ? Number(signature.v) : undefined;\n let yParity = signature.yParity ? Number(signature.yParity) : undefined;\n if (typeof v === 'number' && typeof yParity !== 'number')\n yParity = vToYParity(v);\n if (typeof yParity !== 'number')\n throw new InvalidYParityError({ value: signature.yParity });\n return yParity;\n })();\n return {\n r: BigInt(signature.r),\n s: BigInt(signature.s),\n yParity,\n };\n}\n/**\n * Converts a {@link ox#Signature.Tuple} to a {@link ox#Signature.Signature}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.fromTuple(['0x01', '0x7b', '0x1c8'])\n * // @log: {\n * // @log: r: 123n,\n * // @log: s: 456n,\n * // @log: yParity: 1,\n * // @log: }\n * ```\n *\n * @param tuple - The {@link ox#Signature.Tuple} to convert.\n * @returns The {@link ox#Signature.Signature}.\n */\nexport function fromTuple(tuple) {\n const [yParity, r, s] = tuple;\n return from({\n r: r === '0x' ? 0n : BigInt(r),\n s: s === '0x' ? 0n : BigInt(s),\n yParity: yParity === '0x' ? 0 : Number(yParity),\n });\n}\n/**\n * Serializes a {@link ox#Signature.Signature} to {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.toBytes({\n * r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * yParity: 1\n * })\n * // @log: Uint8Array [102, 16, 10, ...]\n * ```\n *\n * @param signature - The signature to serialize.\n * @returns The serialized signature.\n */\nexport function toBytes(signature) {\n return Bytes.fromHex(toHex(signature));\n}\n/**\n * Serializes a {@link ox#Signature.Signature} to {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.toHex({\n * r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * yParity: 1\n * })\n * // @log: '0x6e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf4a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db81c'\n * ```\n *\n * @param signature - The signature to serialize.\n * @returns The serialized signature.\n */\nexport function toHex(signature) {\n assert(signature);\n const r = signature.r;\n const s = signature.s;\n const signature_ = Hex.concat(Hex.fromNumber(r, { size: 32 }), Hex.fromNumber(s, { size: 32 }), \n // If the signature is recovered, add the recovery byte to the signature.\n typeof signature.yParity === 'number'\n ? Hex.fromNumber(yParityToV(signature.yParity), { size: 1 })\n : '0x');\n return signature_;\n}\n/**\n * Converts a {@link ox#Signature.Signature} to DER-encoded format.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.from({\n * r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * })\n *\n * const signature_der = Signature.toDerBytes(signature)\n * // @log: Uint8Array [132, 51, 23, ...]\n * ```\n *\n * @param signature - The signature to convert.\n * @returns The DER-encoded signature.\n */\nexport function toDerBytes(signature) {\n const sig = new secp256k1.Signature(signature.r, signature.s);\n return sig.toDERRawBytes();\n}\n/**\n * Converts a {@link ox#Signature.Signature} to DER-encoded format.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.from({\n * r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * })\n *\n * const signature_der = Signature.toDerHex(signature)\n * // @log: '0x304402206e100a352ec6ad1b70802290e18aeed190704973570f3b8ed42cb9808e2ea6bf02204a90a229a244495b41890987806fcbd2d5d23fc0dbe5f5256c2613c039d76db8'\n * ```\n *\n * @param signature - The signature to convert.\n * @returns The DER-encoded signature.\n */\nexport function toDerHex(signature) {\n const sig = new secp256k1.Signature(signature.r, signature.s);\n return `0x${sig.toDERHex()}`;\n}\n/**\n * Converts a {@link ox#Signature.Signature} into a {@link ox#Signature.Legacy}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const legacy = Signature.toLegacy({ r: 1n, s: 2n, yParity: 1 })\n * // @log: { r: 1n, s: 2n, v: 28 }\n * ```\n *\n * @param signature - The {@link ox#Signature.Signature} to convert.\n * @returns The converted {@link ox#Signature.Legacy}.\n */\nexport function toLegacy(signature) {\n return {\n r: signature.r,\n s: signature.s,\n v: yParityToV(signature.yParity),\n };\n}\n/**\n * Converts a {@link ox#Signature.Signature} into a {@link ox#Signature.Rpc}.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signature = Signature.toRpc({\n * r: 49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * yParity: 1\n * })\n * ```\n *\n * @param signature - The {@link ox#Signature.Signature} to convert.\n * @returns The converted {@link ox#Signature.Rpc}.\n */\nexport function toRpc(signature) {\n const { r, s, yParity } = signature;\n return {\n r: Hex.fromNumber(r, { size: 32 }),\n s: Hex.fromNumber(s, { size: 32 }),\n yParity: yParity === 0 ? '0x0' : '0x1',\n };\n}\n/**\n * Converts a {@link ox#Signature.Signature} to a serialized {@link ox#Signature.Tuple} to be used for signatures in Transaction Envelopes, EIP-7702 Authorization Lists, etc.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const signatureTuple = Signature.toTuple({\n * r: 123n,\n * s: 456n,\n * yParity: 1,\n * })\n * // @log: [yParity: '0x01', r: '0x7b', s: '0x1c8']\n * ```\n *\n * @param signature - The {@link ox#Signature.Signature} to convert.\n * @returns The {@link ox#Signature.Tuple}.\n */\nexport function toTuple(signature) {\n const { r, s, yParity } = signature;\n return [\n yParity ? '0x01' : '0x',\n r === 0n ? '0x' : Hex.trimLeft(Hex.fromNumber(r)),\n s === 0n ? '0x' : Hex.trimLeft(Hex.fromNumber(s)),\n ];\n}\n/**\n * Validates a Signature. Returns `true` if the signature is valid, `false` otherwise.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const valid = Signature.validate({\n * r: -49782753348462494199823712700004552394425719014458918871452329774910450607807n,\n * s: 33726695977844476214676913201140481102225469284307016937915595756355928419768n,\n * yParity: 1,\n * })\n * // @log: false\n * ```\n *\n * @param signature - The signature object to assert.\n */\nexport function validate(signature, options = {}) {\n try {\n assert(signature, options);\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Converts a ECDSA `v` value to a `yParity` value.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const yParity = Signature.vToYParity(28)\n * // @log: 1\n * ```\n *\n * @param v - The ECDSA `v` value to convert.\n * @returns The `yParity` value.\n */\nexport function vToYParity(v) {\n if (v === 0 || v === 27)\n return 0;\n if (v === 1 || v === 28)\n return 1;\n if (v >= 35)\n return v % 2 === 0 ? 1 : 0;\n throw new InvalidVError({ value: v });\n}\n/**\n * Converts a ECDSA `v` value to a `yParity` value.\n *\n * @example\n * ```ts twoslash\n * import { Signature } from 'ox'\n *\n * const v = Signature.yParityToV(1)\n * // @log: 28\n * ```\n *\n * @param yParity - The ECDSA `yParity` value to convert.\n * @returns The `v` value.\n */\nexport function yParityToV(yParity) {\n if (yParity === 0)\n return 27;\n if (yParity === 1)\n return 28;\n throw new InvalidYParityError({ value: yParity });\n}\n/** Thrown when the serialized signature is of an invalid size. */\nexport class InvalidSerializedSizeError extends Errors.BaseError {\n constructor({ signature }) {\n super(`Value \\`${signature}\\` is an invalid signature size.`, {\n metaMessages: [\n 'Expected: 64 bytes or 65 bytes.',\n `Received ${Hex.size(Hex.from(signature))} bytes.`,\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Signature.InvalidSerializedSizeError'\n });\n }\n}\n/** Thrown when the signature is missing either an `r`, `s`, or `yParity` property. */\nexport class MissingPropertiesError extends Errors.BaseError {\n constructor({ signature }) {\n super(`Signature \\`${Json.stringify(signature)}\\` is missing either an \\`r\\`, \\`s\\`, or \\`yParity\\` property.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Signature.MissingPropertiesError'\n });\n }\n}\n/** Thrown when the signature has an invalid `r` value. */\nexport class InvalidRError extends Errors.BaseError {\n constructor({ value }) {\n super(`Value \\`${value}\\` is an invalid r value. r must be a positive integer less than 2^256.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Signature.InvalidRError'\n });\n }\n}\n/** Thrown when the signature has an invalid `s` value. */\nexport class InvalidSError extends Errors.BaseError {\n constructor({ value }) {\n super(`Value \\`${value}\\` is an invalid s value. s must be a positive integer less than 2^256.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Signature.InvalidSError'\n });\n }\n}\n/** Thrown when the signature has an invalid `yParity` value. */\nexport class InvalidYParityError extends Errors.BaseError {\n constructor({ value }) {\n super(`Value \\`${value}\\` is an invalid y-parity value. Y-parity must be 0 or 1.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Signature.InvalidYParityError'\n });\n }\n}\n/** Thrown when the signature has an invalid `v` value. */\nexport class InvalidVError extends Errors.BaseError {\n constructor({ value }) {\n super(`Value \\`${value}\\` is an invalid v value. v must be 27, 28 or >=35.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Signature.InvalidVError'\n });\n }\n}\n//# sourceMappingURL=Signature.js.map","import * as Bytes from './Bytes.js';\nimport * as Hex from './Hex.js';\nconst encoder = /*#__PURE__*/ new TextEncoder();\nconst decoder = /*#__PURE__*/ new TextDecoder();\nconst integerToCharacter = /*#__PURE__*/ Object.fromEntries(Array.from('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/').map((a, i) => [i, a.charCodeAt(0)]));\nconst characterToInteger = /*#__PURE__*/ {\n ...Object.fromEntries(Array.from('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/').map((a, i) => [a.charCodeAt(0), i])),\n ['='.charCodeAt(0)]: 0,\n ['-'.charCodeAt(0)]: 62,\n ['_'.charCodeAt(0)]: 63,\n};\n/**\n * Encodes a {@link ox#Bytes.Bytes} to a Base64-encoded string (with optional padding and/or URL-safe characters).\n *\n * @example\n * ```ts twoslash\n * import { Base64, Bytes } from 'ox'\n *\n * const value = Base64.fromBytes(Bytes.fromString('hello world'))\n * // @log: 'aGVsbG8gd29ybGQ='\n * ```\n *\n * @example\n * ### No Padding\n *\n * Turn off [padding of encoded data](https://datatracker.ietf.org/doc/html/rfc4648#section-3.2) with the `pad` option:\n *\n * ```ts twoslash\n * import { Base64, Bytes } from 'ox'\n *\n * const value = Base64.fromBytes(Bytes.fromString('hello world'), { pad: false })\n * // @log: 'aGVsbG8gd29ybGQ'\n * ```\n *\n * ### URL-safe Encoding\n *\n * Turn on [URL-safe encoding](https://datatracker.ietf.org/doc/html/rfc4648#section-5) (Base64 URL) with the `url` option:\n *\n * ```ts twoslash\n * import { Base64, Bytes } from 'ox'\n *\n * const value = Base64.fromBytes(Bytes.fromString('hello wod'), { url: true })\n * // @log: 'aGVsbG8gd29_77-9ZA=='\n * ```\n *\n * @param value - The byte array to encode.\n * @param options - Encoding options.\n * @returns The Base64 encoded string.\n */\nexport function fromBytes(value, options = {}) {\n const { pad = true, url = false } = options;\n const encoded = new Uint8Array(Math.ceil(value.length / 3) * 4);\n for (let i = 0, j = 0; j < value.length; i += 4, j += 3) {\n const y = (value[j] << 16) + (value[j + 1] << 8) + (value[j + 2] | 0);\n encoded[i] = integerToCharacter[y >> 18];\n encoded[i + 1] = integerToCharacter[(y >> 12) & 0x3f];\n encoded[i + 2] = integerToCharacter[(y >> 6) & 0x3f];\n encoded[i + 3] = integerToCharacter[y & 0x3f];\n }\n const k = value.length % 3;\n const end = Math.floor(value.length / 3) * 4 + (k && k + 1);\n let base64 = decoder.decode(new Uint8Array(encoded.buffer, 0, end));\n if (pad && k === 1)\n base64 += '==';\n if (pad && k === 2)\n base64 += '=';\n if (url)\n base64 = base64.replaceAll('+', '-').replaceAll('/', '_');\n return base64;\n}\n/**\n * Encodes a {@link ox#Hex.Hex} to a Base64-encoded string (with optional padding and/or URL-safe characters).\n *\n * @example\n * ```ts twoslash\n * import { Base64, Hex } from 'ox'\n *\n * const value = Base64.fromHex(Hex.fromString('hello world'))\n * // @log: 'aGVsbG8gd29ybGQ='\n * ```\n *\n * @example\n * ### No Padding\n *\n * Turn off [padding of encoded data](https://datatracker.ietf.org/doc/html/rfc4648#section-3.2) with the `pad` option:\n *\n * ```ts twoslash\n * import { Base64, Hex } from 'ox'\n *\n * const value = Base64.fromHex(Hex.fromString('hello world'), { pad: false })\n * // @log: 'aGVsbG8gd29ybGQ'\n * ```\n *\n * ### URL-safe Encoding\n *\n * Turn on [URL-safe encoding](https://datatracker.ietf.org/doc/html/rfc4648#section-5) (Base64 URL) with the `url` option:\n *\n * ```ts twoslash\n * import { Base64, Hex } from 'ox'\n *\n * const value = Base64.fromHex(Hex.fromString('hello wod'), { url: true })\n * // @log: 'aGVsbG8gd29_77-9ZA=='\n * ```\n *\n * @param value - The hex value to encode.\n * @param options - Encoding options.\n * @returns The Base64 encoded string.\n */\nexport function fromHex(value, options = {}) {\n return fromBytes(Bytes.fromHex(value), options);\n}\n/**\n * Encodes a string to a Base64-encoded string (with optional padding and/or URL-safe characters).\n *\n * @example\n * ```ts twoslash\n * import { Base64 } from 'ox'\n *\n * const value = Base64.fromString('hello world')\n * // @log: 'aGVsbG8gd29ybGQ='\n * ```\n *\n * @example\n * ### No Padding\n *\n * Turn off [padding of encoded data](https://datatracker.ietf.org/doc/html/rfc4648#section-3.2) with the `pad` option:\n *\n * ```ts twoslash\n * import { Base64 } from 'ox'\n *\n * const value = Base64.fromString('hello world', { pad: false })\n * // @log: 'aGVsbG8gd29ybGQ'\n * ```\n *\n * ### URL-safe Encoding\n *\n * Turn on [URL-safe encoding](https://datatracker.ietf.org/doc/html/rfc4648#section-5) (Base64 URL) with the `url` option:\n *\n * ```ts twoslash\n * import { Base64 } from 'ox'\n *\n * const value = Base64.fromString('hello wod', { url: true })\n * // @log: 'aGVsbG8gd29_77-9ZA=='\n * ```\n *\n * @param value - The string to encode.\n * @param options - Encoding options.\n * @returns The Base64 encoded string.\n */\nexport function fromString(value, options = {}) {\n return fromBytes(Bytes.fromString(value), options);\n}\n/**\n * Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to {@link ox#Bytes.Bytes}.\n *\n * @example\n * ```ts twoslash\n * import { Base64, Bytes } from 'ox'\n *\n * const value = Base64.toBytes('aGVsbG8gd29ybGQ=')\n * // @log: Uint8Array([104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100])\n * ```\n *\n * @param value - The string, hex value, or byte array to encode.\n * @returns The Base64 decoded {@link ox#Bytes.Bytes}.\n */\nexport function toBytes(value) {\n const base64 = value.replace(/=+$/, '');\n const size = base64.length;\n const decoded = new Uint8Array(size + 3);\n encoder.encodeInto(base64 + '===', decoded);\n for (let i = 0, j = 0; i < base64.length; i += 4, j += 3) {\n const x = (characterToInteger[decoded[i]] << 18) +\n (characterToInteger[decoded[i + 1]] << 12) +\n (characterToInteger[decoded[i + 2]] << 6) +\n characterToInteger[decoded[i + 3]];\n decoded[j] = x >> 16;\n decoded[j + 1] = (x >> 8) & 0xff;\n decoded[j + 2] = x & 0xff;\n }\n const decodedSize = (size >> 2) * 3 + (size % 4 && (size % 4) - 1);\n return new Uint8Array(decoded.buffer, 0, decodedSize);\n}\n/**\n * Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to {@link ox#Hex.Hex}.\n *\n * @example\n * ```ts twoslash\n * import { Base64, Hex } from 'ox'\n *\n * const value = Base64.toHex('aGVsbG8gd29ybGQ=')\n * // @log: 0x68656c6c6f20776f726c64\n * ```\n *\n * @param value - The string, hex value, or byte array to encode.\n * @returns The Base64 decoded {@link ox#Hex.Hex}.\n */\nexport function toHex(value) {\n return Hex.fromBytes(toBytes(value));\n}\n/**\n * Decodes a Base64-encoded string (with optional padding and/or URL-safe characters) to a string.\n *\n * @example\n * ```ts twoslash\n * import { Base64 } from 'ox'\n *\n * const value = Base64.toString('aGVsbG8gd29ybGQ=')\n * // @log: 'hello world'\n * ```\n *\n * @param value - The string, hex value, or byte array to encode.\n * @returns The Base64 decoded string.\n */\nexport function toString(value) {\n return Bytes.toString(toBytes(value));\n}\n//# sourceMappingURL=Base64.js.map","import * as Base64 from './Base64.js';\nimport * as Bytes from './Bytes.js';\nimport * as Errors from './Errors.js';\nimport * as Hash from './Hash.js';\nimport * as Hex from './Hex.js';\nimport * as P256 from './P256.js';\nimport * as internal from './internal/webauthn.js';\nexport const createChallenge = Uint8Array.from([\n 105, 171, 180, 181, 160, 222, 75, 198, 42, 42, 32, 31, 141, 37, 186, 233,\n]);\n/**\n * Creates a new WebAuthn P256 Credential, which can be stored and later used for signing.\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256 } from 'ox'\n *\n * const credential = await WebAuthnP256.createCredential({ name: 'Example' }) // [!code focus]\n * // @log: {\n * // @log: id: 'oZ48...',\n * // @log: publicKey: { x: 51421...5123n, y: 12345...6789n },\n * // @log: raw: PublicKeyCredential {},\n * // @log: }\n *\n * const { metadata, signature } = await WebAuthnP256.sign({\n * credentialId: credential.id,\n * challenge: '0xdeadbeef',\n * })\n * ```\n *\n * @param options - Credential creation options.\n * @returns A WebAuthn P256 credential.\n */\nexport async function createCredential(options) {\n const { createFn = window.navigator.credentials.create.bind(window.navigator.credentials), ...rest } = options;\n const creationOptions = getCredentialCreationOptions(rest);\n try {\n const credential = (await createFn(creationOptions));\n if (!credential)\n throw new CredentialCreationFailedError();\n const response = credential.response;\n const publicKey = await internal.parseCredentialPublicKey(response);\n return {\n id: credential.id,\n publicKey,\n raw: credential,\n };\n }\n catch (error) {\n throw new CredentialCreationFailedError({\n cause: error,\n });\n }\n}\n/**\n * Gets the authenticator data which contains information about the\n * processing of an authenticator request (ie. from `WebAuthnP256.sign`).\n *\n * :::warning\n *\n * This function is mainly for testing purposes or for manually constructing\n * autenticator data. In most cases you will not need this function.\n * `authenticatorData` is typically returned as part of the\n * {@link ox#WebAuthnP256.(sign:function)} response (ie. an authenticator response).\n *\n * :::\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256 } from 'ox'\n *\n * const authenticatorData = WebAuthnP256.getAuthenticatorData({\n * rpId: 'example.com',\n * signCount: 420,\n * })\n * // @log: \"0xa379a6f6eeafb9a55e378c118034e2751e682fab9f2d30ab13d2125586ce194705000001a4\"\n * ```\n *\n * @param options - Options to construct the authenticator data.\n * @returns The authenticator data.\n */\nexport function getAuthenticatorData(options = {}) {\n const { flag = 5, rpId = window.location.hostname, signCount = 0 } = options;\n const rpIdHash = Hash.sha256(Hex.fromString(rpId));\n const flag_bytes = Hex.fromNumber(flag, { size: 1 });\n const signCount_bytes = Hex.fromNumber(signCount, { size: 4 });\n return Hex.concat(rpIdHash, flag_bytes, signCount_bytes);\n}\n/**\n * Constructs the Client Data in stringified JSON format which represents client data that\n * was passed to `credentials.get()` in {@link ox#WebAuthnP256.(sign:function)}.\n *\n * :::warning\n *\n * This function is mainly for testing purposes or for manually constructing\n * client data. In most cases you will not need this function.\n * `clientDataJSON` is typically returned as part of the\n * {@link ox#WebAuthnP256.(sign:function)} response (ie. an authenticator response).\n *\n * :::\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256 } from 'ox'\n *\n * const clientDataJSON = WebAuthnP256.getClientDataJSON({\n * challenge: '0xdeadbeef',\n * origin: 'https://example.com',\n * })\n * // @log: \"{\"type\":\"webauthn.get\",\"challenge\":\"3q2-7w\",\"origin\":\"https://example.com\",\"crossOrigin\":false}\"\n * ```\n *\n * @param options - Options to construct the client data.\n * @returns The client data.\n */\nexport function getClientDataJSON(options) {\n const { challenge, crossOrigin = false, extraClientData, origin = window.location.origin, } = options;\n return JSON.stringify({\n type: 'webauthn.get',\n challenge: Base64.fromHex(challenge, { url: true, pad: false }),\n origin,\n crossOrigin,\n ...extraClientData,\n });\n}\n/**\n * Returns the creation options for a P256 WebAuthn Credential to be used with\n * the Web Authentication API.\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256 } from 'ox'\n *\n * const options = WebAuthnP256.getCredentialCreationOptions({ name: 'Example' })\n *\n * const credential = await window.navigator.credentials.create(options)\n * ```\n *\n * @param options - Options.\n * @returns The credential creation options.\n */\nexport function getCredentialCreationOptions(options) {\n const { attestation = 'none', authenticatorSelection = {\n residentKey: 'preferred',\n requireResidentKey: false,\n userVerification: 'required',\n }, challenge = createChallenge, excludeCredentialIds, name: name_, rp = {\n id: window.location.hostname,\n name: window.document.title,\n }, user, extensions, } = options;\n const name = (user?.name ?? name_);\n return {\n publicKey: {\n attestation,\n authenticatorSelection,\n challenge,\n ...(excludeCredentialIds\n ? {\n excludeCredentials: excludeCredentialIds?.map((id) => ({\n id: Base64.toBytes(id),\n type: 'public-key',\n })),\n }\n : {}),\n pubKeyCredParams: [\n {\n type: 'public-key',\n alg: -7, // p256\n },\n ],\n rp,\n user: {\n id: user?.id ?? Hash.keccak256(Bytes.fromString(name), { as: 'Bytes' }),\n name,\n displayName: user?.displayName ?? name,\n },\n extensions,\n },\n };\n}\n/**\n * Returns the request options to sign a challenge with the Web Authentication API.\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256 } from 'ox'\n *\n * const options = WebAuthnP256.getCredentialRequestOptions({\n * challenge: '0xdeadbeef',\n * })\n *\n * const credential = await window.navigator.credentials.get(options)\n * ```\n *\n * @param options - Options.\n * @returns The credential request options.\n */\nexport function getCredentialRequestOptions(options) {\n const { credentialId, challenge, rpId = window.location.hostname, userVerification = 'required', } = options;\n return {\n publicKey: {\n ...(credentialId\n ? {\n allowCredentials: [\n {\n id: Base64.toBytes(credentialId),\n type: 'public-key',\n },\n ],\n }\n : {}),\n challenge: Bytes.fromHex(challenge),\n rpId,\n userVerification,\n },\n };\n}\n/**\n * Constructs the final digest that was signed and computed by the authenticator. This payload includes\n * the cryptographic `challenge`, as well as authenticator metadata (`authenticatorData` + `clientDataJSON`).\n * This value can be also used with raw P256 verification (such as {@link ox#P256.(verify:function)} or\n * {@link ox#WebCryptoP256.(verify:function)}).\n *\n * :::warning\n *\n * This function is mainly for testing purposes or for manually constructing\n * signing payloads. In most cases you will not need this function and\n * instead use {@link ox#WebAuthnP256.(sign:function)}.\n *\n * :::\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256, WebCryptoP256 } from 'ox'\n *\n * const { metadata, payload } = WebAuthnP256.getSignPayload({ // [!code focus]\n * challenge: '0xdeadbeef', // [!code focus]\n * }) // [!code focus]\n * // @log: {\n * // @log: metadata: {\n * // @log: authenticatorData: \"0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000\",\n * // @log: challengeIndex: 23,\n * // @log: clientDataJSON: \"{\"type\":\"webauthn.get\",\"challenge\":\"9jEFijuhEWrM4SOW-tChJbUEHEP44VcjcJ-Bqo1fTM8\",\"origin\":\"http://localhost:5173\",\"crossOrigin\":false}\",\n * // @log: typeIndex: 1,\n * // @log: userVerificationRequired: true,\n * // @log: },\n * // @log: payload: \"0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d9763050000000045086dcb06a5f234db625bcdc94e657f86b76b6fd3eb9c30543eabc1e577a4b0\",\n * // @log: }\n *\n * const { publicKey, privateKey } = await WebCryptoP256.createKeyPair()\n *\n * const signature = await WebCryptoP256.sign({\n * payload,\n * privateKey,\n * })\n * ```\n *\n * @param options - Options to construct the signing payload.\n * @returns The signing payload.\n */\nexport function getSignPayload(options) {\n const { challenge, crossOrigin, extraClientData, flag, origin, rpId, signCount, userVerification = 'required', } = options;\n const authenticatorData = getAuthenticatorData({\n flag,\n rpId,\n signCount,\n });\n const clientDataJSON = getClientDataJSON({\n challenge,\n crossOrigin,\n extraClientData,\n origin,\n });\n const clientDataJSONHash = Hash.sha256(Hex.fromString(clientDataJSON));\n const challengeIndex = clientDataJSON.indexOf('\"challenge\"');\n const typeIndex = clientDataJSON.indexOf('\"type\"');\n const metadata = {\n authenticatorData,\n clientDataJSON,\n challengeIndex,\n typeIndex,\n userVerificationRequired: userVerification === 'required',\n };\n const payload = Hex.concat(authenticatorData, clientDataJSONHash);\n return { metadata, payload };\n}\n/**\n * Signs a challenge using a stored WebAuthn P256 Credential. If no Credential is provided,\n * a prompt will be displayed for the user to select an existing Credential\n * that was previously registered.\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256 } from 'ox'\n *\n * const credential = await WebAuthnP256.createCredential({\n * name: 'Example',\n * })\n *\n * const { metadata, signature } = await WebAuthnP256.sign({ // [!code focus]\n * credentialId: credential.id, // [!code focus]\n * challenge: '0xdeadbeef', // [!code focus]\n * }) // [!code focus]\n * // @log: {\n * // @log: metadata: {\n * // @log: authenticatorData: '0x49960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000',\n * // @log: clientDataJSON: '{\"type\":\"webauthn.get\",\"challenge\":\"9jEFijuhEWrM4SOW-tChJbUEHEP44VcjcJ-Bqo1fTM8\",\"origin\":\"http://localhost:5173\",\"crossOrigin\":false}',\n * // @log: challengeIndex: 23,\n * // @log: typeIndex: 1,\n * // @log: userVerificationRequired: true,\n * // @log: },\n * // @log: signature: { r: 51231...4215n, s: 12345...6789n },\n * // @log: }\n * ```\n *\n * @param options - Options.\n * @returns The signature.\n */\nexport async function sign(options) {\n const { getFn = window.navigator.credentials.get.bind(window.navigator.credentials), ...rest } = options;\n const requestOptions = getCredentialRequestOptions(rest);\n try {\n const credential = (await getFn(requestOptions));\n if (!credential)\n throw new CredentialRequestFailedError();\n const response = credential.response;\n const clientDataJSON = String.fromCharCode(...new Uint8Array(response.clientDataJSON));\n const challengeIndex = clientDataJSON.indexOf('\"challenge\"');\n const typeIndex = clientDataJSON.indexOf('\"type\"');\n const signature = internal.parseAsn1Signature(new Uint8Array(response.signature));\n return {\n metadata: {\n authenticatorData: Hex.fromBytes(new Uint8Array(response.authenticatorData)),\n clientDataJSON,\n challengeIndex,\n typeIndex,\n userVerificationRequired: requestOptions.publicKey.userVerification === 'required',\n },\n signature,\n raw: credential,\n };\n }\n catch (error) {\n throw new CredentialRequestFailedError({\n cause: error,\n });\n }\n}\n/**\n * Verifies a signature using the Credential's public key and the challenge which was signed.\n *\n * @example\n * ```ts twoslash\n * import { WebAuthnP256 } from 'ox'\n *\n * const credential = await WebAuthnP256.createCredential({\n * name: 'Example',\n * })\n *\n * const { metadata, signature } = await WebAuthnP256.sign({\n * credentialId: credential.id,\n * challenge: '0xdeadbeef',\n * })\n *\n * const result = await WebAuthnP256.verify({ // [!code focus]\n * metadata, // [!code focus]\n * challenge: '0xdeadbeef', // [!code focus]\n * publicKey: credential.publicKey, // [!code focus]\n * signature, // [!code focus]\n * }) // [!code focus]\n * // @log: true\n * ```\n *\n * @param options - Options.\n * @returns Whether the signature is valid.\n */\nexport function verify(options) {\n const { challenge, hash = true, metadata, publicKey, signature } = options;\n const { authenticatorData, challengeIndex, clientDataJSON, typeIndex, userVerificationRequired, } = metadata;\n const authenticatorDataBytes = Bytes.fromHex(authenticatorData);\n // Check length of `authenticatorData`.\n if (authenticatorDataBytes.length < 37)\n return false;\n const flag = authenticatorDataBytes[32];\n // Verify that the UP bit of the flags in authData is set.\n if ((flag & 0x01) !== 0x01)\n return false;\n // If user verification was determined to be required, verify that\n // the UV bit of the flags in authData is set. Otherwise, ignore the\n // value of the UV flag.\n if (userVerificationRequired && (flag & 0x04) !== 0x04)\n return false;\n // If the BE bit of the flags in authData is not set, verify that\n // the BS bit is not set.\n if ((flag & 0x08) !== 0x08 && (flag & 0x10) === 0x10)\n return false;\n // Check that response is for an authentication assertion\n const type = '\"type\":\"webauthn.get\"';\n if (type !== clientDataJSON.slice(Number(typeIndex), type.length + 1))\n return false;\n // Check that hash is in the clientDataJSON.\n const match = clientDataJSON\n .slice(Number(challengeIndex))\n .match(/^\"challenge\":\"(.*?)\"/);\n if (!match)\n return false;\n // Validate the challenge in the clientDataJSON.\n const [_, challenge_extracted] = match;\n if (Hex.fromBytes(Base64.toBytes(challenge_extracted)) !== challenge)\n return false;\n const clientDataJSONHash = Hash.sha256(Bytes.fromString(clientDataJSON), {\n as: 'Bytes',\n });\n const payload = Bytes.concat(authenticatorDataBytes, clientDataJSONHash);\n return P256.verify({\n hash,\n payload,\n publicKey,\n signature,\n });\n}\n/** Thrown when a WebAuthn P256 credential creation fails. */\nexport class CredentialCreationFailedError extends Errors.BaseError {\n constructor({ cause } = {}) {\n super('Failed to create credential.', {\n cause,\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'WebAuthnP256.CredentialCreationFailedError'\n });\n }\n}\n/** Thrown when a WebAuthn P256 credential request fails. */\nexport class CredentialRequestFailedError extends Errors.BaseError {\n constructor({ cause } = {}) {\n super('Failed to request credential.', {\n cause,\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'WebAuthnP256.CredentialRequestFailedError'\n });\n }\n}\n//# sourceMappingURL=WebAuthnP256.js.map","import { p256 } from '@noble/curves/p256';\nimport * as Bytes from './Bytes.js';\nimport * as PublicKey from './PublicKey.js';\n/**\n * Generates an ECDSA P256 key pair that includes:\n *\n * - a `privateKey` of type [`CryptoKey`](https://developer.mozilla.org/en-US/docs/Web/API/CryptoKey)\n *\n * - a `publicKey` of type {@link ox#Hex.Hex} or {@link ox#Bytes.Bytes}\n *\n * @example\n * ```ts twoslash\n * import { WebCryptoP256 } from 'ox'\n *\n * const { publicKey, privateKey } = await WebCryptoP256.createKeyPair()\n * // @log: {\n * // @log: privateKey: CryptoKey {},\n * // @log: publicKey: {\n * // @log: x: 59295962801117472859457908919941473389380284132224861839820747729565200149877n,\n * // @log: y: 24099691209996290925259367678540227198235484593389470330605641003500238088869n,\n * // @log: prefix: 4,\n * // @log: },\n * // @log: }\n * ```\n *\n * @param options - Options for creating the key pair.\n * @returns The key pair.\n */\nexport async function createKeyPair(options = {}) {\n const { extractable = false } = options;\n const keypair = await globalThis.crypto.subtle.generateKey({\n name: 'ECDSA',\n namedCurve: 'P-256',\n }, extractable, ['sign', 'verify']);\n const publicKey_raw = await globalThis.crypto.subtle.exportKey('raw', keypair.publicKey);\n const publicKey = PublicKey.from(new Uint8Array(publicKey_raw));\n return {\n privateKey: keypair.privateKey,\n publicKey,\n };\n}\n/**\n * Signs a payload with the provided `CryptoKey` private key and returns a P256 signature.\n *\n * @example\n * ```ts twoslash\n * import { WebCryptoP256 } from 'ox'\n *\n * const { privateKey } = await WebCryptoP256.createKeyPair()\n *\n * const signature = await WebCryptoP256.sign({ // [!code focus]\n * payload: '0xdeadbeef', // [!code focus]\n * privateKey, // [!code focus]\n * }) // [!code focus]\n * // @log: {\n * // @log: r: 151231...4423n,\n * // @log: s: 516123...5512n,\n * // @log: }\n * ```\n *\n * @param options - Options for signing the payload.\n * @returns The P256 ECDSA {@link ox#Signature.Signature}.\n */\nexport async function sign(options) {\n const { payload, privateKey } = options;\n const signature = await globalThis.crypto.subtle.sign({\n name: 'ECDSA',\n hash: 'SHA-256',\n }, privateKey, Bytes.from(payload));\n const signature_bytes = Bytes.fromArray(new Uint8Array(signature));\n const r = Bytes.toBigInt(Bytes.slice(signature_bytes, 0, 32));\n let s = Bytes.toBigInt(Bytes.slice(signature_bytes, 32, 64));\n if (s > p256.CURVE.n / 2n)\n s = p256.CURVE.n - s;\n return { r, s };\n}\n/**\n * Verifies a payload was signed by the provided public key.\n *\n * @example\n *\n * ```ts twoslash\n * import { WebCryptoP256 } from 'ox'\n *\n * const { privateKey, publicKey } = await WebCryptoP256.createKeyPair()\n * const signature = await WebCryptoP256.sign({ payload: '0xdeadbeef', privateKey })\n *\n * const verified = await WebCryptoP256.verify({ // [!code focus]\n * payload: '0xdeadbeef', // [!code focus]\n * publicKey, // [!code focus]\n * signature, // [!code focus]\n * }) // [!code focus]\n * // @log: true\n * ```\n *\n * @param options - The verification options.\n * @returns Whether the payload was signed by the provided public key.\n */\nexport async function verify(options) {\n const { payload, signature } = options;\n const publicKey = await globalThis.crypto.subtle.importKey('raw', PublicKey.toBytes(options.publicKey), { name: 'ECDSA', namedCurve: 'P-256' }, true, ['verify']);\n return await globalThis.crypto.subtle.verify({\n name: 'ECDSA',\n hash: 'SHA-256',\n }, publicKey, Bytes.concat(Bytes.fromNumber(signature.r), Bytes.fromNumber(signature.s)), Bytes.from(payload));\n}\n//# sourceMappingURL=WebCryptoP256.js.map"],"names":["concat","pad","packedUserOp","BaseError","error","cause","getPaymasterStubData","getPaymasterData","parameters","getPaymasterStubData_","getPaymasterData_","factory","_a","fees","authorization","getChainId","getChainId_","paymaster","stringify","value","assertSize","Bytes.size","Bytes.SizeOverflowError","assertStartOffset","Bytes.SliceOffsetOutOfBoundsError","assertEndOffset","Hex.size","Hex.SizeOverflowError","Hex.SliceOffsetOutOfBoundsError","size","Hex.SizeExceedsPaddingSizeError","assert","from","fromBytes","internal.assertSize","internal.pad","slice","internal.assertStartOffset","internal.assertEndOffset","toBigInt","validate","Errors.BaseError","Json.stringify","fromHex","internal_hex.assertSize","Hex.padRight","internal.charCodeToBase16","Hex.fromBytes","Hex.toBigInt","SizeOverflowError","SliceOffsetOutOfBoundsError","noble_sha256","Bytes.from","Hex.validate","Bytes.validate","InvalidSerializedSizeError","x","Hex.slice","prefix","toHex","Hex.concat","Hex.fromNumber","Hex.from","Solidity.maxUint256","yParity","Bytes.fromHex","Hash.sha256","H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