@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,757 +0,0 @@
|
|
|
1
|
-
const version = "1.1.1";
|
|
2
|
-
class BaseError extends Error {
|
|
3
|
-
constructor(shortMessage, args = {}) {
|
|
4
|
-
var _a;
|
|
5
|
-
const details = args.cause instanceof BaseError ? args.cause.details : ((_a = args.cause) == null ? void 0 : _a.message) ? args.cause.message : args.details;
|
|
6
|
-
const docsPath = args.cause instanceof BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
|
|
7
|
-
const message = [
|
|
8
|
-
shortMessage || "An error occurred.",
|
|
9
|
-
"",
|
|
10
|
-
...args.metaMessages ? [...args.metaMessages, ""] : [],
|
|
11
|
-
...docsPath ? [`Docs: https://abitype.dev${docsPath}`] : [],
|
|
12
|
-
...details ? [`Details: ${details}`] : [],
|
|
13
|
-
`Version: abitype@${version}`
|
|
14
|
-
].join("\n");
|
|
15
|
-
super(message);
|
|
16
|
-
Object.defineProperty(this, "details", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
writable: true,
|
|
20
|
-
value: void 0
|
|
21
|
-
});
|
|
22
|
-
Object.defineProperty(this, "docsPath", {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
configurable: true,
|
|
25
|
-
writable: true,
|
|
26
|
-
value: void 0
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(this, "metaMessages", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
configurable: true,
|
|
31
|
-
writable: true,
|
|
32
|
-
value: void 0
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(this, "shortMessage", {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
configurable: true,
|
|
37
|
-
writable: true,
|
|
38
|
-
value: void 0
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(this, "name", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
configurable: true,
|
|
43
|
-
writable: true,
|
|
44
|
-
value: "AbiTypeError"
|
|
45
|
-
});
|
|
46
|
-
if (args.cause)
|
|
47
|
-
this.cause = args.cause;
|
|
48
|
-
this.details = details;
|
|
49
|
-
this.docsPath = docsPath;
|
|
50
|
-
this.metaMessages = args.metaMessages;
|
|
51
|
-
this.shortMessage = shortMessage;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function execTyped(regex, string) {
|
|
55
|
-
const match = regex.exec(string);
|
|
56
|
-
return match == null ? void 0 : match.groups;
|
|
57
|
-
}
|
|
58
|
-
const bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
59
|
-
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)?$/;
|
|
60
|
-
const isTupleRegex = /^\(.+?\).*?$/;
|
|
61
|
-
const tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
62
|
-
function formatAbiParameter(abiParameter) {
|
|
63
|
-
let type = abiParameter.type;
|
|
64
|
-
if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
|
|
65
|
-
type = "(";
|
|
66
|
-
const length = abiParameter.components.length;
|
|
67
|
-
for (let i = 0; i < length; i++) {
|
|
68
|
-
const component = abiParameter.components[i];
|
|
69
|
-
type += formatAbiParameter(component);
|
|
70
|
-
if (i < length - 1)
|
|
71
|
-
type += ", ";
|
|
72
|
-
}
|
|
73
|
-
const result = execTyped(tupleRegex, abiParameter.type);
|
|
74
|
-
type += `)${(result == null ? void 0 : result.array) ?? ""}`;
|
|
75
|
-
return formatAbiParameter({
|
|
76
|
-
...abiParameter,
|
|
77
|
-
type
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
if ("indexed" in abiParameter && abiParameter.indexed)
|
|
81
|
-
type = `${type} indexed`;
|
|
82
|
-
if (abiParameter.name)
|
|
83
|
-
return `${type} ${abiParameter.name}`;
|
|
84
|
-
return type;
|
|
85
|
-
}
|
|
86
|
-
function formatAbiParameters(abiParameters) {
|
|
87
|
-
let params = "";
|
|
88
|
-
const length = abiParameters.length;
|
|
89
|
-
for (let i = 0; i < length; i++) {
|
|
90
|
-
const abiParameter = abiParameters[i];
|
|
91
|
-
params += formatAbiParameter(abiParameter);
|
|
92
|
-
if (i !== length - 1)
|
|
93
|
-
params += ", ";
|
|
94
|
-
}
|
|
95
|
-
return params;
|
|
96
|
-
}
|
|
97
|
-
function formatAbiItem(abiItem) {
|
|
98
|
-
var _a;
|
|
99
|
-
if (abiItem.type === "function")
|
|
100
|
-
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${((_a = abiItem.outputs) == null ? void 0 : _a.length) ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
101
|
-
if (abiItem.type === "event")
|
|
102
|
-
return `event ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
|
|
103
|
-
if (abiItem.type === "error")
|
|
104
|
-
return `error ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
|
|
105
|
-
if (abiItem.type === "constructor")
|
|
106
|
-
return `constructor(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
107
|
-
if (abiItem.type === "fallback")
|
|
108
|
-
return `fallback() external${abiItem.stateMutability === "payable" ? " payable" : ""}`;
|
|
109
|
-
return "receive() external payable";
|
|
110
|
-
}
|
|
111
|
-
const errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
112
|
-
function isErrorSignature(signature) {
|
|
113
|
-
return errorSignatureRegex.test(signature);
|
|
114
|
-
}
|
|
115
|
-
function execErrorSignature(signature) {
|
|
116
|
-
return execTyped(errorSignatureRegex, signature);
|
|
117
|
-
}
|
|
118
|
-
const eventSignatureRegex = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
119
|
-
function isEventSignature(signature) {
|
|
120
|
-
return eventSignatureRegex.test(signature);
|
|
121
|
-
}
|
|
122
|
-
function execEventSignature(signature) {
|
|
123
|
-
return execTyped(eventSignatureRegex, signature);
|
|
124
|
-
}
|
|
125
|
-
const functionSignatureRegex = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
|
|
126
|
-
function isFunctionSignature(signature) {
|
|
127
|
-
return functionSignatureRegex.test(signature);
|
|
128
|
-
}
|
|
129
|
-
function execFunctionSignature(signature) {
|
|
130
|
-
return execTyped(functionSignatureRegex, signature);
|
|
131
|
-
}
|
|
132
|
-
const structSignatureRegex = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
|
|
133
|
-
function isStructSignature(signature) {
|
|
134
|
-
return structSignatureRegex.test(signature);
|
|
135
|
-
}
|
|
136
|
-
function execStructSignature(signature) {
|
|
137
|
-
return execTyped(structSignatureRegex, signature);
|
|
138
|
-
}
|
|
139
|
-
const constructorSignatureRegex = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
|
|
140
|
-
function isConstructorSignature(signature) {
|
|
141
|
-
return constructorSignatureRegex.test(signature);
|
|
142
|
-
}
|
|
143
|
-
function execConstructorSignature(signature) {
|
|
144
|
-
return execTyped(constructorSignatureRegex, signature);
|
|
145
|
-
}
|
|
146
|
-
const fallbackSignatureRegex = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
|
|
147
|
-
function isFallbackSignature(signature) {
|
|
148
|
-
return fallbackSignatureRegex.test(signature);
|
|
149
|
-
}
|
|
150
|
-
function execFallbackSignature(signature) {
|
|
151
|
-
return execTyped(fallbackSignatureRegex, signature);
|
|
152
|
-
}
|
|
153
|
-
const receiveSignatureRegex = /^receive\(\) external payable$/;
|
|
154
|
-
function isReceiveSignature(signature) {
|
|
155
|
-
return receiveSignatureRegex.test(signature);
|
|
156
|
-
}
|
|
157
|
-
const modifiers = /* @__PURE__ */ new Set([
|
|
158
|
-
"memory",
|
|
159
|
-
"indexed",
|
|
160
|
-
"storage",
|
|
161
|
-
"calldata"
|
|
162
|
-
]);
|
|
163
|
-
const eventModifiers = /* @__PURE__ */ new Set(["indexed"]);
|
|
164
|
-
const functionModifiers = /* @__PURE__ */ new Set([
|
|
165
|
-
"calldata",
|
|
166
|
-
"memory",
|
|
167
|
-
"storage"
|
|
168
|
-
]);
|
|
169
|
-
class InvalidAbiItemError extends BaseError {
|
|
170
|
-
constructor({ signature }) {
|
|
171
|
-
super("Failed to parse ABI item.", {
|
|
172
|
-
details: `parseAbiItem(${JSON.stringify(signature, null, 2)})`,
|
|
173
|
-
docsPath: "/api/human#parseabiitem-1"
|
|
174
|
-
});
|
|
175
|
-
Object.defineProperty(this, "name", {
|
|
176
|
-
enumerable: true,
|
|
177
|
-
configurable: true,
|
|
178
|
-
writable: true,
|
|
179
|
-
value: "InvalidAbiItemError"
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
class UnknownTypeError extends BaseError {
|
|
184
|
-
constructor({ type }) {
|
|
185
|
-
super("Unknown type.", {
|
|
186
|
-
metaMessages: [
|
|
187
|
-
`Type "${type}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`
|
|
188
|
-
]
|
|
189
|
-
});
|
|
190
|
-
Object.defineProperty(this, "name", {
|
|
191
|
-
enumerable: true,
|
|
192
|
-
configurable: true,
|
|
193
|
-
writable: true,
|
|
194
|
-
value: "UnknownTypeError"
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
class UnknownSolidityTypeError extends BaseError {
|
|
199
|
-
constructor({ type }) {
|
|
200
|
-
super("Unknown type.", {
|
|
201
|
-
metaMessages: [`Type "${type}" is not a valid ABI type.`]
|
|
202
|
-
});
|
|
203
|
-
Object.defineProperty(this, "name", {
|
|
204
|
-
enumerable: true,
|
|
205
|
-
configurable: true,
|
|
206
|
-
writable: true,
|
|
207
|
-
value: "UnknownSolidityTypeError"
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
class InvalidAbiParametersError extends BaseError {
|
|
212
|
-
constructor({ params }) {
|
|
213
|
-
super("Failed to parse ABI parameters.", {
|
|
214
|
-
details: `parseAbiParameters(${JSON.stringify(params, null, 2)})`,
|
|
215
|
-
docsPath: "/api/human#parseabiparameters-1"
|
|
216
|
-
});
|
|
217
|
-
Object.defineProperty(this, "name", {
|
|
218
|
-
enumerable: true,
|
|
219
|
-
configurable: true,
|
|
220
|
-
writable: true,
|
|
221
|
-
value: "InvalidAbiParametersError"
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
class InvalidParameterError extends BaseError {
|
|
226
|
-
constructor({ param }) {
|
|
227
|
-
super("Invalid ABI parameter.", {
|
|
228
|
-
details: param
|
|
229
|
-
});
|
|
230
|
-
Object.defineProperty(this, "name", {
|
|
231
|
-
enumerable: true,
|
|
232
|
-
configurable: true,
|
|
233
|
-
writable: true,
|
|
234
|
-
value: "InvalidParameterError"
|
|
235
|
-
});
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
class SolidityProtectedKeywordError extends BaseError {
|
|
239
|
-
constructor({ param, name }) {
|
|
240
|
-
super("Invalid ABI parameter.", {
|
|
241
|
-
details: param,
|
|
242
|
-
metaMessages: [
|
|
243
|
-
`"${name}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
|
|
244
|
-
]
|
|
245
|
-
});
|
|
246
|
-
Object.defineProperty(this, "name", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
configurable: true,
|
|
249
|
-
writable: true,
|
|
250
|
-
value: "SolidityProtectedKeywordError"
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
class InvalidModifierError extends BaseError {
|
|
255
|
-
constructor({ param, type, modifier }) {
|
|
256
|
-
super("Invalid ABI parameter.", {
|
|
257
|
-
details: param,
|
|
258
|
-
metaMessages: [
|
|
259
|
-
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`
|
|
260
|
-
]
|
|
261
|
-
});
|
|
262
|
-
Object.defineProperty(this, "name", {
|
|
263
|
-
enumerable: true,
|
|
264
|
-
configurable: true,
|
|
265
|
-
writable: true,
|
|
266
|
-
value: "InvalidModifierError"
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
class InvalidFunctionModifierError extends BaseError {
|
|
271
|
-
constructor({ param, type, modifier }) {
|
|
272
|
-
super("Invalid ABI parameter.", {
|
|
273
|
-
details: param,
|
|
274
|
-
metaMessages: [
|
|
275
|
-
`Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`,
|
|
276
|
-
`Data location can only be specified for array, struct, or mapping types, but "${modifier}" was given.`
|
|
277
|
-
]
|
|
278
|
-
});
|
|
279
|
-
Object.defineProperty(this, "name", {
|
|
280
|
-
enumerable: true,
|
|
281
|
-
configurable: true,
|
|
282
|
-
writable: true,
|
|
283
|
-
value: "InvalidFunctionModifierError"
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
class InvalidAbiTypeParameterError extends BaseError {
|
|
288
|
-
constructor({ abiParameter }) {
|
|
289
|
-
super("Invalid ABI parameter.", {
|
|
290
|
-
details: JSON.stringify(abiParameter, null, 2),
|
|
291
|
-
metaMessages: ["ABI parameter type is invalid."]
|
|
292
|
-
});
|
|
293
|
-
Object.defineProperty(this, "name", {
|
|
294
|
-
enumerable: true,
|
|
295
|
-
configurable: true,
|
|
296
|
-
writable: true,
|
|
297
|
-
value: "InvalidAbiTypeParameterError"
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
class InvalidSignatureError extends BaseError {
|
|
302
|
-
constructor({ signature, type }) {
|
|
303
|
-
super(`Invalid ${type} signature.`, {
|
|
304
|
-
details: signature
|
|
305
|
-
});
|
|
306
|
-
Object.defineProperty(this, "name", {
|
|
307
|
-
enumerable: true,
|
|
308
|
-
configurable: true,
|
|
309
|
-
writable: true,
|
|
310
|
-
value: "InvalidSignatureError"
|
|
311
|
-
});
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
class UnknownSignatureError extends BaseError {
|
|
315
|
-
constructor({ signature }) {
|
|
316
|
-
super("Unknown signature.", {
|
|
317
|
-
details: signature
|
|
318
|
-
});
|
|
319
|
-
Object.defineProperty(this, "name", {
|
|
320
|
-
enumerable: true,
|
|
321
|
-
configurable: true,
|
|
322
|
-
writable: true,
|
|
323
|
-
value: "UnknownSignatureError"
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
class InvalidStructSignatureError extends BaseError {
|
|
328
|
-
constructor({ signature }) {
|
|
329
|
-
super("Invalid struct signature.", {
|
|
330
|
-
details: signature,
|
|
331
|
-
metaMessages: ["No properties exist."]
|
|
332
|
-
});
|
|
333
|
-
Object.defineProperty(this, "name", {
|
|
334
|
-
enumerable: true,
|
|
335
|
-
configurable: true,
|
|
336
|
-
writable: true,
|
|
337
|
-
value: "InvalidStructSignatureError"
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
class CircularReferenceError extends BaseError {
|
|
342
|
-
constructor({ type }) {
|
|
343
|
-
super("Circular reference detected.", {
|
|
344
|
-
metaMessages: [`Struct "${type}" is a circular reference.`]
|
|
345
|
-
});
|
|
346
|
-
Object.defineProperty(this, "name", {
|
|
347
|
-
enumerable: true,
|
|
348
|
-
configurable: true,
|
|
349
|
-
writable: true,
|
|
350
|
-
value: "CircularReferenceError"
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
class InvalidParenthesisError extends BaseError {
|
|
355
|
-
constructor({ current, depth }) {
|
|
356
|
-
super("Unbalanced parentheses.", {
|
|
357
|
-
metaMessages: [
|
|
358
|
-
`"${current.trim()}" has too many ${depth > 0 ? "opening" : "closing"} parentheses.`
|
|
359
|
-
],
|
|
360
|
-
details: `Depth "${depth}"`
|
|
361
|
-
});
|
|
362
|
-
Object.defineProperty(this, "name", {
|
|
363
|
-
enumerable: true,
|
|
364
|
-
configurable: true,
|
|
365
|
-
writable: true,
|
|
366
|
-
value: "InvalidParenthesisError"
|
|
367
|
-
});
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
function getParameterCacheKey(param, type, structs) {
|
|
371
|
-
let structKey = "";
|
|
372
|
-
if (structs)
|
|
373
|
-
for (const struct of Object.entries(structs)) {
|
|
374
|
-
if (!struct)
|
|
375
|
-
continue;
|
|
376
|
-
let propertyKey = "";
|
|
377
|
-
for (const property of struct[1]) {
|
|
378
|
-
propertyKey += `[${property.type}${property.name ? `:${property.name}` : ""}]`;
|
|
379
|
-
}
|
|
380
|
-
structKey += `(${struct[0]}{${propertyKey}})`;
|
|
381
|
-
}
|
|
382
|
-
if (type)
|
|
383
|
-
return `${type}:${param}${structKey}`;
|
|
384
|
-
return param;
|
|
385
|
-
}
|
|
386
|
-
const parameterCache = /* @__PURE__ */ new Map([
|
|
387
|
-
// Unnamed
|
|
388
|
-
["address", { type: "address" }],
|
|
389
|
-
["bool", { type: "bool" }],
|
|
390
|
-
["bytes", { type: "bytes" }],
|
|
391
|
-
["bytes32", { type: "bytes32" }],
|
|
392
|
-
["int", { type: "int256" }],
|
|
393
|
-
["int256", { type: "int256" }],
|
|
394
|
-
["string", { type: "string" }],
|
|
395
|
-
["uint", { type: "uint256" }],
|
|
396
|
-
["uint8", { type: "uint8" }],
|
|
397
|
-
["uint16", { type: "uint16" }],
|
|
398
|
-
["uint24", { type: "uint24" }],
|
|
399
|
-
["uint32", { type: "uint32" }],
|
|
400
|
-
["uint64", { type: "uint64" }],
|
|
401
|
-
["uint96", { type: "uint96" }],
|
|
402
|
-
["uint112", { type: "uint112" }],
|
|
403
|
-
["uint160", { type: "uint160" }],
|
|
404
|
-
["uint192", { type: "uint192" }],
|
|
405
|
-
["uint256", { type: "uint256" }],
|
|
406
|
-
// Named
|
|
407
|
-
["address owner", { type: "address", name: "owner" }],
|
|
408
|
-
["address to", { type: "address", name: "to" }],
|
|
409
|
-
["bool approved", { type: "bool", name: "approved" }],
|
|
410
|
-
["bytes _data", { type: "bytes", name: "_data" }],
|
|
411
|
-
["bytes data", { type: "bytes", name: "data" }],
|
|
412
|
-
["bytes signature", { type: "bytes", name: "signature" }],
|
|
413
|
-
["bytes32 hash", { type: "bytes32", name: "hash" }],
|
|
414
|
-
["bytes32 r", { type: "bytes32", name: "r" }],
|
|
415
|
-
["bytes32 root", { type: "bytes32", name: "root" }],
|
|
416
|
-
["bytes32 s", { type: "bytes32", name: "s" }],
|
|
417
|
-
["string name", { type: "string", name: "name" }],
|
|
418
|
-
["string symbol", { type: "string", name: "symbol" }],
|
|
419
|
-
["string tokenURI", { type: "string", name: "tokenURI" }],
|
|
420
|
-
["uint tokenId", { type: "uint256", name: "tokenId" }],
|
|
421
|
-
["uint8 v", { type: "uint8", name: "v" }],
|
|
422
|
-
["uint256 balance", { type: "uint256", name: "balance" }],
|
|
423
|
-
["uint256 tokenId", { type: "uint256", name: "tokenId" }],
|
|
424
|
-
["uint256 value", { type: "uint256", name: "value" }],
|
|
425
|
-
// Indexed
|
|
426
|
-
[
|
|
427
|
-
"event:address indexed from",
|
|
428
|
-
{ type: "address", name: "from", indexed: true }
|
|
429
|
-
],
|
|
430
|
-
["event:address indexed to", { type: "address", name: "to", indexed: true }],
|
|
431
|
-
[
|
|
432
|
-
"event:uint indexed tokenId",
|
|
433
|
-
{ type: "uint256", name: "tokenId", indexed: true }
|
|
434
|
-
],
|
|
435
|
-
[
|
|
436
|
-
"event:uint256 indexed tokenId",
|
|
437
|
-
{ type: "uint256", name: "tokenId", indexed: true }
|
|
438
|
-
]
|
|
439
|
-
]);
|
|
440
|
-
function parseSignature(signature, structs = {}) {
|
|
441
|
-
if (isFunctionSignature(signature))
|
|
442
|
-
return parseFunctionSignature(signature, structs);
|
|
443
|
-
if (isEventSignature(signature))
|
|
444
|
-
return parseEventSignature(signature, structs);
|
|
445
|
-
if (isErrorSignature(signature))
|
|
446
|
-
return parseErrorSignature(signature, structs);
|
|
447
|
-
if (isConstructorSignature(signature))
|
|
448
|
-
return parseConstructorSignature(signature, structs);
|
|
449
|
-
if (isFallbackSignature(signature))
|
|
450
|
-
return parseFallbackSignature(signature);
|
|
451
|
-
if (isReceiveSignature(signature))
|
|
452
|
-
return {
|
|
453
|
-
type: "receive",
|
|
454
|
-
stateMutability: "payable"
|
|
455
|
-
};
|
|
456
|
-
throw new UnknownSignatureError({ signature });
|
|
457
|
-
}
|
|
458
|
-
function parseFunctionSignature(signature, structs = {}) {
|
|
459
|
-
const match = execFunctionSignature(signature);
|
|
460
|
-
if (!match)
|
|
461
|
-
throw new InvalidSignatureError({ signature, type: "function" });
|
|
462
|
-
const inputParams = splitParameters(match.parameters);
|
|
463
|
-
const inputs = [];
|
|
464
|
-
const inputLength = inputParams.length;
|
|
465
|
-
for (let i = 0; i < inputLength; i++) {
|
|
466
|
-
inputs.push(parseAbiParameter(inputParams[i], {
|
|
467
|
-
modifiers: functionModifiers,
|
|
468
|
-
structs,
|
|
469
|
-
type: "function"
|
|
470
|
-
}));
|
|
471
|
-
}
|
|
472
|
-
const outputs = [];
|
|
473
|
-
if (match.returns) {
|
|
474
|
-
const outputParams = splitParameters(match.returns);
|
|
475
|
-
const outputLength = outputParams.length;
|
|
476
|
-
for (let i = 0; i < outputLength; i++) {
|
|
477
|
-
outputs.push(parseAbiParameter(outputParams[i], {
|
|
478
|
-
modifiers: functionModifiers,
|
|
479
|
-
structs,
|
|
480
|
-
type: "function"
|
|
481
|
-
}));
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
return {
|
|
485
|
-
name: match.name,
|
|
486
|
-
type: "function",
|
|
487
|
-
stateMutability: match.stateMutability ?? "nonpayable",
|
|
488
|
-
inputs,
|
|
489
|
-
outputs
|
|
490
|
-
};
|
|
491
|
-
}
|
|
492
|
-
function parseEventSignature(signature, structs = {}) {
|
|
493
|
-
const match = execEventSignature(signature);
|
|
494
|
-
if (!match)
|
|
495
|
-
throw new InvalidSignatureError({ signature, type: "event" });
|
|
496
|
-
const params = splitParameters(match.parameters);
|
|
497
|
-
const abiParameters = [];
|
|
498
|
-
const length = params.length;
|
|
499
|
-
for (let i = 0; i < length; i++)
|
|
500
|
-
abiParameters.push(parseAbiParameter(params[i], {
|
|
501
|
-
modifiers: eventModifiers,
|
|
502
|
-
structs,
|
|
503
|
-
type: "event"
|
|
504
|
-
}));
|
|
505
|
-
return { name: match.name, type: "event", inputs: abiParameters };
|
|
506
|
-
}
|
|
507
|
-
function parseErrorSignature(signature, structs = {}) {
|
|
508
|
-
const match = execErrorSignature(signature);
|
|
509
|
-
if (!match)
|
|
510
|
-
throw new InvalidSignatureError({ signature, type: "error" });
|
|
511
|
-
const params = splitParameters(match.parameters);
|
|
512
|
-
const abiParameters = [];
|
|
513
|
-
const length = params.length;
|
|
514
|
-
for (let i = 0; i < length; i++)
|
|
515
|
-
abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
|
|
516
|
-
return { name: match.name, type: "error", inputs: abiParameters };
|
|
517
|
-
}
|
|
518
|
-
function parseConstructorSignature(signature, structs = {}) {
|
|
519
|
-
const match = execConstructorSignature(signature);
|
|
520
|
-
if (!match)
|
|
521
|
-
throw new InvalidSignatureError({ signature, type: "constructor" });
|
|
522
|
-
const params = splitParameters(match.parameters);
|
|
523
|
-
const abiParameters = [];
|
|
524
|
-
const length = params.length;
|
|
525
|
-
for (let i = 0; i < length; i++)
|
|
526
|
-
abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
|
|
527
|
-
return {
|
|
528
|
-
type: "constructor",
|
|
529
|
-
stateMutability: match.stateMutability ?? "nonpayable",
|
|
530
|
-
inputs: abiParameters
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
function parseFallbackSignature(signature) {
|
|
534
|
-
const match = execFallbackSignature(signature);
|
|
535
|
-
if (!match)
|
|
536
|
-
throw new InvalidSignatureError({ signature, type: "fallback" });
|
|
537
|
-
return {
|
|
538
|
-
type: "fallback",
|
|
539
|
-
stateMutability: match.stateMutability ?? "nonpayable"
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
const abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
543
|
-
const abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
|
|
544
|
-
const dynamicIntegerRegex = /^u?int$/;
|
|
545
|
-
function parseAbiParameter(param, options) {
|
|
546
|
-
var _a, _b;
|
|
547
|
-
const parameterCacheKey = getParameterCacheKey(param, options == null ? void 0 : options.type, options == null ? void 0 : options.structs);
|
|
548
|
-
if (parameterCache.has(parameterCacheKey))
|
|
549
|
-
return parameterCache.get(parameterCacheKey);
|
|
550
|
-
const isTuple = isTupleRegex.test(param);
|
|
551
|
-
const match = execTyped(isTuple ? abiParameterWithTupleRegex : abiParameterWithoutTupleRegex, param);
|
|
552
|
-
if (!match)
|
|
553
|
-
throw new InvalidParameterError({ param });
|
|
554
|
-
if (match.name && isSolidityKeyword(match.name))
|
|
555
|
-
throw new SolidityProtectedKeywordError({ param, name: match.name });
|
|
556
|
-
const name = match.name ? { name: match.name } : {};
|
|
557
|
-
const indexed = match.modifier === "indexed" ? { indexed: true } : {};
|
|
558
|
-
const structs = (options == null ? void 0 : options.structs) ?? {};
|
|
559
|
-
let type;
|
|
560
|
-
let components = {};
|
|
561
|
-
if (isTuple) {
|
|
562
|
-
type = "tuple";
|
|
563
|
-
const params = splitParameters(match.type);
|
|
564
|
-
const components_ = [];
|
|
565
|
-
const length = params.length;
|
|
566
|
-
for (let i = 0; i < length; i++) {
|
|
567
|
-
components_.push(parseAbiParameter(params[i], { structs }));
|
|
568
|
-
}
|
|
569
|
-
components = { components: components_ };
|
|
570
|
-
} else if (match.type in structs) {
|
|
571
|
-
type = "tuple";
|
|
572
|
-
components = { components: structs[match.type] };
|
|
573
|
-
} else if (dynamicIntegerRegex.test(match.type)) {
|
|
574
|
-
type = `${match.type}256`;
|
|
575
|
-
} else if (match.type === "address payable") {
|
|
576
|
-
type = "address";
|
|
577
|
-
} else {
|
|
578
|
-
type = match.type;
|
|
579
|
-
if (!((options == null ? void 0 : options.type) === "struct") && !isSolidityType(type))
|
|
580
|
-
throw new UnknownSolidityTypeError({ type });
|
|
581
|
-
}
|
|
582
|
-
if (match.modifier) {
|
|
583
|
-
if (!((_b = (_a = options == null ? void 0 : options.modifiers) == null ? void 0 : _a.has) == null ? void 0 : _b.call(_a, match.modifier)))
|
|
584
|
-
throw new InvalidModifierError({
|
|
585
|
-
param,
|
|
586
|
-
type: options == null ? void 0 : options.type,
|
|
587
|
-
modifier: match.modifier
|
|
588
|
-
});
|
|
589
|
-
if (functionModifiers.has(match.modifier) && !isValidDataLocation(type, !!match.array))
|
|
590
|
-
throw new InvalidFunctionModifierError({
|
|
591
|
-
param,
|
|
592
|
-
type: options == null ? void 0 : options.type,
|
|
593
|
-
modifier: match.modifier
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
const abiParameter = {
|
|
597
|
-
type: `${type}${match.array ?? ""}`,
|
|
598
|
-
...name,
|
|
599
|
-
...indexed,
|
|
600
|
-
...components
|
|
601
|
-
};
|
|
602
|
-
parameterCache.set(parameterCacheKey, abiParameter);
|
|
603
|
-
return abiParameter;
|
|
604
|
-
}
|
|
605
|
-
function splitParameters(params, result = [], current = "", depth = 0) {
|
|
606
|
-
const length = params.trim().length;
|
|
607
|
-
for (let i = 0; i < length; i++) {
|
|
608
|
-
const char = params[i];
|
|
609
|
-
const tail = params.slice(i + 1);
|
|
610
|
-
switch (char) {
|
|
611
|
-
case ",":
|
|
612
|
-
return depth === 0 ? splitParameters(tail, [...result, current.trim()]) : splitParameters(tail, result, `${current}${char}`, depth);
|
|
613
|
-
case "(":
|
|
614
|
-
return splitParameters(tail, result, `${current}${char}`, depth + 1);
|
|
615
|
-
case ")":
|
|
616
|
-
return splitParameters(tail, result, `${current}${char}`, depth - 1);
|
|
617
|
-
default:
|
|
618
|
-
return splitParameters(tail, result, `${current}${char}`, depth);
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
if (current === "")
|
|
622
|
-
return result;
|
|
623
|
-
if (depth !== 0)
|
|
624
|
-
throw new InvalidParenthesisError({ current, depth });
|
|
625
|
-
result.push(current.trim());
|
|
626
|
-
return result;
|
|
627
|
-
}
|
|
628
|
-
function isSolidityType(type) {
|
|
629
|
-
return type === "address" || type === "bool" || type === "function" || type === "string" || bytesRegex.test(type) || integerRegex.test(type);
|
|
630
|
-
}
|
|
631
|
-
const protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
|
|
632
|
-
function isSolidityKeyword(name) {
|
|
633
|
-
return name === "address" || name === "bool" || name === "function" || name === "string" || name === "tuple" || bytesRegex.test(name) || integerRegex.test(name) || protectedKeywordsRegex.test(name);
|
|
634
|
-
}
|
|
635
|
-
function isValidDataLocation(type, isArray) {
|
|
636
|
-
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
637
|
-
}
|
|
638
|
-
function parseStructs(signatures) {
|
|
639
|
-
const shallowStructs = {};
|
|
640
|
-
const signaturesLength = signatures.length;
|
|
641
|
-
for (let i = 0; i < signaturesLength; i++) {
|
|
642
|
-
const signature = signatures[i];
|
|
643
|
-
if (!isStructSignature(signature))
|
|
644
|
-
continue;
|
|
645
|
-
const match = execStructSignature(signature);
|
|
646
|
-
if (!match)
|
|
647
|
-
throw new InvalidSignatureError({ signature, type: "struct" });
|
|
648
|
-
const properties = match.properties.split(";");
|
|
649
|
-
const components = [];
|
|
650
|
-
const propertiesLength = properties.length;
|
|
651
|
-
for (let k = 0; k < propertiesLength; k++) {
|
|
652
|
-
const property = properties[k];
|
|
653
|
-
const trimmed = property.trim();
|
|
654
|
-
if (!trimmed)
|
|
655
|
-
continue;
|
|
656
|
-
const abiParameter = parseAbiParameter(trimmed, {
|
|
657
|
-
type: "struct"
|
|
658
|
-
});
|
|
659
|
-
components.push(abiParameter);
|
|
660
|
-
}
|
|
661
|
-
if (!components.length)
|
|
662
|
-
throw new InvalidStructSignatureError({ signature });
|
|
663
|
-
shallowStructs[match.name] = components;
|
|
664
|
-
}
|
|
665
|
-
const resolvedStructs = {};
|
|
666
|
-
const entries = Object.entries(shallowStructs);
|
|
667
|
-
const entriesLength = entries.length;
|
|
668
|
-
for (let i = 0; i < entriesLength; i++) {
|
|
669
|
-
const [name, parameters] = entries[i];
|
|
670
|
-
resolvedStructs[name] = resolveStructs(parameters, shallowStructs);
|
|
671
|
-
}
|
|
672
|
-
return resolvedStructs;
|
|
673
|
-
}
|
|
674
|
-
const typeWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
|
|
675
|
-
function resolveStructs(abiParameters, structs, ancestors = /* @__PURE__ */ new Set()) {
|
|
676
|
-
const components = [];
|
|
677
|
-
const length = abiParameters.length;
|
|
678
|
-
for (let i = 0; i < length; i++) {
|
|
679
|
-
const abiParameter = abiParameters[i];
|
|
680
|
-
const isTuple = isTupleRegex.test(abiParameter.type);
|
|
681
|
-
if (isTuple)
|
|
682
|
-
components.push(abiParameter);
|
|
683
|
-
else {
|
|
684
|
-
const match = execTyped(typeWithoutTupleRegex, abiParameter.type);
|
|
685
|
-
if (!(match == null ? void 0 : match.type))
|
|
686
|
-
throw new InvalidAbiTypeParameterError({ abiParameter });
|
|
687
|
-
const { array, type } = match;
|
|
688
|
-
if (type in structs) {
|
|
689
|
-
if (ancestors.has(type))
|
|
690
|
-
throw new CircularReferenceError({ type });
|
|
691
|
-
components.push({
|
|
692
|
-
...abiParameter,
|
|
693
|
-
type: `tuple${array ?? ""}`,
|
|
694
|
-
components: resolveStructs(structs[type] ?? [], structs, /* @__PURE__ */ new Set([...ancestors, type]))
|
|
695
|
-
});
|
|
696
|
-
} else {
|
|
697
|
-
if (isSolidityType(type))
|
|
698
|
-
components.push(abiParameter);
|
|
699
|
-
else
|
|
700
|
-
throw new UnknownTypeError({ type });
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
return components;
|
|
705
|
-
}
|
|
706
|
-
function parseAbiItem(signature) {
|
|
707
|
-
let abiItem;
|
|
708
|
-
if (typeof signature === "string")
|
|
709
|
-
abiItem = parseSignature(signature);
|
|
710
|
-
else {
|
|
711
|
-
const structs = parseStructs(signature);
|
|
712
|
-
const length = signature.length;
|
|
713
|
-
for (let i = 0; i < length; i++) {
|
|
714
|
-
const signature_ = signature[i];
|
|
715
|
-
if (isStructSignature(signature_))
|
|
716
|
-
continue;
|
|
717
|
-
abiItem = parseSignature(signature_, structs);
|
|
718
|
-
break;
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
if (!abiItem)
|
|
722
|
-
throw new InvalidAbiItemError({ signature });
|
|
723
|
-
return abiItem;
|
|
724
|
-
}
|
|
725
|
-
function parseAbiParameters(params) {
|
|
726
|
-
const abiParameters = [];
|
|
727
|
-
if (typeof params === "string") {
|
|
728
|
-
const parameters = splitParameters(params);
|
|
729
|
-
const length = parameters.length;
|
|
730
|
-
for (let i = 0; i < length; i++) {
|
|
731
|
-
abiParameters.push(parseAbiParameter(parameters[i], { modifiers }));
|
|
732
|
-
}
|
|
733
|
-
} else {
|
|
734
|
-
const structs = parseStructs(params);
|
|
735
|
-
const length = params.length;
|
|
736
|
-
for (let i = 0; i < length; i++) {
|
|
737
|
-
const signature = params[i];
|
|
738
|
-
if (isStructSignature(signature))
|
|
739
|
-
continue;
|
|
740
|
-
const parameters = splitParameters(signature);
|
|
741
|
-
const length2 = parameters.length;
|
|
742
|
-
for (let k = 0; k < length2; k++) {
|
|
743
|
-
abiParameters.push(parseAbiParameter(parameters[k], { modifiers, structs }));
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
if (abiParameters.length === 0)
|
|
748
|
-
throw new InvalidAbiParametersError({ params });
|
|
749
|
-
return abiParameters;
|
|
750
|
-
}
|
|
751
|
-
export {
|
|
752
|
-
parseAbiItem as a,
|
|
753
|
-
formatAbiItem as b,
|
|
754
|
-
formatAbiParameters as f,
|
|
755
|
-
parseAbiParameters as p
|
|
756
|
-
};
|
|
757
|
-
//# sourceMappingURL=parseAbiParameters-DfJcIE_w.js.map
|