tenjin-cli 0.1.0-alpha.30 → 0.1.0-alpha.32
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/README.md +65 -116
- package/dist/{_esm-CE7KNONL.js → _esm-RLLC72MS.js} +127 -131
- package/dist/alive-MROUMFH3.js +38 -0
- package/dist/auto-update-OPWMRZLS.js +22 -0
- package/dist/{ccip-7RMRLAGV.js → ccip-DHDFKTQV.js} +2 -2
- package/dist/chunk-2GNOFONN.js +560 -0
- package/dist/chunk-2GNOFONN.js.map +1 -0
- package/dist/{chunk-TTNESUPQ.js → chunk-2GP3HRYK.js} +2120 -193
- package/dist/chunk-2GP3HRYK.js.map +1 -0
- package/dist/chunk-3623BLPV.js +184 -0
- package/dist/chunk-3623BLPV.js.map +1 -0
- package/dist/chunk-3AIHRXKO.js +72 -0
- package/dist/chunk-3AIHRXKO.js.map +1 -0
- package/dist/chunk-3DIL66VX.js +120 -0
- package/dist/chunk-3DIL66VX.js.map +1 -0
- package/dist/{chunk-S4SAZ7OD.js → chunk-3FMZGI7I.js} +12 -2
- package/dist/{chunk-S4SAZ7OD.js.map → chunk-3FMZGI7I.js.map} +1 -1
- package/dist/chunk-3UCIG4TG.js +65 -0
- package/dist/chunk-3UCIG4TG.js.map +1 -0
- package/dist/{chunk-LFZJM56J.js → chunk-445VQTVM.js} +3 -3
- package/dist/{chunk-A36LQPHV.js → chunk-4LMUQMBH.js} +1 -1
- package/dist/{chunk-A36LQPHV.js.map → chunk-4LMUQMBH.js.map} +1 -1
- package/dist/{chunk-RAULEAZ6.js → chunk-4USCZ2NI.js} +3 -3
- package/dist/chunk-62KNUYWD.js +111 -0
- package/dist/chunk-62KNUYWD.js.map +1 -0
- package/dist/{chunk-POUWHWID.js → chunk-6CMM6YCB.js} +3 -3
- package/dist/{chunk-POUWHWID.js.map → chunk-6CMM6YCB.js.map} +1 -1
- package/dist/chunk-7WEQQJLG.js +68 -0
- package/dist/chunk-7WEQQJLG.js.map +1 -0
- package/dist/{chunk-3O2BQIF6.js → chunk-AD226HDR.js} +344 -534
- package/dist/chunk-AD226HDR.js.map +1 -0
- package/dist/chunk-ADV4LDTB.js +106 -0
- package/dist/chunk-ADV4LDTB.js.map +1 -0
- package/dist/{chunk-AWFUPKTM.js → chunk-AV5NZMYO.js} +15 -7
- package/dist/{chunk-AWFUPKTM.js.map → chunk-AV5NZMYO.js.map} +1 -1
- package/dist/chunk-B7EM4GGF.js +198 -0
- package/dist/chunk-B7EM4GGF.js.map +1 -0
- package/dist/chunk-BFDQ4WNW.js +119 -0
- package/dist/chunk-BFDQ4WNW.js.map +1 -0
- package/dist/{chunk-OSYTBCUC.js → chunk-BI673VEJ.js} +531 -503
- package/dist/chunk-BI673VEJ.js.map +1 -0
- package/dist/chunk-CEXSOI5R.js +808 -0
- package/dist/chunk-CEXSOI5R.js.map +1 -0
- package/dist/{chunk-OK2TDZQU.js → chunk-CISYM4EO.js} +9 -7
- package/dist/chunk-CISYM4EO.js.map +1 -0
- package/dist/{chunk-VFMQTSXG.js → chunk-D3ZURCG7.js} +3 -3
- package/dist/chunk-D5TOQSO4.js +474 -0
- package/dist/chunk-D5TOQSO4.js.map +1 -0
- package/dist/{chunk-P7LABKCW.js → chunk-DOQGNFHM.js} +33 -2
- package/dist/{chunk-P7LABKCW.js.map → chunk-DOQGNFHM.js.map} +1 -1
- package/dist/{chunk-QUVVWYJW.js → chunk-DRDUIZIA.js} +11 -9
- package/dist/{chunk-QUVVWYJW.js.map → chunk-DRDUIZIA.js.map} +1 -1
- package/dist/{chunk-O2FRQ2L2.js → chunk-DW4YTVR3.js} +5 -65
- package/dist/chunk-DW4YTVR3.js.map +1 -0
- package/dist/chunk-E7LGOMH6.js +449 -0
- package/dist/chunk-E7LGOMH6.js.map +1 -0
- package/dist/chunk-E7SW44LM.js +138 -0
- package/dist/chunk-E7SW44LM.js.map +1 -0
- package/dist/chunk-EDJWHDDL.js +33 -0
- package/dist/chunk-EDJWHDDL.js.map +1 -0
- package/dist/chunk-F3ED5WTR.js +13 -0
- package/dist/chunk-F3ED5WTR.js.map +1 -0
- package/dist/chunk-G75OPGAK.js +111 -0
- package/dist/chunk-G75OPGAK.js.map +1 -0
- package/dist/{chunk-YFQOA5AU.js → chunk-GAKUQHKA.js} +13 -17
- package/dist/{chunk-YFQOA5AU.js.map → chunk-GAKUQHKA.js.map} +1 -1
- package/dist/{chunk-PAYV4XUA.js → chunk-HDPUXS3Z.js} +20 -49
- package/dist/chunk-HDPUXS3Z.js.map +1 -0
- package/dist/{chunk-ORWL5BSN.js → chunk-HGZEPQUT.js} +2 -2
- package/dist/{chunk-HPWO4O6S.js → chunk-HREHWL32.js} +4 -4
- package/dist/{chunk-HPWO4O6S.js.map → chunk-HREHWL32.js.map} +1 -1
- package/dist/{chunk-VZGAONSJ.js → chunk-I5TDIUKM.js} +16 -35
- package/dist/chunk-I5TDIUKM.js.map +1 -0
- package/dist/{chunk-7QKHZQKW.js → chunk-IADZOXKN.js} +39 -6
- package/dist/chunk-IADZOXKN.js.map +1 -0
- package/dist/{chunk-U6YQ6FRI.js → chunk-IDTRSAHE.js} +32 -12
- package/dist/chunk-IDTRSAHE.js.map +1 -0
- package/dist/{chunk-SPAVAYSW.js → chunk-JEVQ5LKO.js} +7 -5
- package/dist/{chunk-SPAVAYSW.js.map → chunk-JEVQ5LKO.js.map} +1 -1
- package/dist/{chunk-EBVIKMCH.js → chunk-JKKAIPTU.js} +2 -2
- package/dist/chunk-JNJWBTU2.js +3497 -0
- package/dist/chunk-JNJWBTU2.js.map +1 -0
- package/dist/{chunk-TTBKWWTV.js → chunk-JRZBBPO6.js} +390 -146
- package/dist/chunk-JRZBBPO6.js.map +1 -0
- package/dist/{chunk-WVUSXNIE.js → chunk-MPZUYCAP.js} +9 -2
- package/dist/{chunk-WVUSXNIE.js.map → chunk-MPZUYCAP.js.map} +1 -1
- package/dist/{chunk-SJLTEINJ.js → chunk-OJNTCYQQ.js} +17 -1
- package/dist/chunk-OJNTCYQQ.js.map +1 -0
- package/dist/{chunk-IOODYAXL.js → chunk-OTWLERSW.js} +25 -6
- package/dist/chunk-OTWLERSW.js.map +1 -0
- package/dist/{chunk-AWQPGIR6.js → chunk-PJNENX2A.js} +1535 -422
- package/dist/chunk-PJNENX2A.js.map +1 -0
- package/dist/{chunk-KHE6L6TD.js → chunk-PKHI276N.js} +97 -11
- package/dist/chunk-PKHI276N.js.map +1 -0
- package/dist/{chunk-YHKXNYTB.js → chunk-QF3LSMGS.js} +2 -2
- package/dist/chunk-QXP3Z3JN.js +131 -0
- package/dist/chunk-QXP3Z3JN.js.map +1 -0
- package/dist/{chunk-XZKD7DIF.js → chunk-RL5UUDT4.js} +3 -3
- package/dist/{chunk-XZKD7DIF.js.map → chunk-RL5UUDT4.js.map} +1 -1
- package/dist/chunk-SFASB5FL.js +69 -0
- package/dist/chunk-SFASB5FL.js.map +1 -0
- package/dist/{chunk-WO5BJNIB.js → chunk-SNNSAGMT.js} +7273 -2741
- package/dist/chunk-SNNSAGMT.js.map +1 -0
- package/dist/{chunk-NZIP4PA2.js → chunk-SO3XRZPX.js} +3 -3
- package/dist/chunk-SYOS5CAC.js +176 -0
- package/dist/chunk-SYOS5CAC.js.map +1 -0
- package/dist/chunk-TAW4UFFF.js +293 -0
- package/dist/chunk-TAW4UFFF.js.map +1 -0
- package/dist/chunk-TF5HCP33.js +271 -0
- package/dist/chunk-TF5HCP33.js.map +1 -0
- package/dist/{chunk-AKWGE6JQ.js → chunk-UUGOUOVT.js} +37 -2
- package/dist/chunk-UUGOUOVT.js.map +1 -0
- package/dist/{chunk-AEG2PXBP.js → chunk-V2LQLN5H.js} +7 -7
- package/dist/{chunk-KYFZTGMC.js → chunk-VJUVFZ2D.js} +5 -3
- package/dist/{chunk-KYFZTGMC.js.map → chunk-VJUVFZ2D.js.map} +1 -1
- package/dist/{chunk-JMM6YE7J.js → chunk-VOZA6O7K.js} +708 -709
- package/dist/chunk-VOZA6O7K.js.map +1 -0
- package/dist/{chunk-5LJCEMFD.js → chunk-VUGQTZ2L.js} +209 -77
- package/dist/chunk-VUGQTZ2L.js.map +1 -0
- package/dist/chunk-WOM257PW.js +393 -0
- package/dist/chunk-WOM257PW.js.map +1 -0
- package/dist/chunk-WYXUQGOL.js +191 -0
- package/dist/chunk-WYXUQGOL.js.map +1 -0
- package/dist/chunk-X5ZBP3IY.js +97 -0
- package/dist/chunk-X5ZBP3IY.js.map +1 -0
- package/dist/chunk-XQJXNMSB.js +23 -0
- package/dist/chunk-XQJXNMSB.js.map +1 -0
- package/dist/chunk-Y527D4TV.js +56 -0
- package/dist/chunk-Y527D4TV.js.map +1 -0
- package/dist/{chunk-VUFAK2LW.js → chunk-YUY4SAGM.js} +17 -2
- package/dist/chunk-YUY4SAGM.js.map +1 -0
- package/dist/clack-EZ7TDWQU.js +19 -0
- package/dist/claude-cli-2YKABJJZ.js +31 -0
- package/dist/{cli-O5SN7ZJ4.js → cli-FB4LOA5A.js} +221 -68
- package/dist/{cli-O5SN7ZJ4.js.map → cli-FB4LOA5A.js.map} +1 -1
- package/dist/codex-event-TYVES3UX.js +16 -0
- package/dist/codex-host-WW4H2SKT.js +29 -0
- package/dist/codex-install-2C623HPW.js +393 -0
- package/dist/codex-install-2C623HPW.js.map +1 -0
- package/dist/{config-OJQI27LT.js → config-HOVJFEKD.js} +25 -15
- package/dist/doctor-NKU4V5OV.js +1312 -0
- package/dist/doctor-NKU4V5OV.js.map +1 -0
- package/dist/{env-proxy-XL4P73MZ.js → env-proxy-R6ZMLQTT.js} +6 -2
- package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js → ethersCompat-Df4a6QIZ-X6YZWAML.js} +3 -3
- package/dist/{fund-WEV6DMTD.js → fund-WEBHTZGN.js} +38 -30
- package/dist/{fund-WEV6DMTD.js.map → fund-WEBHTZGN.js.map} +1 -1
- package/dist/hook-command-ZA2PNKS6.js +44 -0
- package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +3 -2
- package/dist/hosts/claude/tenjin/hooks/hooks.json +4 -1
- package/dist/hosts/claude/tenjin/hooks/register.tsx +589 -0
- package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +82 -0
- package/dist/hosts/claude/tenjin/types/index.d.ts +41 -0
- package/dist/hosts/codex/.agents/plugins/marketplace.json +20 -0
- package/dist/hosts/codex/tenjin/.codex-plugin/plugin.json +16 -0
- package/dist/hosts/codex/tenjin/.mcp.json +15 -0
- package/dist/hosts/codex/tenjin/hooks/hooks.json +98 -0
- package/dist/hosts-AV5MHBAU.js +38 -0
- package/dist/index.js +28 -8
- package/dist/index.js.map +1 -1
- package/dist/install-PT4EZS4R.js +100 -0
- package/dist/{install-identity-WHPNMNMQ.js → install-identity-5A4OE6YC.js} +13 -8
- package/dist/install-wallet-SAAPKB73.js +281 -0
- package/dist/install-wallet-SAAPKB73.js.map +1 -0
- package/dist/{mcp-QML7ZMPH.js → mcp-HAWKCTPQ.js} +909 -208
- package/dist/mcp-HAWKCTPQ.js.map +1 -0
- package/dist/{mine.wasm-6PIT3DK6.js → mine.wasm-QFAHIFPY.js} +2 -2
- package/dist/{mine.wasm-6PIT3DK6.js.map → mine.wasm-QFAHIFPY.js.map} +1 -1
- package/dist/{package-LGKYOEPV.js → package-SR2WB6MK.js} +4 -2
- package/dist/passphrase-IFTDS3CU.js +44 -0
- package/dist/{paths-POPTXJO6.js → paths-XCSAKISU.js} +10 -2
- package/dist/pay-OXC3WKYV.js +55 -0
- package/dist/pay-OXC3WKYV.js.map +1 -0
- package/dist/{payments-C44QUFXU.js → payments-3KHMP2MG.js} +18 -13
- package/dist/{payments-C44QUFXU.js.map → payments-3KHMP2MG.js.map} +1 -1
- package/dist/plugin-registration-N3GRIZVM.js +67 -0
- package/dist/plugin-registration-N3GRIZVM.js.map +1 -0
- package/dist/{redact-6W23GGJC.js → redact-D7ASVWKL.js} +2 -2
- package/dist/redact-D7ASVWKL.js.map +1 -0
- package/dist/runtime-UVNUA3AS.js +1203 -0
- package/dist/runtime-UVNUA3AS.js.map +1 -0
- package/dist/runtime-fetch-EKFRNR6Z.js +20 -0
- package/dist/runtime-fetch-EKFRNR6Z.js.map +1 -0
- package/dist/runtime-layout-BDWZG2TQ.js +25 -0
- package/dist/runtime-layout-BDWZG2TQ.js.map +1 -0
- package/dist/{send-KVJX4XIR.js → send-HMKJLT34.js} +26 -18
- package/dist/{send-KVJX4XIR.js.map → send-HMKJLT34.js.map} +1 -1
- package/dist/{status-S7C3WMSH.js → status-RWXIIWYS.js} +57 -22
- package/dist/status-RWXIIWYS.js.map +1 -0
- package/dist/{status-line-YR2T5HC4.js → status-line-77XYZP7E.js} +13 -8
- package/dist/{status-line-YR2T5HC4.js.map → status-line-77XYZP7E.js.map} +1 -1
- package/dist/uninstall-D5G67UJH.js +480 -0
- package/dist/uninstall-D5G67UJH.js.map +1 -0
- package/dist/update-LRNOEGSB.js +53 -0
- package/dist/update-LRNOEGSB.js.map +1 -0
- package/dist/{usdc-JK4RRFFQ.js → usdc-D6X7EIQ2.js} +7 -8
- package/dist/usdc-D6X7EIQ2.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-X2VY6CY3.js → viemAdapter-By13KInL-RL742ETX.js} +3 -3
- package/dist/viemAdapter-By13KInL-RL742ETX.js.map +1 -0
- package/dist/wallet-XFYC27BR.js +55 -0
- package/dist/wallet-XFYC27BR.js.map +1 -0
- package/dist/wallet-kdf-worker.mjs +8 -8
- package/docs/agent-permissions.md +56 -22
- package/docs/safety-model.md +1 -1
- package/docs/troubleshooting.md +72 -1
- package/package.json +14 -1
- package/dist/alive-3J3CHOQP.js +0 -21
- package/dist/ccip-NLCSCHKI.js +0 -19
- package/dist/chunk-3O2BQIF6.js.map +0 -1
- package/dist/chunk-5IEP5EGE.js +0 -5332
- package/dist/chunk-5IEP5EGE.js.map +0 -1
- package/dist/chunk-5LJCEMFD.js.map +0 -1
- package/dist/chunk-6W5GYG3W.js +0 -128
- package/dist/chunk-6W5GYG3W.js.map +0 -1
- package/dist/chunk-7EKYXMUO.js +0 -7536
- package/dist/chunk-7EKYXMUO.js.map +0 -1
- package/dist/chunk-7QKHZQKW.js.map +0 -1
- package/dist/chunk-AKWGE6JQ.js.map +0 -1
- package/dist/chunk-AWQPGIR6.js.map +0 -1
- package/dist/chunk-EGELTSPU.js +0 -2865
- package/dist/chunk-EGELTSPU.js.map +0 -1
- package/dist/chunk-EL56RW2J.js +0 -7611
- package/dist/chunk-EL56RW2J.js.map +0 -1
- package/dist/chunk-HE2MS4QO.js +0 -256
- package/dist/chunk-HE2MS4QO.js.map +0 -1
- package/dist/chunk-IOODYAXL.js.map +0 -1
- package/dist/chunk-JMM6YE7J.js.map +0 -1
- package/dist/chunk-KHE6L6TD.js.map +0 -1
- package/dist/chunk-N35E6CM2.js +0 -1185
- package/dist/chunk-N35E6CM2.js.map +0 -1
- package/dist/chunk-O2FRQ2L2.js.map +0 -1
- package/dist/chunk-OK2TDZQU.js.map +0 -1
- package/dist/chunk-OSYTBCUC.js.map +0 -1
- package/dist/chunk-PAYV4XUA.js.map +0 -1
- package/dist/chunk-SJLTEINJ.js.map +0 -1
- package/dist/chunk-TTBKWWTV.js.map +0 -1
- package/dist/chunk-TTNESUPQ.js.map +0 -1
- package/dist/chunk-U6YQ6FRI.js.map +0 -1
- package/dist/chunk-VUFAK2LW.js.map +0 -1
- package/dist/chunk-VZGAONSJ.js.map +0 -1
- package/dist/chunk-WO5BJNIB.js.map +0 -1
- package/dist/doctor-IQQJHGGM.js +0 -590
- package/dist/doctor-IQQJHGGM.js.map +0 -1
- package/dist/hook-command-D2P3ILRV.js +0 -32
- package/dist/install-TUCRF32I.js +0 -60
- package/dist/install-wallet-MA27FTQ5.js +0 -113
- package/dist/install-wallet-MA27FTQ5.js.map +0 -1
- package/dist/mcp-QML7ZMPH.js.map +0 -1
- package/dist/pay-2C2UBBXJ.js +0 -51
- package/dist/status-S7C3WMSH.js.map +0 -1
- package/dist/uninstall-HY6LKIIT.js +0 -149
- package/dist/uninstall-HY6LKIIT.js.map +0 -1
- package/dist/update-OJV22LR3.js +0 -36
- package/dist/wallet-PD2IMZDU.js +0 -39
- /package/dist/{_esm-CE7KNONL.js.map → _esm-RLLC72MS.js.map} +0 -0
- /package/dist/{alive-3J3CHOQP.js.map → alive-MROUMFH3.js.map} +0 -0
- /package/dist/{ccip-7RMRLAGV.js.map → auto-update-OPWMRZLS.js.map} +0 -0
- /package/dist/{ccip-NLCSCHKI.js.map → ccip-DHDFKTQV.js.map} +0 -0
- /package/dist/{chunk-LFZJM56J.js.map → chunk-445VQTVM.js.map} +0 -0
- /package/dist/{chunk-RAULEAZ6.js.map → chunk-4USCZ2NI.js.map} +0 -0
- /package/dist/{chunk-VFMQTSXG.js.map → chunk-D3ZURCG7.js.map} +0 -0
- /package/dist/{chunk-ORWL5BSN.js.map → chunk-HGZEPQUT.js.map} +0 -0
- /package/dist/{chunk-EBVIKMCH.js.map → chunk-JKKAIPTU.js.map} +0 -0
- /package/dist/{chunk-YHKXNYTB.js.map → chunk-QF3LSMGS.js.map} +0 -0
- /package/dist/{chunk-NZIP4PA2.js.map → chunk-SO3XRZPX.js.map} +0 -0
- /package/dist/{chunk-AEG2PXBP.js.map → chunk-V2LQLN5H.js.map} +0 -0
- /package/dist/{config-OJQI27LT.js.map → clack-EZ7TDWQU.js.map} +0 -0
- /package/dist/{env-proxy-XL4P73MZ.js.map → claude-cli-2YKABJJZ.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js.map → codex-event-TYVES3UX.js.map} +0 -0
- /package/dist/{hook-command-D2P3ILRV.js.map → codex-host-WW4H2SKT.js.map} +0 -0
- /package/dist/{install-TUCRF32I.js.map → config-HOVJFEKD.js.map} +0 -0
- /package/dist/{install-identity-WHPNMNMQ.js.map → env-proxy-R6ZMLQTT.js.map} +0 -0
- /package/dist/{package-LGKYOEPV.js.map → ethersCompat-Df4a6QIZ-X6YZWAML.js.map} +0 -0
- /package/dist/{paths-POPTXJO6.js.map → hook-command-ZA2PNKS6.js.map} +0 -0
- /package/dist/{pay-2C2UBBXJ.js.map → hosts-AV5MHBAU.js.map} +0 -0
- /package/dist/{redact-6W23GGJC.js.map → install-PT4EZS4R.js.map} +0 -0
- /package/dist/{update-OJV22LR3.js.map → install-identity-5A4OE6YC.js.map} +0 -0
- /package/dist/{usdc-JK4RRFFQ.js.map → package-SR2WB6MK.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-X2VY6CY3.js.map → passphrase-IFTDS3CU.js.map} +0 -0
- /package/dist/{wallet-PD2IMZDU.js.map → paths-XCSAKISU.js.map} +0 -0
|
@@ -2,11 +2,14 @@ import { createRequire as __tenjinCreateRequire } from 'node:module'; const requ
|
|
|
2
2
|
import {
|
|
3
3
|
keccak_256
|
|
4
4
|
} from "./chunk-KG3D7FIF.js";
|
|
5
|
+
import {
|
|
6
|
+
equalBytes
|
|
7
|
+
} from "./chunk-RBJPAZFI.js";
|
|
5
8
|
|
|
6
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
9
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/version.js
|
|
7
10
|
var version = "1.2.3";
|
|
8
11
|
|
|
9
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
12
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/errors.js
|
|
10
13
|
var BaseError = class _BaseError extends Error {
|
|
11
14
|
constructor(shortMessage, args = {}) {
|
|
12
15
|
const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
|
|
@@ -59,7 +62,7 @@ var BaseError = class _BaseError extends Error {
|
|
|
59
62
|
}
|
|
60
63
|
};
|
|
61
64
|
|
|
62
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
65
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/regex.js
|
|
63
66
|
function execTyped(regex, string) {
|
|
64
67
|
const match = regex.exec(string);
|
|
65
68
|
return match?.groups;
|
|
@@ -68,7 +71,7 @@ var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
|
68
71
|
var 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)?$/;
|
|
69
72
|
var isTupleRegex = /^\(.+?\).*?$/;
|
|
70
73
|
|
|
71
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
74
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
|
|
72
75
|
var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
|
|
73
76
|
function formatAbiParameter(abiParameter) {
|
|
74
77
|
let type = abiParameter.type;
|
|
@@ -95,7 +98,7 @@ function formatAbiParameter(abiParameter) {
|
|
|
95
98
|
return type;
|
|
96
99
|
}
|
|
97
100
|
|
|
98
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
101
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
|
|
99
102
|
function formatAbiParameters(abiParameters) {
|
|
100
103
|
let params = "";
|
|
101
104
|
const length = abiParameters.length;
|
|
@@ -108,7 +111,7 @@ function formatAbiParameters(abiParameters) {
|
|
|
108
111
|
return params;
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
114
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
|
|
112
115
|
function formatAbiItem(abiItem) {
|
|
113
116
|
if (abiItem.type === "function")
|
|
114
117
|
return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
|
|
@@ -123,7 +126,7 @@ function formatAbiItem(abiItem) {
|
|
|
123
126
|
return "receive() external payable";
|
|
124
127
|
}
|
|
125
128
|
|
|
126
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
129
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
|
|
127
130
|
var errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
|
|
128
131
|
function isErrorSignature(signature) {
|
|
129
132
|
return errorSignatureRegex.test(signature);
|
|
@@ -183,7 +186,7 @@ var functionModifiers = /* @__PURE__ */ new Set([
|
|
|
183
186
|
"storage"
|
|
184
187
|
]);
|
|
185
188
|
|
|
186
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
189
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
|
|
187
190
|
var InvalidAbiItemError = class extends BaseError {
|
|
188
191
|
constructor({ signature }) {
|
|
189
192
|
super("Failed to parse ABI item.", {
|
|
@@ -227,7 +230,21 @@ var UnknownSolidityTypeError = class extends BaseError {
|
|
|
227
230
|
}
|
|
228
231
|
};
|
|
229
232
|
|
|
230
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
233
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
|
|
234
|
+
var InvalidAbiParameterError = class extends BaseError {
|
|
235
|
+
constructor({ param }) {
|
|
236
|
+
super("Failed to parse ABI parameter.", {
|
|
237
|
+
details: `parseAbiParameter(${JSON.stringify(param, null, 2)})`,
|
|
238
|
+
docsPath: "/api/human#parseabiparameter-1"
|
|
239
|
+
});
|
|
240
|
+
Object.defineProperty(this, "name", {
|
|
241
|
+
enumerable: true,
|
|
242
|
+
configurable: true,
|
|
243
|
+
writable: true,
|
|
244
|
+
value: "InvalidAbiParameterError"
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
};
|
|
231
248
|
var InvalidAbiParametersError = class extends BaseError {
|
|
232
249
|
constructor({ params }) {
|
|
233
250
|
super("Failed to parse ABI parameters.", {
|
|
@@ -319,7 +336,7 @@ var InvalidAbiTypeParameterError = class extends BaseError {
|
|
|
319
336
|
}
|
|
320
337
|
};
|
|
321
338
|
|
|
322
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
339
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/errors/signature.js
|
|
323
340
|
var InvalidSignatureError = class extends BaseError {
|
|
324
341
|
constructor({ signature, type }) {
|
|
325
342
|
super(`Invalid ${type} signature.`, {
|
|
@@ -361,7 +378,7 @@ var InvalidStructSignatureError = class extends BaseError {
|
|
|
361
378
|
}
|
|
362
379
|
};
|
|
363
380
|
|
|
364
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
381
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/errors/struct.js
|
|
365
382
|
var CircularReferenceError = class extends BaseError {
|
|
366
383
|
constructor({ type }) {
|
|
367
384
|
super("Circular reference detected.", {
|
|
@@ -376,7 +393,7 @@ var CircularReferenceError = class extends BaseError {
|
|
|
376
393
|
}
|
|
377
394
|
};
|
|
378
395
|
|
|
379
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
396
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
|
|
380
397
|
var InvalidParenthesisError = class extends BaseError {
|
|
381
398
|
constructor({ current, depth }) {
|
|
382
399
|
super("Unbalanced parentheses.", {
|
|
@@ -394,7 +411,7 @@ var InvalidParenthesisError = class extends BaseError {
|
|
|
394
411
|
}
|
|
395
412
|
};
|
|
396
413
|
|
|
397
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
414
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
|
|
398
415
|
function getParameterCacheKey(param, type, structs) {
|
|
399
416
|
let structKey = "";
|
|
400
417
|
if (structs)
|
|
@@ -466,7 +483,7 @@ var parameterCache = /* @__PURE__ */ new Map([
|
|
|
466
483
|
]
|
|
467
484
|
]);
|
|
468
485
|
|
|
469
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
486
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
|
|
470
487
|
function parseSignature(signature, structs = {}) {
|
|
471
488
|
if (isFunctionSignature(signature))
|
|
472
489
|
return parseFunctionSignature(signature, structs);
|
|
@@ -665,7 +682,7 @@ function isValidDataLocation(type, isArray) {
|
|
|
665
682
|
return isArray || type === "bytes" || type === "string" || type === "tuple";
|
|
666
683
|
}
|
|
667
684
|
|
|
668
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
685
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
|
|
669
686
|
function parseStructs(signatures) {
|
|
670
687
|
const shallowStructs = {};
|
|
671
688
|
const signaturesLength = signatures.length;
|
|
@@ -735,7 +752,7 @@ function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE
|
|
|
735
752
|
return components;
|
|
736
753
|
}
|
|
737
754
|
|
|
738
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
755
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/parseAbi.js
|
|
739
756
|
function parseAbi(signatures) {
|
|
740
757
|
const structs = parseStructs(signatures);
|
|
741
758
|
const abi = [];
|
|
@@ -749,7 +766,7 @@ function parseAbi(signatures) {
|
|
|
749
766
|
return abi;
|
|
750
767
|
}
|
|
751
768
|
|
|
752
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
769
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js
|
|
753
770
|
function parseAbiItem(signature) {
|
|
754
771
|
let abiItem;
|
|
755
772
|
if (typeof signature === "string")
|
|
@@ -770,7 +787,30 @@ function parseAbiItem(signature) {
|
|
|
770
787
|
return abiItem;
|
|
771
788
|
}
|
|
772
789
|
|
|
773
|
-
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@
|
|
790
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/parseAbiParameter.js
|
|
791
|
+
function parseAbiParameter2(param) {
|
|
792
|
+
let abiParameter;
|
|
793
|
+
if (typeof param === "string")
|
|
794
|
+
abiParameter = parseAbiParameter(param, {
|
|
795
|
+
modifiers
|
|
796
|
+
});
|
|
797
|
+
else {
|
|
798
|
+
const structs = parseStructs(param);
|
|
799
|
+
const length = param.length;
|
|
800
|
+
for (let i = 0; i < length; i++) {
|
|
801
|
+
const signature = param[i];
|
|
802
|
+
if (isStructSignature(signature))
|
|
803
|
+
continue;
|
|
804
|
+
abiParameter = parseAbiParameter(signature, { modifiers, structs });
|
|
805
|
+
break;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
if (!abiParameter)
|
|
809
|
+
throw new InvalidAbiParameterError({ param });
|
|
810
|
+
return abiParameter;
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
// node_modules/.pnpm/abitype@1.2.3_typescript@6.0.3_zod@4.6.7/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
|
|
774
814
|
function parseAbiParameters(params) {
|
|
775
815
|
const abiParameters = [];
|
|
776
816
|
if (typeof params === "string") {
|
|
@@ -798,15 +838,15 @@ function parseAbiParameters(params) {
|
|
|
798
838
|
return abiParameters;
|
|
799
839
|
}
|
|
800
840
|
|
|
801
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
841
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/version.js
|
|
802
842
|
var version2 = "0.1.1";
|
|
803
843
|
|
|
804
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
844
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/errors.js
|
|
805
845
|
function getVersion() {
|
|
806
846
|
return version2;
|
|
807
847
|
}
|
|
808
848
|
|
|
809
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
849
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Errors.js
|
|
810
850
|
var BaseError2 = class _BaseError extends Error {
|
|
811
851
|
static setStaticOptions(options) {
|
|
812
852
|
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
@@ -935,7 +975,7 @@ function walk(err, fn) {
|
|
|
935
975
|
return fn ? null : err;
|
|
936
976
|
}
|
|
937
977
|
|
|
938
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
978
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/bytes.js
|
|
939
979
|
function assertSize(bytes, size_) {
|
|
940
980
|
if (size(bytes) > size_)
|
|
941
981
|
throw new SizeOverflowError({
|
|
@@ -1008,7 +1048,7 @@ function trim(value, options = {}) {
|
|
|
1008
1048
|
return data;
|
|
1009
1049
|
}
|
|
1010
1050
|
|
|
1011
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
1051
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/hex.js
|
|
1012
1052
|
function assertSize2(hex, size_) {
|
|
1013
1053
|
if (size2(hex) > size_)
|
|
1014
1054
|
throw new SizeOverflowError2({
|
|
@@ -1064,7 +1104,7 @@ function trim2(value, options = {}) {
|
|
|
1064
1104
|
return `0x${data}`;
|
|
1065
1105
|
}
|
|
1066
1106
|
|
|
1067
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
1107
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Json.js
|
|
1068
1108
|
var bigIntSuffix = "#__bigint";
|
|
1069
1109
|
function stringify(value, replacer, space) {
|
|
1070
1110
|
return JSON.stringify(value, (key, value2) => {
|
|
@@ -1076,7 +1116,7 @@ function stringify(value, replacer, space) {
|
|
|
1076
1116
|
}, space);
|
|
1077
1117
|
}
|
|
1078
1118
|
|
|
1079
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
1119
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Bytes.js
|
|
1080
1120
|
var decoder = /* @__PURE__ */ new TextDecoder();
|
|
1081
1121
|
var encoder = /* @__PURE__ */ new TextEncoder();
|
|
1082
1122
|
function assert(value) {
|
|
@@ -1091,6 +1131,19 @@ function assert(value) {
|
|
|
1091
1131
|
if (value.BYTES_PER_ELEMENT !== 1 || value.constructor.name !== "Uint8Array")
|
|
1092
1132
|
throw new InvalidBytesTypeError(value);
|
|
1093
1133
|
}
|
|
1134
|
+
function concat(...values) {
|
|
1135
|
+
let length = 0;
|
|
1136
|
+
for (const arr of values) {
|
|
1137
|
+
length += arr.length;
|
|
1138
|
+
}
|
|
1139
|
+
const result = new Uint8Array(length);
|
|
1140
|
+
for (let i = 0, index = 0; i < values.length; i++) {
|
|
1141
|
+
const arr = values[i];
|
|
1142
|
+
result.set(arr, index);
|
|
1143
|
+
index += arr.length;
|
|
1144
|
+
}
|
|
1145
|
+
return result;
|
|
1146
|
+
}
|
|
1094
1147
|
function from(value) {
|
|
1095
1148
|
if (value instanceof Uint8Array)
|
|
1096
1149
|
return value;
|
|
@@ -1132,9 +1185,15 @@ function fromString(value, options = {}) {
|
|
|
1132
1185
|
}
|
|
1133
1186
|
return bytes;
|
|
1134
1187
|
}
|
|
1188
|
+
function isEqual(bytesA, bytesB) {
|
|
1189
|
+
return equalBytes(bytesA, bytesB);
|
|
1190
|
+
}
|
|
1135
1191
|
function padRight2(value, size4) {
|
|
1136
1192
|
return pad(value, { dir: "right", size: size4 });
|
|
1137
1193
|
}
|
|
1194
|
+
function random(length) {
|
|
1195
|
+
return crypto.getRandomValues(new Uint8Array(length));
|
|
1196
|
+
}
|
|
1138
1197
|
function size(value) {
|
|
1139
1198
|
return value.length;
|
|
1140
1199
|
}
|
|
@@ -1164,6 +1223,9 @@ function toBoolean(bytes, options = {}) {
|
|
|
1164
1223
|
throw new InvalidBytesBooleanError(bytes_);
|
|
1165
1224
|
return Boolean(bytes_[0]);
|
|
1166
1225
|
}
|
|
1226
|
+
function toHex(value, options = {}) {
|
|
1227
|
+
return fromBytes(value, options);
|
|
1228
|
+
}
|
|
1167
1229
|
function toNumber2(bytes, options = {}) {
|
|
1168
1230
|
const { size: size4 } = options;
|
|
1169
1231
|
if (typeof size4 !== "undefined")
|
|
@@ -1256,7 +1318,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError2 {
|
|
|
1256
1318
|
}
|
|
1257
1319
|
};
|
|
1258
1320
|
|
|
1259
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
1321
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Hex.js
|
|
1260
1322
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
1261
1323
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
1262
1324
|
function assert2(value, options = {}) {
|
|
@@ -1272,7 +1334,7 @@ function assert2(value, options = {}) {
|
|
|
1272
1334
|
if (!value.startsWith("0x"))
|
|
1273
1335
|
throw new InvalidHexValueError(value);
|
|
1274
1336
|
}
|
|
1275
|
-
function
|
|
1337
|
+
function concat2(...values) {
|
|
1276
1338
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
1277
1339
|
}
|
|
1278
1340
|
function from2(value) {
|
|
@@ -1455,7 +1517,7 @@ var SizeExceedsPaddingSizeError2 = class extends BaseError2 {
|
|
|
1455
1517
|
}
|
|
1456
1518
|
};
|
|
1457
1519
|
|
|
1458
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
1520
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Withdrawal.js
|
|
1459
1521
|
function toRpc(withdrawal) {
|
|
1460
1522
|
return {
|
|
1461
1523
|
address: withdrawal.address,
|
|
@@ -1465,7 +1527,7 @@ function toRpc(withdrawal) {
|
|
|
1465
1527
|
};
|
|
1466
1528
|
}
|
|
1467
1529
|
|
|
1468
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@
|
|
1530
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/BlockOverrides.js
|
|
1469
1531
|
function toRpc2(blockOverrides) {
|
|
1470
1532
|
return {
|
|
1471
1533
|
...typeof blockOverrides.baseFeePerGas === "bigint" && {
|
|
@@ -1495,14 +1557,14 @@ function toRpc2(blockOverrides) {
|
|
|
1495
1557
|
};
|
|
1496
1558
|
}
|
|
1497
1559
|
|
|
1498
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
1560
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
1499
1561
|
function parseAccount(account) {
|
|
1500
1562
|
if (typeof account === "string")
|
|
1501
1563
|
return { address: account, type: "json-rpc" };
|
|
1502
1564
|
return account;
|
|
1503
1565
|
}
|
|
1504
1566
|
|
|
1505
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
1567
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/abis.js
|
|
1506
1568
|
var multicall3Abi = [
|
|
1507
1569
|
{
|
|
1508
1570
|
inputs: [
|
|
@@ -1973,37 +2035,1431 @@ var erc20Abi = [
|
|
|
1973
2035
|
{
|
|
1974
2036
|
type: "string"
|
|
1975
2037
|
}
|
|
1976
|
-
]
|
|
2038
|
+
]
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
type: "function",
|
|
2042
|
+
name: "symbol",
|
|
2043
|
+
stateMutability: "view",
|
|
2044
|
+
inputs: [],
|
|
2045
|
+
outputs: [
|
|
2046
|
+
{
|
|
2047
|
+
type: "string"
|
|
2048
|
+
}
|
|
2049
|
+
]
|
|
2050
|
+
},
|
|
2051
|
+
{
|
|
2052
|
+
type: "function",
|
|
2053
|
+
name: "totalSupply",
|
|
2054
|
+
stateMutability: "view",
|
|
2055
|
+
inputs: [],
|
|
2056
|
+
outputs: [
|
|
2057
|
+
{
|
|
2058
|
+
type: "uint256"
|
|
2059
|
+
}
|
|
2060
|
+
]
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
type: "function",
|
|
2064
|
+
name: "transfer",
|
|
2065
|
+
stateMutability: "nonpayable",
|
|
2066
|
+
inputs: [
|
|
2067
|
+
{
|
|
2068
|
+
name: "recipient",
|
|
2069
|
+
type: "address"
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
name: "amount",
|
|
2073
|
+
type: "uint256"
|
|
2074
|
+
}
|
|
2075
|
+
],
|
|
2076
|
+
outputs: [
|
|
2077
|
+
{
|
|
2078
|
+
type: "bool"
|
|
2079
|
+
}
|
|
2080
|
+
]
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
type: "function",
|
|
2084
|
+
name: "transferFrom",
|
|
2085
|
+
stateMutability: "nonpayable",
|
|
2086
|
+
inputs: [
|
|
2087
|
+
{
|
|
2088
|
+
name: "sender",
|
|
2089
|
+
type: "address"
|
|
2090
|
+
},
|
|
2091
|
+
{
|
|
2092
|
+
name: "recipient",
|
|
2093
|
+
type: "address"
|
|
2094
|
+
},
|
|
2095
|
+
{
|
|
2096
|
+
name: "amount",
|
|
2097
|
+
type: "uint256"
|
|
2098
|
+
}
|
|
2099
|
+
],
|
|
2100
|
+
outputs: [
|
|
2101
|
+
{
|
|
2102
|
+
type: "bool"
|
|
2103
|
+
}
|
|
2104
|
+
]
|
|
2105
|
+
}
|
|
2106
|
+
];
|
|
2107
|
+
var erc20Abi_bytes32 = [
|
|
2108
|
+
{
|
|
2109
|
+
type: "event",
|
|
2110
|
+
name: "Approval",
|
|
2111
|
+
inputs: [
|
|
2112
|
+
{
|
|
2113
|
+
indexed: true,
|
|
2114
|
+
name: "owner",
|
|
2115
|
+
type: "address"
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
indexed: true,
|
|
2119
|
+
name: "spender",
|
|
2120
|
+
type: "address"
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
indexed: false,
|
|
2124
|
+
name: "value",
|
|
2125
|
+
type: "uint256"
|
|
2126
|
+
}
|
|
2127
|
+
]
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
type: "event",
|
|
2131
|
+
name: "Transfer",
|
|
2132
|
+
inputs: [
|
|
2133
|
+
{
|
|
2134
|
+
indexed: true,
|
|
2135
|
+
name: "from",
|
|
2136
|
+
type: "address"
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
indexed: true,
|
|
2140
|
+
name: "to",
|
|
2141
|
+
type: "address"
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
indexed: false,
|
|
2145
|
+
name: "value",
|
|
2146
|
+
type: "uint256"
|
|
2147
|
+
}
|
|
2148
|
+
]
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
type: "function",
|
|
2152
|
+
name: "allowance",
|
|
2153
|
+
stateMutability: "view",
|
|
2154
|
+
inputs: [
|
|
2155
|
+
{
|
|
2156
|
+
name: "owner",
|
|
2157
|
+
type: "address"
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
name: "spender",
|
|
2161
|
+
type: "address"
|
|
2162
|
+
}
|
|
2163
|
+
],
|
|
2164
|
+
outputs: [
|
|
2165
|
+
{
|
|
2166
|
+
type: "uint256"
|
|
2167
|
+
}
|
|
2168
|
+
]
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
type: "function",
|
|
2172
|
+
name: "approve",
|
|
2173
|
+
stateMutability: "nonpayable",
|
|
2174
|
+
inputs: [
|
|
2175
|
+
{
|
|
2176
|
+
name: "spender",
|
|
2177
|
+
type: "address"
|
|
2178
|
+
},
|
|
2179
|
+
{
|
|
2180
|
+
name: "amount",
|
|
2181
|
+
type: "uint256"
|
|
2182
|
+
}
|
|
2183
|
+
],
|
|
2184
|
+
outputs: [
|
|
2185
|
+
{
|
|
2186
|
+
type: "bool"
|
|
2187
|
+
}
|
|
2188
|
+
]
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
type: "function",
|
|
2192
|
+
name: "balanceOf",
|
|
2193
|
+
stateMutability: "view",
|
|
2194
|
+
inputs: [
|
|
2195
|
+
{
|
|
2196
|
+
name: "account",
|
|
2197
|
+
type: "address"
|
|
2198
|
+
}
|
|
2199
|
+
],
|
|
2200
|
+
outputs: [
|
|
2201
|
+
{
|
|
2202
|
+
type: "uint256"
|
|
2203
|
+
}
|
|
2204
|
+
]
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
type: "function",
|
|
2208
|
+
name: "decimals",
|
|
2209
|
+
stateMutability: "view",
|
|
2210
|
+
inputs: [],
|
|
2211
|
+
outputs: [
|
|
2212
|
+
{
|
|
2213
|
+
type: "uint8"
|
|
2214
|
+
}
|
|
2215
|
+
]
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
type: "function",
|
|
2219
|
+
name: "name",
|
|
2220
|
+
stateMutability: "view",
|
|
2221
|
+
inputs: [],
|
|
2222
|
+
outputs: [
|
|
2223
|
+
{
|
|
2224
|
+
type: "bytes32"
|
|
2225
|
+
}
|
|
2226
|
+
]
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
type: "function",
|
|
2230
|
+
name: "symbol",
|
|
2231
|
+
stateMutability: "view",
|
|
2232
|
+
inputs: [],
|
|
2233
|
+
outputs: [
|
|
2234
|
+
{
|
|
2235
|
+
type: "bytes32"
|
|
2236
|
+
}
|
|
2237
|
+
]
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
type: "function",
|
|
2241
|
+
name: "totalSupply",
|
|
2242
|
+
stateMutability: "view",
|
|
2243
|
+
inputs: [],
|
|
2244
|
+
outputs: [
|
|
2245
|
+
{
|
|
2246
|
+
type: "uint256"
|
|
2247
|
+
}
|
|
2248
|
+
]
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
type: "function",
|
|
2252
|
+
name: "transfer",
|
|
2253
|
+
stateMutability: "nonpayable",
|
|
2254
|
+
inputs: [
|
|
2255
|
+
{
|
|
2256
|
+
name: "recipient",
|
|
2257
|
+
type: "address"
|
|
2258
|
+
},
|
|
2259
|
+
{
|
|
2260
|
+
name: "amount",
|
|
2261
|
+
type: "uint256"
|
|
2262
|
+
}
|
|
2263
|
+
],
|
|
2264
|
+
outputs: [
|
|
2265
|
+
{
|
|
2266
|
+
type: "bool"
|
|
2267
|
+
}
|
|
2268
|
+
]
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
type: "function",
|
|
2272
|
+
name: "transferFrom",
|
|
2273
|
+
stateMutability: "nonpayable",
|
|
2274
|
+
inputs: [
|
|
2275
|
+
{
|
|
2276
|
+
name: "sender",
|
|
2277
|
+
type: "address"
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
name: "recipient",
|
|
2281
|
+
type: "address"
|
|
2282
|
+
},
|
|
2283
|
+
{
|
|
2284
|
+
name: "amount",
|
|
2285
|
+
type: "uint256"
|
|
2286
|
+
}
|
|
2287
|
+
],
|
|
2288
|
+
outputs: [
|
|
2289
|
+
{
|
|
2290
|
+
type: "bool"
|
|
2291
|
+
}
|
|
2292
|
+
]
|
|
2293
|
+
}
|
|
2294
|
+
];
|
|
2295
|
+
var erc1155Abi = [
|
|
2296
|
+
{
|
|
2297
|
+
inputs: [
|
|
2298
|
+
{
|
|
2299
|
+
internalType: "address",
|
|
2300
|
+
name: "sender",
|
|
2301
|
+
type: "address"
|
|
2302
|
+
},
|
|
2303
|
+
{
|
|
2304
|
+
internalType: "uint256",
|
|
2305
|
+
name: "balance",
|
|
2306
|
+
type: "uint256"
|
|
2307
|
+
},
|
|
2308
|
+
{
|
|
2309
|
+
internalType: "uint256",
|
|
2310
|
+
name: "needed",
|
|
2311
|
+
type: "uint256"
|
|
2312
|
+
},
|
|
2313
|
+
{
|
|
2314
|
+
internalType: "uint256",
|
|
2315
|
+
name: "tokenId",
|
|
2316
|
+
type: "uint256"
|
|
2317
|
+
}
|
|
2318
|
+
],
|
|
2319
|
+
name: "ERC1155InsufficientBalance",
|
|
2320
|
+
type: "error"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
inputs: [
|
|
2324
|
+
{
|
|
2325
|
+
internalType: "address",
|
|
2326
|
+
name: "approver",
|
|
2327
|
+
type: "address"
|
|
2328
|
+
}
|
|
2329
|
+
],
|
|
2330
|
+
name: "ERC1155InvalidApprover",
|
|
2331
|
+
type: "error"
|
|
2332
|
+
},
|
|
2333
|
+
{
|
|
2334
|
+
inputs: [
|
|
2335
|
+
{
|
|
2336
|
+
internalType: "uint256",
|
|
2337
|
+
name: "idsLength",
|
|
2338
|
+
type: "uint256"
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
internalType: "uint256",
|
|
2342
|
+
name: "valuesLength",
|
|
2343
|
+
type: "uint256"
|
|
2344
|
+
}
|
|
2345
|
+
],
|
|
2346
|
+
name: "ERC1155InvalidArrayLength",
|
|
2347
|
+
type: "error"
|
|
2348
|
+
},
|
|
2349
|
+
{
|
|
2350
|
+
inputs: [
|
|
2351
|
+
{
|
|
2352
|
+
internalType: "address",
|
|
2353
|
+
name: "operator",
|
|
2354
|
+
type: "address"
|
|
2355
|
+
}
|
|
2356
|
+
],
|
|
2357
|
+
name: "ERC1155InvalidOperator",
|
|
2358
|
+
type: "error"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
inputs: [
|
|
2362
|
+
{
|
|
2363
|
+
internalType: "address",
|
|
2364
|
+
name: "receiver",
|
|
2365
|
+
type: "address"
|
|
2366
|
+
}
|
|
2367
|
+
],
|
|
2368
|
+
name: "ERC1155InvalidReceiver",
|
|
2369
|
+
type: "error"
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
inputs: [
|
|
2373
|
+
{
|
|
2374
|
+
internalType: "address",
|
|
2375
|
+
name: "sender",
|
|
2376
|
+
type: "address"
|
|
2377
|
+
}
|
|
2378
|
+
],
|
|
2379
|
+
name: "ERC1155InvalidSender",
|
|
2380
|
+
type: "error"
|
|
2381
|
+
},
|
|
2382
|
+
{
|
|
2383
|
+
inputs: [
|
|
2384
|
+
{
|
|
2385
|
+
internalType: "address",
|
|
2386
|
+
name: "operator",
|
|
2387
|
+
type: "address"
|
|
2388
|
+
},
|
|
2389
|
+
{
|
|
2390
|
+
internalType: "address",
|
|
2391
|
+
name: "owner",
|
|
2392
|
+
type: "address"
|
|
2393
|
+
}
|
|
2394
|
+
],
|
|
2395
|
+
name: "ERC1155MissingApprovalForAll",
|
|
2396
|
+
type: "error"
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
anonymous: false,
|
|
2400
|
+
inputs: [
|
|
2401
|
+
{
|
|
2402
|
+
indexed: true,
|
|
2403
|
+
internalType: "address",
|
|
2404
|
+
name: "account",
|
|
2405
|
+
type: "address"
|
|
2406
|
+
},
|
|
2407
|
+
{
|
|
2408
|
+
indexed: true,
|
|
2409
|
+
internalType: "address",
|
|
2410
|
+
name: "operator",
|
|
2411
|
+
type: "address"
|
|
2412
|
+
},
|
|
2413
|
+
{
|
|
2414
|
+
indexed: false,
|
|
2415
|
+
internalType: "bool",
|
|
2416
|
+
name: "approved",
|
|
2417
|
+
type: "bool"
|
|
2418
|
+
}
|
|
2419
|
+
],
|
|
2420
|
+
name: "ApprovalForAll",
|
|
2421
|
+
type: "event"
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
anonymous: false,
|
|
2425
|
+
inputs: [
|
|
2426
|
+
{
|
|
2427
|
+
indexed: true,
|
|
2428
|
+
internalType: "address",
|
|
2429
|
+
name: "operator",
|
|
2430
|
+
type: "address"
|
|
2431
|
+
},
|
|
2432
|
+
{
|
|
2433
|
+
indexed: true,
|
|
2434
|
+
internalType: "address",
|
|
2435
|
+
name: "from",
|
|
2436
|
+
type: "address"
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
indexed: true,
|
|
2440
|
+
internalType: "address",
|
|
2441
|
+
name: "to",
|
|
2442
|
+
type: "address"
|
|
2443
|
+
},
|
|
2444
|
+
{
|
|
2445
|
+
indexed: false,
|
|
2446
|
+
internalType: "uint256[]",
|
|
2447
|
+
name: "ids",
|
|
2448
|
+
type: "uint256[]"
|
|
2449
|
+
},
|
|
2450
|
+
{
|
|
2451
|
+
indexed: false,
|
|
2452
|
+
internalType: "uint256[]",
|
|
2453
|
+
name: "values",
|
|
2454
|
+
type: "uint256[]"
|
|
2455
|
+
}
|
|
2456
|
+
],
|
|
2457
|
+
name: "TransferBatch",
|
|
2458
|
+
type: "event"
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
anonymous: false,
|
|
2462
|
+
inputs: [
|
|
2463
|
+
{
|
|
2464
|
+
indexed: true,
|
|
2465
|
+
internalType: "address",
|
|
2466
|
+
name: "operator",
|
|
2467
|
+
type: "address"
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
indexed: true,
|
|
2471
|
+
internalType: "address",
|
|
2472
|
+
name: "from",
|
|
2473
|
+
type: "address"
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
indexed: true,
|
|
2477
|
+
internalType: "address",
|
|
2478
|
+
name: "to",
|
|
2479
|
+
type: "address"
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
indexed: false,
|
|
2483
|
+
internalType: "uint256",
|
|
2484
|
+
name: "id",
|
|
2485
|
+
type: "uint256"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
indexed: false,
|
|
2489
|
+
internalType: "uint256",
|
|
2490
|
+
name: "value",
|
|
2491
|
+
type: "uint256"
|
|
2492
|
+
}
|
|
2493
|
+
],
|
|
2494
|
+
name: "TransferSingle",
|
|
2495
|
+
type: "event"
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
anonymous: false,
|
|
2499
|
+
inputs: [
|
|
2500
|
+
{
|
|
2501
|
+
indexed: false,
|
|
2502
|
+
internalType: "string",
|
|
2503
|
+
name: "value",
|
|
2504
|
+
type: "string"
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
indexed: true,
|
|
2508
|
+
internalType: "uint256",
|
|
2509
|
+
name: "id",
|
|
2510
|
+
type: "uint256"
|
|
2511
|
+
}
|
|
2512
|
+
],
|
|
2513
|
+
name: "URI",
|
|
2514
|
+
type: "event"
|
|
2515
|
+
},
|
|
2516
|
+
{
|
|
2517
|
+
inputs: [
|
|
2518
|
+
{
|
|
2519
|
+
internalType: "address",
|
|
2520
|
+
name: "account",
|
|
2521
|
+
type: "address"
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
internalType: "uint256",
|
|
2525
|
+
name: "id",
|
|
2526
|
+
type: "uint256"
|
|
2527
|
+
}
|
|
2528
|
+
],
|
|
2529
|
+
name: "balanceOf",
|
|
2530
|
+
outputs: [
|
|
2531
|
+
{
|
|
2532
|
+
internalType: "uint256",
|
|
2533
|
+
name: "",
|
|
2534
|
+
type: "uint256"
|
|
2535
|
+
}
|
|
2536
|
+
],
|
|
2537
|
+
stateMutability: "view",
|
|
2538
|
+
type: "function"
|
|
2539
|
+
},
|
|
2540
|
+
{
|
|
2541
|
+
inputs: [
|
|
2542
|
+
{
|
|
2543
|
+
internalType: "address[]",
|
|
2544
|
+
name: "accounts",
|
|
2545
|
+
type: "address[]"
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
internalType: "uint256[]",
|
|
2549
|
+
name: "ids",
|
|
2550
|
+
type: "uint256[]"
|
|
2551
|
+
}
|
|
2552
|
+
],
|
|
2553
|
+
name: "balanceOfBatch",
|
|
2554
|
+
outputs: [
|
|
2555
|
+
{
|
|
2556
|
+
internalType: "uint256[]",
|
|
2557
|
+
name: "",
|
|
2558
|
+
type: "uint256[]"
|
|
2559
|
+
}
|
|
2560
|
+
],
|
|
2561
|
+
stateMutability: "view",
|
|
2562
|
+
type: "function"
|
|
2563
|
+
},
|
|
2564
|
+
{
|
|
2565
|
+
inputs: [
|
|
2566
|
+
{
|
|
2567
|
+
internalType: "address",
|
|
2568
|
+
name: "account",
|
|
2569
|
+
type: "address"
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
internalType: "address",
|
|
2573
|
+
name: "operator",
|
|
2574
|
+
type: "address"
|
|
2575
|
+
}
|
|
2576
|
+
],
|
|
2577
|
+
name: "isApprovedForAll",
|
|
2578
|
+
outputs: [
|
|
2579
|
+
{
|
|
2580
|
+
internalType: "bool",
|
|
2581
|
+
name: "",
|
|
2582
|
+
type: "bool"
|
|
2583
|
+
}
|
|
2584
|
+
],
|
|
2585
|
+
stateMutability: "view",
|
|
2586
|
+
type: "function"
|
|
2587
|
+
},
|
|
2588
|
+
{
|
|
2589
|
+
inputs: [
|
|
2590
|
+
{
|
|
2591
|
+
internalType: "address",
|
|
2592
|
+
name: "from",
|
|
2593
|
+
type: "address"
|
|
2594
|
+
},
|
|
2595
|
+
{
|
|
2596
|
+
internalType: "address",
|
|
2597
|
+
name: "to",
|
|
2598
|
+
type: "address"
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
internalType: "uint256[]",
|
|
2602
|
+
name: "ids",
|
|
2603
|
+
type: "uint256[]"
|
|
2604
|
+
},
|
|
2605
|
+
{
|
|
2606
|
+
internalType: "uint256[]",
|
|
2607
|
+
name: "values",
|
|
2608
|
+
type: "uint256[]"
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
internalType: "bytes",
|
|
2612
|
+
name: "data",
|
|
2613
|
+
type: "bytes"
|
|
2614
|
+
}
|
|
2615
|
+
],
|
|
2616
|
+
name: "safeBatchTransferFrom",
|
|
2617
|
+
outputs: [],
|
|
2618
|
+
stateMutability: "nonpayable",
|
|
2619
|
+
type: "function"
|
|
2620
|
+
},
|
|
2621
|
+
{
|
|
2622
|
+
inputs: [
|
|
2623
|
+
{
|
|
2624
|
+
internalType: "address",
|
|
2625
|
+
name: "from",
|
|
2626
|
+
type: "address"
|
|
2627
|
+
},
|
|
2628
|
+
{
|
|
2629
|
+
internalType: "address",
|
|
2630
|
+
name: "to",
|
|
2631
|
+
type: "address"
|
|
2632
|
+
},
|
|
2633
|
+
{
|
|
2634
|
+
internalType: "uint256",
|
|
2635
|
+
name: "id",
|
|
2636
|
+
type: "uint256"
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
internalType: "uint256",
|
|
2640
|
+
name: "value",
|
|
2641
|
+
type: "uint256"
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
internalType: "bytes",
|
|
2645
|
+
name: "data",
|
|
2646
|
+
type: "bytes"
|
|
2647
|
+
}
|
|
2648
|
+
],
|
|
2649
|
+
name: "safeTransferFrom",
|
|
2650
|
+
outputs: [],
|
|
2651
|
+
stateMutability: "nonpayable",
|
|
2652
|
+
type: "function"
|
|
2653
|
+
},
|
|
2654
|
+
{
|
|
2655
|
+
inputs: [
|
|
2656
|
+
{
|
|
2657
|
+
internalType: "address",
|
|
2658
|
+
name: "operator",
|
|
2659
|
+
type: "address"
|
|
2660
|
+
},
|
|
2661
|
+
{
|
|
2662
|
+
internalType: "bool",
|
|
2663
|
+
name: "approved",
|
|
2664
|
+
type: "bool"
|
|
2665
|
+
}
|
|
2666
|
+
],
|
|
2667
|
+
name: "setApprovalForAll",
|
|
2668
|
+
outputs: [],
|
|
2669
|
+
stateMutability: "nonpayable",
|
|
2670
|
+
type: "function"
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
inputs: [
|
|
2674
|
+
{
|
|
2675
|
+
internalType: "bytes4",
|
|
2676
|
+
name: "interfaceId",
|
|
2677
|
+
type: "bytes4"
|
|
2678
|
+
}
|
|
2679
|
+
],
|
|
2680
|
+
name: "supportsInterface",
|
|
2681
|
+
outputs: [
|
|
2682
|
+
{
|
|
2683
|
+
internalType: "bool",
|
|
2684
|
+
name: "",
|
|
2685
|
+
type: "bool"
|
|
2686
|
+
}
|
|
2687
|
+
],
|
|
2688
|
+
stateMutability: "view",
|
|
2689
|
+
type: "function"
|
|
2690
|
+
},
|
|
2691
|
+
{
|
|
2692
|
+
inputs: [
|
|
2693
|
+
{
|
|
2694
|
+
internalType: "uint256",
|
|
2695
|
+
name: "",
|
|
2696
|
+
type: "uint256"
|
|
2697
|
+
}
|
|
2698
|
+
],
|
|
2699
|
+
name: "uri",
|
|
2700
|
+
outputs: [
|
|
2701
|
+
{
|
|
2702
|
+
internalType: "string",
|
|
2703
|
+
name: "",
|
|
2704
|
+
type: "string"
|
|
2705
|
+
}
|
|
2706
|
+
],
|
|
2707
|
+
stateMutability: "view",
|
|
2708
|
+
type: "function"
|
|
2709
|
+
}
|
|
2710
|
+
];
|
|
2711
|
+
var erc721Abi = [
|
|
2712
|
+
{
|
|
2713
|
+
type: "event",
|
|
2714
|
+
name: "Approval",
|
|
2715
|
+
inputs: [
|
|
2716
|
+
{
|
|
2717
|
+
indexed: true,
|
|
2718
|
+
name: "owner",
|
|
2719
|
+
type: "address"
|
|
2720
|
+
},
|
|
2721
|
+
{
|
|
2722
|
+
indexed: true,
|
|
2723
|
+
name: "spender",
|
|
2724
|
+
type: "address"
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
indexed: true,
|
|
2728
|
+
name: "tokenId",
|
|
2729
|
+
type: "uint256"
|
|
2730
|
+
}
|
|
2731
|
+
]
|
|
2732
|
+
},
|
|
2733
|
+
{
|
|
2734
|
+
type: "event",
|
|
2735
|
+
name: "ApprovalForAll",
|
|
2736
|
+
inputs: [
|
|
2737
|
+
{
|
|
2738
|
+
indexed: true,
|
|
2739
|
+
name: "owner",
|
|
2740
|
+
type: "address"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
indexed: true,
|
|
2744
|
+
name: "operator",
|
|
2745
|
+
type: "address"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
indexed: false,
|
|
2749
|
+
name: "approved",
|
|
2750
|
+
type: "bool"
|
|
2751
|
+
}
|
|
2752
|
+
]
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
type: "event",
|
|
2756
|
+
name: "Transfer",
|
|
2757
|
+
inputs: [
|
|
2758
|
+
{
|
|
2759
|
+
indexed: true,
|
|
2760
|
+
name: "from",
|
|
2761
|
+
type: "address"
|
|
2762
|
+
},
|
|
2763
|
+
{
|
|
2764
|
+
indexed: true,
|
|
2765
|
+
name: "to",
|
|
2766
|
+
type: "address"
|
|
2767
|
+
},
|
|
2768
|
+
{
|
|
2769
|
+
indexed: true,
|
|
2770
|
+
name: "tokenId",
|
|
2771
|
+
type: "uint256"
|
|
2772
|
+
}
|
|
2773
|
+
]
|
|
2774
|
+
},
|
|
2775
|
+
{
|
|
2776
|
+
type: "function",
|
|
2777
|
+
name: "approve",
|
|
2778
|
+
stateMutability: "payable",
|
|
2779
|
+
inputs: [
|
|
2780
|
+
{
|
|
2781
|
+
name: "spender",
|
|
2782
|
+
type: "address"
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
name: "tokenId",
|
|
2786
|
+
type: "uint256"
|
|
2787
|
+
}
|
|
2788
|
+
],
|
|
2789
|
+
outputs: []
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
type: "function",
|
|
2793
|
+
name: "balanceOf",
|
|
2794
|
+
stateMutability: "view",
|
|
2795
|
+
inputs: [
|
|
2796
|
+
{
|
|
2797
|
+
name: "account",
|
|
2798
|
+
type: "address"
|
|
2799
|
+
}
|
|
2800
|
+
],
|
|
2801
|
+
outputs: [
|
|
2802
|
+
{
|
|
2803
|
+
type: "uint256"
|
|
2804
|
+
}
|
|
2805
|
+
]
|
|
2806
|
+
},
|
|
2807
|
+
{
|
|
2808
|
+
type: "function",
|
|
2809
|
+
name: "getApproved",
|
|
2810
|
+
stateMutability: "view",
|
|
2811
|
+
inputs: [
|
|
2812
|
+
{
|
|
2813
|
+
name: "tokenId",
|
|
2814
|
+
type: "uint256"
|
|
2815
|
+
}
|
|
2816
|
+
],
|
|
2817
|
+
outputs: [
|
|
2818
|
+
{
|
|
2819
|
+
type: "address"
|
|
2820
|
+
}
|
|
2821
|
+
]
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
type: "function",
|
|
2825
|
+
name: "isApprovedForAll",
|
|
2826
|
+
stateMutability: "view",
|
|
2827
|
+
inputs: [
|
|
2828
|
+
{
|
|
2829
|
+
name: "owner",
|
|
2830
|
+
type: "address"
|
|
2831
|
+
},
|
|
2832
|
+
{
|
|
2833
|
+
name: "operator",
|
|
2834
|
+
type: "address"
|
|
2835
|
+
}
|
|
2836
|
+
],
|
|
2837
|
+
outputs: [
|
|
2838
|
+
{
|
|
2839
|
+
type: "bool"
|
|
2840
|
+
}
|
|
2841
|
+
]
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
type: "function",
|
|
2845
|
+
name: "name",
|
|
2846
|
+
stateMutability: "view",
|
|
2847
|
+
inputs: [],
|
|
2848
|
+
outputs: [
|
|
2849
|
+
{
|
|
2850
|
+
type: "string"
|
|
2851
|
+
}
|
|
2852
|
+
]
|
|
2853
|
+
},
|
|
2854
|
+
{
|
|
2855
|
+
type: "function",
|
|
2856
|
+
name: "ownerOf",
|
|
2857
|
+
stateMutability: "view",
|
|
2858
|
+
inputs: [
|
|
2859
|
+
{
|
|
2860
|
+
name: "tokenId",
|
|
2861
|
+
type: "uint256"
|
|
2862
|
+
}
|
|
2863
|
+
],
|
|
2864
|
+
outputs: [
|
|
2865
|
+
{
|
|
2866
|
+
name: "owner",
|
|
2867
|
+
type: "address"
|
|
2868
|
+
}
|
|
2869
|
+
]
|
|
2870
|
+
},
|
|
2871
|
+
{
|
|
2872
|
+
type: "function",
|
|
2873
|
+
name: "safeTransferFrom",
|
|
2874
|
+
stateMutability: "payable",
|
|
2875
|
+
inputs: [
|
|
2876
|
+
{
|
|
2877
|
+
name: "from",
|
|
2878
|
+
type: "address"
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
name: "to",
|
|
2882
|
+
type: "address"
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
name: "tokenId",
|
|
2886
|
+
type: "uint256"
|
|
2887
|
+
}
|
|
2888
|
+
],
|
|
2889
|
+
outputs: []
|
|
2890
|
+
},
|
|
2891
|
+
{
|
|
2892
|
+
type: "function",
|
|
2893
|
+
name: "safeTransferFrom",
|
|
2894
|
+
stateMutability: "nonpayable",
|
|
2895
|
+
inputs: [
|
|
2896
|
+
{
|
|
2897
|
+
name: "from",
|
|
2898
|
+
type: "address"
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
name: "to",
|
|
2902
|
+
type: "address"
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
name: "id",
|
|
2906
|
+
type: "uint256"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
name: "data",
|
|
2910
|
+
type: "bytes"
|
|
2911
|
+
}
|
|
2912
|
+
],
|
|
2913
|
+
outputs: []
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
type: "function",
|
|
2917
|
+
name: "setApprovalForAll",
|
|
2918
|
+
stateMutability: "nonpayable",
|
|
2919
|
+
inputs: [
|
|
2920
|
+
{
|
|
2921
|
+
name: "operator",
|
|
2922
|
+
type: "address"
|
|
2923
|
+
},
|
|
2924
|
+
{
|
|
2925
|
+
name: "approved",
|
|
2926
|
+
type: "bool"
|
|
2927
|
+
}
|
|
2928
|
+
],
|
|
2929
|
+
outputs: []
|
|
2930
|
+
},
|
|
2931
|
+
{
|
|
2932
|
+
type: "function",
|
|
2933
|
+
name: "symbol",
|
|
2934
|
+
stateMutability: "view",
|
|
2935
|
+
inputs: [],
|
|
2936
|
+
outputs: [
|
|
2937
|
+
{
|
|
2938
|
+
type: "string"
|
|
2939
|
+
}
|
|
2940
|
+
]
|
|
2941
|
+
},
|
|
2942
|
+
{
|
|
2943
|
+
type: "function",
|
|
2944
|
+
name: "tokenByIndex",
|
|
2945
|
+
stateMutability: "view",
|
|
2946
|
+
inputs: [
|
|
2947
|
+
{
|
|
2948
|
+
name: "index",
|
|
2949
|
+
type: "uint256"
|
|
2950
|
+
}
|
|
2951
|
+
],
|
|
2952
|
+
outputs: [
|
|
2953
|
+
{
|
|
2954
|
+
type: "uint256"
|
|
2955
|
+
}
|
|
2956
|
+
]
|
|
2957
|
+
},
|
|
2958
|
+
{
|
|
2959
|
+
type: "function",
|
|
2960
|
+
name: "tokenByIndex",
|
|
2961
|
+
stateMutability: "view",
|
|
2962
|
+
inputs: [
|
|
2963
|
+
{
|
|
2964
|
+
name: "owner",
|
|
2965
|
+
type: "address"
|
|
2966
|
+
},
|
|
2967
|
+
{
|
|
2968
|
+
name: "index",
|
|
2969
|
+
type: "uint256"
|
|
2970
|
+
}
|
|
2971
|
+
],
|
|
2972
|
+
outputs: [
|
|
2973
|
+
{
|
|
2974
|
+
name: "tokenId",
|
|
2975
|
+
type: "uint256"
|
|
2976
|
+
}
|
|
2977
|
+
]
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
type: "function",
|
|
2981
|
+
name: "tokenURI",
|
|
2982
|
+
stateMutability: "view",
|
|
2983
|
+
inputs: [
|
|
2984
|
+
{
|
|
2985
|
+
name: "tokenId",
|
|
2986
|
+
type: "uint256"
|
|
2987
|
+
}
|
|
2988
|
+
],
|
|
2989
|
+
outputs: [
|
|
2990
|
+
{
|
|
2991
|
+
type: "string"
|
|
2992
|
+
}
|
|
2993
|
+
]
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
type: "function",
|
|
2997
|
+
name: "totalSupply",
|
|
2998
|
+
stateMutability: "view",
|
|
2999
|
+
inputs: [],
|
|
3000
|
+
outputs: [
|
|
3001
|
+
{
|
|
3002
|
+
type: "uint256"
|
|
3003
|
+
}
|
|
3004
|
+
]
|
|
3005
|
+
},
|
|
3006
|
+
{
|
|
3007
|
+
type: "function",
|
|
3008
|
+
name: "transferFrom",
|
|
3009
|
+
stateMutability: "payable",
|
|
3010
|
+
inputs: [
|
|
3011
|
+
{
|
|
3012
|
+
name: "sender",
|
|
3013
|
+
type: "address"
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
name: "recipient",
|
|
3017
|
+
type: "address"
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
name: "tokenId",
|
|
3021
|
+
type: "uint256"
|
|
3022
|
+
}
|
|
3023
|
+
],
|
|
3024
|
+
outputs: []
|
|
3025
|
+
}
|
|
3026
|
+
];
|
|
3027
|
+
var erc4626Abi = [
|
|
3028
|
+
{
|
|
3029
|
+
anonymous: false,
|
|
3030
|
+
inputs: [
|
|
3031
|
+
{
|
|
3032
|
+
indexed: true,
|
|
3033
|
+
name: "owner",
|
|
3034
|
+
type: "address"
|
|
3035
|
+
},
|
|
3036
|
+
{
|
|
3037
|
+
indexed: true,
|
|
3038
|
+
name: "spender",
|
|
3039
|
+
type: "address"
|
|
3040
|
+
},
|
|
3041
|
+
{
|
|
3042
|
+
indexed: false,
|
|
3043
|
+
name: "value",
|
|
3044
|
+
type: "uint256"
|
|
3045
|
+
}
|
|
3046
|
+
],
|
|
3047
|
+
name: "Approval",
|
|
3048
|
+
type: "event"
|
|
3049
|
+
},
|
|
3050
|
+
{
|
|
3051
|
+
anonymous: false,
|
|
3052
|
+
inputs: [
|
|
3053
|
+
{
|
|
3054
|
+
indexed: true,
|
|
3055
|
+
name: "sender",
|
|
3056
|
+
type: "address"
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
indexed: true,
|
|
3060
|
+
name: "receiver",
|
|
3061
|
+
type: "address"
|
|
3062
|
+
},
|
|
3063
|
+
{
|
|
3064
|
+
indexed: false,
|
|
3065
|
+
name: "assets",
|
|
3066
|
+
type: "uint256"
|
|
3067
|
+
},
|
|
3068
|
+
{
|
|
3069
|
+
indexed: false,
|
|
3070
|
+
name: "shares",
|
|
3071
|
+
type: "uint256"
|
|
3072
|
+
}
|
|
3073
|
+
],
|
|
3074
|
+
name: "Deposit",
|
|
3075
|
+
type: "event"
|
|
3076
|
+
},
|
|
3077
|
+
{
|
|
3078
|
+
anonymous: false,
|
|
3079
|
+
inputs: [
|
|
3080
|
+
{
|
|
3081
|
+
indexed: true,
|
|
3082
|
+
name: "from",
|
|
3083
|
+
type: "address"
|
|
3084
|
+
},
|
|
3085
|
+
{
|
|
3086
|
+
indexed: true,
|
|
3087
|
+
name: "to",
|
|
3088
|
+
type: "address"
|
|
3089
|
+
},
|
|
3090
|
+
{
|
|
3091
|
+
indexed: false,
|
|
3092
|
+
name: "value",
|
|
3093
|
+
type: "uint256"
|
|
3094
|
+
}
|
|
3095
|
+
],
|
|
3096
|
+
name: "Transfer",
|
|
3097
|
+
type: "event"
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
anonymous: false,
|
|
3101
|
+
inputs: [
|
|
3102
|
+
{
|
|
3103
|
+
indexed: true,
|
|
3104
|
+
name: "sender",
|
|
3105
|
+
type: "address"
|
|
3106
|
+
},
|
|
3107
|
+
{
|
|
3108
|
+
indexed: true,
|
|
3109
|
+
name: "receiver",
|
|
3110
|
+
type: "address"
|
|
3111
|
+
},
|
|
3112
|
+
{
|
|
3113
|
+
indexed: true,
|
|
3114
|
+
name: "owner",
|
|
3115
|
+
type: "address"
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
indexed: false,
|
|
3119
|
+
name: "assets",
|
|
3120
|
+
type: "uint256"
|
|
3121
|
+
},
|
|
3122
|
+
{
|
|
3123
|
+
indexed: false,
|
|
3124
|
+
name: "shares",
|
|
3125
|
+
type: "uint256"
|
|
3126
|
+
}
|
|
3127
|
+
],
|
|
3128
|
+
name: "Withdraw",
|
|
3129
|
+
type: "event"
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
inputs: [
|
|
3133
|
+
{
|
|
3134
|
+
name: "owner",
|
|
3135
|
+
type: "address"
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
name: "spender",
|
|
3139
|
+
type: "address"
|
|
3140
|
+
}
|
|
3141
|
+
],
|
|
3142
|
+
name: "allowance",
|
|
3143
|
+
outputs: [
|
|
3144
|
+
{
|
|
3145
|
+
type: "uint256"
|
|
3146
|
+
}
|
|
3147
|
+
],
|
|
3148
|
+
stateMutability: "view",
|
|
3149
|
+
type: "function"
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
inputs: [
|
|
3153
|
+
{
|
|
3154
|
+
name: "spender",
|
|
3155
|
+
type: "address"
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
name: "amount",
|
|
3159
|
+
type: "uint256"
|
|
3160
|
+
}
|
|
3161
|
+
],
|
|
3162
|
+
name: "approve",
|
|
3163
|
+
outputs: [
|
|
3164
|
+
{
|
|
3165
|
+
type: "bool"
|
|
3166
|
+
}
|
|
3167
|
+
],
|
|
3168
|
+
stateMutability: "nonpayable",
|
|
3169
|
+
type: "function"
|
|
3170
|
+
},
|
|
3171
|
+
{
|
|
3172
|
+
inputs: [],
|
|
3173
|
+
name: "asset",
|
|
3174
|
+
outputs: [
|
|
3175
|
+
{
|
|
3176
|
+
name: "assetTokenAddress",
|
|
3177
|
+
type: "address"
|
|
3178
|
+
}
|
|
3179
|
+
],
|
|
3180
|
+
stateMutability: "view",
|
|
3181
|
+
type: "function"
|
|
3182
|
+
},
|
|
3183
|
+
{
|
|
3184
|
+
inputs: [
|
|
3185
|
+
{
|
|
3186
|
+
name: "account",
|
|
3187
|
+
type: "address"
|
|
3188
|
+
}
|
|
3189
|
+
],
|
|
3190
|
+
name: "balanceOf",
|
|
3191
|
+
outputs: [
|
|
3192
|
+
{
|
|
3193
|
+
type: "uint256"
|
|
3194
|
+
}
|
|
3195
|
+
],
|
|
3196
|
+
stateMutability: "view",
|
|
3197
|
+
type: "function"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
inputs: [
|
|
3201
|
+
{
|
|
3202
|
+
name: "shares",
|
|
3203
|
+
type: "uint256"
|
|
3204
|
+
}
|
|
3205
|
+
],
|
|
3206
|
+
name: "convertToAssets",
|
|
3207
|
+
outputs: [
|
|
3208
|
+
{
|
|
3209
|
+
name: "assets",
|
|
3210
|
+
type: "uint256"
|
|
3211
|
+
}
|
|
3212
|
+
],
|
|
3213
|
+
stateMutability: "view",
|
|
3214
|
+
type: "function"
|
|
3215
|
+
},
|
|
3216
|
+
{
|
|
3217
|
+
inputs: [
|
|
3218
|
+
{
|
|
3219
|
+
name: "assets",
|
|
3220
|
+
type: "uint256"
|
|
3221
|
+
}
|
|
3222
|
+
],
|
|
3223
|
+
name: "convertToShares",
|
|
3224
|
+
outputs: [
|
|
3225
|
+
{
|
|
3226
|
+
name: "shares",
|
|
3227
|
+
type: "uint256"
|
|
3228
|
+
}
|
|
3229
|
+
],
|
|
3230
|
+
stateMutability: "view",
|
|
3231
|
+
type: "function"
|
|
3232
|
+
},
|
|
3233
|
+
{
|
|
3234
|
+
inputs: [
|
|
3235
|
+
{
|
|
3236
|
+
name: "assets",
|
|
3237
|
+
type: "uint256"
|
|
3238
|
+
},
|
|
3239
|
+
{
|
|
3240
|
+
name: "receiver",
|
|
3241
|
+
type: "address"
|
|
3242
|
+
}
|
|
3243
|
+
],
|
|
3244
|
+
name: "deposit",
|
|
3245
|
+
outputs: [
|
|
3246
|
+
{
|
|
3247
|
+
name: "shares",
|
|
3248
|
+
type: "uint256"
|
|
3249
|
+
}
|
|
3250
|
+
],
|
|
3251
|
+
stateMutability: "nonpayable",
|
|
3252
|
+
type: "function"
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
inputs: [
|
|
3256
|
+
{
|
|
3257
|
+
name: "caller",
|
|
3258
|
+
type: "address"
|
|
3259
|
+
}
|
|
3260
|
+
],
|
|
3261
|
+
name: "maxDeposit",
|
|
3262
|
+
outputs: [
|
|
3263
|
+
{
|
|
3264
|
+
name: "maxAssets",
|
|
3265
|
+
type: "uint256"
|
|
3266
|
+
}
|
|
3267
|
+
],
|
|
3268
|
+
stateMutability: "view",
|
|
3269
|
+
type: "function"
|
|
3270
|
+
},
|
|
3271
|
+
{
|
|
3272
|
+
inputs: [
|
|
3273
|
+
{
|
|
3274
|
+
name: "caller",
|
|
3275
|
+
type: "address"
|
|
3276
|
+
}
|
|
3277
|
+
],
|
|
3278
|
+
name: "maxMint",
|
|
3279
|
+
outputs: [
|
|
3280
|
+
{
|
|
3281
|
+
name: "maxShares",
|
|
3282
|
+
type: "uint256"
|
|
3283
|
+
}
|
|
3284
|
+
],
|
|
3285
|
+
stateMutability: "view",
|
|
3286
|
+
type: "function"
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
inputs: [
|
|
3290
|
+
{
|
|
3291
|
+
name: "owner",
|
|
3292
|
+
type: "address"
|
|
3293
|
+
}
|
|
3294
|
+
],
|
|
3295
|
+
name: "maxRedeem",
|
|
3296
|
+
outputs: [
|
|
3297
|
+
{
|
|
3298
|
+
name: "maxShares",
|
|
3299
|
+
type: "uint256"
|
|
3300
|
+
}
|
|
3301
|
+
],
|
|
3302
|
+
stateMutability: "view",
|
|
3303
|
+
type: "function"
|
|
3304
|
+
},
|
|
3305
|
+
{
|
|
3306
|
+
inputs: [
|
|
3307
|
+
{
|
|
3308
|
+
name: "owner",
|
|
3309
|
+
type: "address"
|
|
3310
|
+
}
|
|
3311
|
+
],
|
|
3312
|
+
name: "maxWithdraw",
|
|
3313
|
+
outputs: [
|
|
3314
|
+
{
|
|
3315
|
+
name: "maxAssets",
|
|
3316
|
+
type: "uint256"
|
|
3317
|
+
}
|
|
3318
|
+
],
|
|
3319
|
+
stateMutability: "view",
|
|
3320
|
+
type: "function"
|
|
3321
|
+
},
|
|
3322
|
+
{
|
|
3323
|
+
inputs: [
|
|
3324
|
+
{
|
|
3325
|
+
name: "shares",
|
|
3326
|
+
type: "uint256"
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
name: "receiver",
|
|
3330
|
+
type: "address"
|
|
3331
|
+
}
|
|
3332
|
+
],
|
|
3333
|
+
name: "mint",
|
|
3334
|
+
outputs: [
|
|
3335
|
+
{
|
|
3336
|
+
name: "assets",
|
|
3337
|
+
type: "uint256"
|
|
3338
|
+
}
|
|
3339
|
+
],
|
|
3340
|
+
stateMutability: "nonpayable",
|
|
3341
|
+
type: "function"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
inputs: [
|
|
3345
|
+
{
|
|
3346
|
+
name: "assets",
|
|
3347
|
+
type: "uint256"
|
|
3348
|
+
}
|
|
3349
|
+
],
|
|
3350
|
+
name: "previewDeposit",
|
|
3351
|
+
outputs: [
|
|
3352
|
+
{
|
|
3353
|
+
name: "shares",
|
|
3354
|
+
type: "uint256"
|
|
3355
|
+
}
|
|
3356
|
+
],
|
|
3357
|
+
stateMutability: "view",
|
|
3358
|
+
type: "function"
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
inputs: [
|
|
3362
|
+
{
|
|
3363
|
+
name: "shares",
|
|
3364
|
+
type: "uint256"
|
|
3365
|
+
}
|
|
3366
|
+
],
|
|
3367
|
+
name: "previewMint",
|
|
3368
|
+
outputs: [
|
|
3369
|
+
{
|
|
3370
|
+
name: "assets",
|
|
3371
|
+
type: "uint256"
|
|
3372
|
+
}
|
|
3373
|
+
],
|
|
3374
|
+
stateMutability: "view",
|
|
3375
|
+
type: "function"
|
|
3376
|
+
},
|
|
3377
|
+
{
|
|
3378
|
+
inputs: [
|
|
3379
|
+
{
|
|
3380
|
+
name: "shares",
|
|
3381
|
+
type: "uint256"
|
|
3382
|
+
}
|
|
3383
|
+
],
|
|
3384
|
+
name: "previewRedeem",
|
|
3385
|
+
outputs: [
|
|
3386
|
+
{
|
|
3387
|
+
name: "assets",
|
|
3388
|
+
type: "uint256"
|
|
3389
|
+
}
|
|
3390
|
+
],
|
|
3391
|
+
stateMutability: "view",
|
|
3392
|
+
type: "function"
|
|
3393
|
+
},
|
|
3394
|
+
{
|
|
3395
|
+
inputs: [
|
|
3396
|
+
{
|
|
3397
|
+
name: "assets",
|
|
3398
|
+
type: "uint256"
|
|
3399
|
+
}
|
|
3400
|
+
],
|
|
3401
|
+
name: "previewWithdraw",
|
|
3402
|
+
outputs: [
|
|
3403
|
+
{
|
|
3404
|
+
name: "shares",
|
|
3405
|
+
type: "uint256"
|
|
3406
|
+
}
|
|
3407
|
+
],
|
|
3408
|
+
stateMutability: "view",
|
|
3409
|
+
type: "function"
|
|
3410
|
+
},
|
|
3411
|
+
{
|
|
3412
|
+
inputs: [
|
|
3413
|
+
{
|
|
3414
|
+
name: "shares",
|
|
3415
|
+
type: "uint256"
|
|
3416
|
+
},
|
|
3417
|
+
{
|
|
3418
|
+
name: "receiver",
|
|
3419
|
+
type: "address"
|
|
3420
|
+
},
|
|
3421
|
+
{
|
|
3422
|
+
name: "owner",
|
|
3423
|
+
type: "address"
|
|
3424
|
+
}
|
|
3425
|
+
],
|
|
3426
|
+
name: "redeem",
|
|
3427
|
+
outputs: [
|
|
3428
|
+
{
|
|
3429
|
+
name: "assets",
|
|
3430
|
+
type: "uint256"
|
|
3431
|
+
}
|
|
3432
|
+
],
|
|
3433
|
+
stateMutability: "nonpayable",
|
|
3434
|
+
type: "function"
|
|
1977
3435
|
},
|
|
1978
3436
|
{
|
|
1979
|
-
type: "function",
|
|
1980
|
-
name: "symbol",
|
|
1981
|
-
stateMutability: "view",
|
|
1982
3437
|
inputs: [],
|
|
3438
|
+
name: "totalAssets",
|
|
1983
3439
|
outputs: [
|
|
1984
3440
|
{
|
|
1985
|
-
|
|
3441
|
+
name: "totalManagedAssets",
|
|
3442
|
+
type: "uint256"
|
|
1986
3443
|
}
|
|
1987
|
-
]
|
|
3444
|
+
],
|
|
3445
|
+
stateMutability: "view",
|
|
3446
|
+
type: "function"
|
|
1988
3447
|
},
|
|
1989
3448
|
{
|
|
1990
|
-
type: "function",
|
|
1991
|
-
name: "totalSupply",
|
|
1992
|
-
stateMutability: "view",
|
|
1993
3449
|
inputs: [],
|
|
3450
|
+
name: "totalSupply",
|
|
1994
3451
|
outputs: [
|
|
1995
3452
|
{
|
|
1996
3453
|
type: "uint256"
|
|
1997
3454
|
}
|
|
1998
|
-
]
|
|
3455
|
+
],
|
|
3456
|
+
stateMutability: "view",
|
|
3457
|
+
type: "function"
|
|
1999
3458
|
},
|
|
2000
3459
|
{
|
|
2001
|
-
type: "function",
|
|
2002
|
-
name: "transfer",
|
|
2003
|
-
stateMutability: "nonpayable",
|
|
2004
3460
|
inputs: [
|
|
2005
3461
|
{
|
|
2006
|
-
name: "
|
|
3462
|
+
name: "to",
|
|
2007
3463
|
type: "address"
|
|
2008
3464
|
},
|
|
2009
3465
|
{
|
|
@@ -2011,23 +3467,23 @@ var erc20Abi = [
|
|
|
2011
3467
|
type: "uint256"
|
|
2012
3468
|
}
|
|
2013
3469
|
],
|
|
3470
|
+
name: "transfer",
|
|
2014
3471
|
outputs: [
|
|
2015
3472
|
{
|
|
2016
3473
|
type: "bool"
|
|
2017
3474
|
}
|
|
2018
|
-
]
|
|
3475
|
+
],
|
|
3476
|
+
stateMutability: "nonpayable",
|
|
3477
|
+
type: "function"
|
|
2019
3478
|
},
|
|
2020
3479
|
{
|
|
2021
|
-
type: "function",
|
|
2022
|
-
name: "transferFrom",
|
|
2023
|
-
stateMutability: "nonpayable",
|
|
2024
3480
|
inputs: [
|
|
2025
3481
|
{
|
|
2026
|
-
name: "
|
|
3482
|
+
name: "from",
|
|
2027
3483
|
type: "address"
|
|
2028
3484
|
},
|
|
2029
3485
|
{
|
|
2030
|
-
name: "
|
|
3486
|
+
name: "to",
|
|
2031
3487
|
type: "address"
|
|
2032
3488
|
},
|
|
2033
3489
|
{
|
|
@@ -2035,31 +3491,62 @@ var erc20Abi = [
|
|
|
2035
3491
|
type: "uint256"
|
|
2036
3492
|
}
|
|
2037
3493
|
],
|
|
3494
|
+
name: "transferFrom",
|
|
2038
3495
|
outputs: [
|
|
2039
3496
|
{
|
|
2040
3497
|
type: "bool"
|
|
2041
3498
|
}
|
|
2042
|
-
]
|
|
3499
|
+
],
|
|
3500
|
+
stateMutability: "nonpayable",
|
|
3501
|
+
type: "function"
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
inputs: [
|
|
3505
|
+
{
|
|
3506
|
+
name: "assets",
|
|
3507
|
+
type: "uint256"
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
name: "receiver",
|
|
3511
|
+
type: "address"
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
name: "owner",
|
|
3515
|
+
type: "address"
|
|
3516
|
+
}
|
|
3517
|
+
],
|
|
3518
|
+
name: "withdraw",
|
|
3519
|
+
outputs: [
|
|
3520
|
+
{
|
|
3521
|
+
name: "shares",
|
|
3522
|
+
type: "uint256"
|
|
3523
|
+
}
|
|
3524
|
+
],
|
|
3525
|
+
stateMutability: "nonpayable",
|
|
3526
|
+
type: "function"
|
|
2043
3527
|
}
|
|
2044
3528
|
];
|
|
2045
3529
|
|
|
2046
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3530
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/contract.js
|
|
2047
3531
|
var aggregate3Signature = "0x82ad56cb";
|
|
2048
3532
|
|
|
2049
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3533
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/contracts.js
|
|
2050
3534
|
var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe";
|
|
2051
3535
|
var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
|
|
2052
3536
|
var erc6492SignatureValidatorByteCode = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";
|
|
2053
3537
|
var multicall3Bytecode = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
|
|
2054
3538
|
|
|
2055
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3539
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/version.js
|
|
2056
3540
|
var version3 = "2.55.2";
|
|
2057
3541
|
|
|
2058
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3542
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/base.js
|
|
2059
3543
|
var errorConfig = {
|
|
2060
3544
|
getDocsUrl: ({ docsBaseUrl, docsPath: docsPath6 = "", docsSlug }) => docsPath6 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath6}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
2061
3545
|
version: `viem@${version3}`
|
|
2062
3546
|
};
|
|
3547
|
+
function setErrorConfig(config) {
|
|
3548
|
+
errorConfig = config;
|
|
3549
|
+
}
|
|
2063
3550
|
var BaseError3 = class _BaseError extends Error {
|
|
2064
3551
|
constructor(shortMessage, args = {}) {
|
|
2065
3552
|
const details = (() => {
|
|
@@ -2139,7 +3626,7 @@ function walk2(err, fn) {
|
|
|
2139
3626
|
return fn ? null : err;
|
|
2140
3627
|
}
|
|
2141
3628
|
|
|
2142
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3629
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/chain.js
|
|
2143
3630
|
var ChainDoesNotSupportContract = class extends BaseError3 {
|
|
2144
3631
|
constructor({ blockNumber, chain, contract }) {
|
|
2145
3632
|
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
@@ -2155,6 +3642,27 @@ var ChainDoesNotSupportContract = class extends BaseError3 {
|
|
|
2155
3642
|
});
|
|
2156
3643
|
}
|
|
2157
3644
|
};
|
|
3645
|
+
var ChainMismatchError = class extends BaseError3 {
|
|
3646
|
+
constructor({ chain, currentChainId }) {
|
|
3647
|
+
super(`The current chain of the wallet (id: ${currentChainId}) does not match the target chain for the transaction (id: ${chain.id} \u2013 ${chain.name}).`, {
|
|
3648
|
+
metaMessages: [
|
|
3649
|
+
`Current Chain ID: ${currentChainId}`,
|
|
3650
|
+
`Expected Chain ID: ${chain.id} \u2013 ${chain.name}`
|
|
3651
|
+
],
|
|
3652
|
+
name: "ChainMismatchError"
|
|
3653
|
+
});
|
|
3654
|
+
}
|
|
3655
|
+
};
|
|
3656
|
+
var ChainNotFoundError = class extends BaseError3 {
|
|
3657
|
+
constructor() {
|
|
3658
|
+
super([
|
|
3659
|
+
"No chain was provided to the request.",
|
|
3660
|
+
"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."
|
|
3661
|
+
].join("\n"), {
|
|
3662
|
+
name: "ChainNotFoundError"
|
|
3663
|
+
});
|
|
3664
|
+
}
|
|
3665
|
+
};
|
|
2158
3666
|
var ClientChainNotConfiguredError = class extends BaseError3 {
|
|
2159
3667
|
constructor() {
|
|
2160
3668
|
super("No chain was provided to the Client.", {
|
|
@@ -2162,8 +3670,13 @@ var ClientChainNotConfiguredError = class extends BaseError3 {
|
|
|
2162
3670
|
});
|
|
2163
3671
|
}
|
|
2164
3672
|
};
|
|
3673
|
+
var InvalidChainIdError = class extends BaseError3 {
|
|
3674
|
+
constructor({ chainId }) {
|
|
3675
|
+
super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
3676
|
+
}
|
|
3677
|
+
};
|
|
2165
3678
|
|
|
2166
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3679
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/solidity.js
|
|
2167
3680
|
var panicReasons = {
|
|
2168
3681
|
1: "An `assert` condition failed.",
|
|
2169
3682
|
17: "Arithmetic operation resulted in underflow or overflow.",
|
|
@@ -2196,7 +3709,7 @@ var solidityPanic = {
|
|
|
2196
3709
|
type: "error"
|
|
2197
3710
|
};
|
|
2198
3711
|
|
|
2199
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3712
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
2200
3713
|
function formatAbiItem2(abiItem, { includeName = false } = {}) {
|
|
2201
3714
|
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
2202
3715
|
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
@@ -2214,7 +3727,7 @@ function formatAbiParam(param, { includeName }) {
|
|
|
2214
3727
|
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
2215
3728
|
}
|
|
2216
3729
|
|
|
2217
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3730
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/data/isHex.js
|
|
2218
3731
|
function isHex(value, { strict = true } = {}) {
|
|
2219
3732
|
if (!value)
|
|
2220
3733
|
return false;
|
|
@@ -2223,14 +3736,14 @@ function isHex(value, { strict = true } = {}) {
|
|
|
2223
3736
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
2224
3737
|
}
|
|
2225
3738
|
|
|
2226
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3739
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/data/size.js
|
|
2227
3740
|
function size3(value) {
|
|
2228
3741
|
if (isHex(value, { strict: false }))
|
|
2229
3742
|
return Math.ceil((value.length - 2) / 2);
|
|
2230
3743
|
return value.length;
|
|
2231
3744
|
}
|
|
2232
3745
|
|
|
2233
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3746
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/abi.js
|
|
2234
3747
|
var AbiConstructorNotFoundError = class extends BaseError3 {
|
|
2235
3748
|
constructor({ docsPath: docsPath6 }) {
|
|
2236
3749
|
super([
|
|
@@ -2253,6 +3766,17 @@ var AbiConstructorParamsNotFoundError = class extends BaseError3 {
|
|
|
2253
3766
|
});
|
|
2254
3767
|
}
|
|
2255
3768
|
};
|
|
3769
|
+
var AbiDecodingDataSizeInvalidError = class extends BaseError3 {
|
|
3770
|
+
constructor({ data, size: size4 }) {
|
|
3771
|
+
super([
|
|
3772
|
+
`Data size of ${size4} bytes is invalid.`,
|
|
3773
|
+
"Size must be in increments of 32 bytes (size % 32 === 0)."
|
|
3774
|
+
].join("\n"), {
|
|
3775
|
+
metaMessages: [`Data: ${data} (${size4} bytes)`],
|
|
3776
|
+
name: "AbiDecodingDataSizeInvalidError"
|
|
3777
|
+
});
|
|
3778
|
+
}
|
|
3779
|
+
};
|
|
2256
3780
|
var AbiDecodingDataSizeTooSmallError = class extends BaseError3 {
|
|
2257
3781
|
constructor({ data, params, size: size4 }) {
|
|
2258
3782
|
super([`Data size of ${size4} bytes is too small for given parameters.`].join("\n"), {
|
|
@@ -2532,8 +4056,15 @@ var InvalidDefinitionTypeError = class extends BaseError3 {
|
|
|
2532
4056
|
].join("\n"), { name: "InvalidDefinitionTypeError" });
|
|
2533
4057
|
}
|
|
2534
4058
|
};
|
|
4059
|
+
var UnsupportedPackedAbiType = class extends BaseError3 {
|
|
4060
|
+
constructor(type) {
|
|
4061
|
+
super(`Type "${type}" is not supported for packed encoding.`, {
|
|
4062
|
+
name: "UnsupportedPackedAbiType"
|
|
4063
|
+
});
|
|
4064
|
+
}
|
|
4065
|
+
};
|
|
2535
4066
|
|
|
2536
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4067
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/data.js
|
|
2537
4068
|
var SliceOffsetOutOfBoundsError3 = class extends BaseError3 {
|
|
2538
4069
|
constructor({ offset, position, size: size4 }) {
|
|
2539
4070
|
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size4}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
@@ -2550,7 +4081,7 @@ var InvalidBytesLengthError = class extends BaseError3 {
|
|
|
2550
4081
|
}
|
|
2551
4082
|
};
|
|
2552
4083
|
|
|
2553
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4084
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/data/slice.js
|
|
2554
4085
|
function slice3(value, start, end, { strict } = {}) {
|
|
2555
4086
|
if (isHex(value, { strict: false }))
|
|
2556
4087
|
return sliceHex(value, start, end, {
|
|
@@ -2592,7 +4123,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
2592
4123
|
return value;
|
|
2593
4124
|
}
|
|
2594
4125
|
|
|
2595
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4126
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/data/pad.js
|
|
2596
4127
|
function pad3(hexOrBytes, { dir, size: size4 = 32 } = {}) {
|
|
2597
4128
|
if (typeof hexOrBytes === "string")
|
|
2598
4129
|
return padHex(hexOrBytes, { dir, size: size4 });
|
|
@@ -2627,7 +4158,7 @@ function padBytes(bytes, { dir, size: size4 = 32 } = {}) {
|
|
|
2627
4158
|
return paddedBytes;
|
|
2628
4159
|
}
|
|
2629
4160
|
|
|
2630
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4161
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/encoding.js
|
|
2631
4162
|
var IntegerOutOfRangeError2 = class extends BaseError3 {
|
|
2632
4163
|
constructor({ max, min, signed, size: size4, value }) {
|
|
2633
4164
|
super(`Number "${value}" is not in safe ${size4 ? `${size4 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
@@ -2645,13 +4176,35 @@ var InvalidHexBooleanError = class extends BaseError3 {
|
|
|
2645
4176
|
super(`Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
2646
4177
|
}
|
|
2647
4178
|
};
|
|
4179
|
+
var InvalidHexValueError2 = class extends BaseError3 {
|
|
4180
|
+
constructor(value) {
|
|
4181
|
+
super(`Hex value "${value}" is an odd length (${value.length}). It must be an even length.`, { name: "InvalidHexValueError" });
|
|
4182
|
+
}
|
|
4183
|
+
};
|
|
4184
|
+
var RlpDepthLimitExceededError = class extends BaseError3 {
|
|
4185
|
+
constructor({ limit }) {
|
|
4186
|
+
super(`RLP depth limit of \`${limit}\` exceeded.`, {
|
|
4187
|
+
name: "RlpDepthLimitExceededError"
|
|
4188
|
+
});
|
|
4189
|
+
}
|
|
4190
|
+
};
|
|
4191
|
+
var RlpListBoundaryExceededError = class extends BaseError3 {
|
|
4192
|
+
constructor({ consumed, declared }) {
|
|
4193
|
+
super(`RLP list items consumed \`${consumed}\` bytes but the list declared a length of \`${declared}\`.`, { name: "RlpListBoundaryExceededError" });
|
|
4194
|
+
}
|
|
4195
|
+
};
|
|
4196
|
+
var RlpTrailingBytesError = class extends BaseError3 {
|
|
4197
|
+
constructor({ count }) {
|
|
4198
|
+
super(`RLP payload encodes a single item, but \`${count}\` trailing ${count === 1 ? "byte remains" : "bytes remain"}.`, { name: "RlpTrailingBytesError" });
|
|
4199
|
+
}
|
|
4200
|
+
};
|
|
2648
4201
|
var SizeOverflowError3 = class extends BaseError3 {
|
|
2649
4202
|
constructor({ givenSize, maxSize }) {
|
|
2650
4203
|
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
2651
4204
|
}
|
|
2652
4205
|
};
|
|
2653
4206
|
|
|
2654
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4207
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/data/trim.js
|
|
2655
4208
|
function trim3(hexOrBytes, { dir = "left" } = {}) {
|
|
2656
4209
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
2657
4210
|
let sliceLength = 0;
|
|
@@ -2670,7 +4223,7 @@ function trim3(hexOrBytes, { dir = "left" } = {}) {
|
|
|
2670
4223
|
return data;
|
|
2671
4224
|
}
|
|
2672
4225
|
|
|
2673
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4226
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
2674
4227
|
function assertSize3(hexOrBytes, { size: size4 }) {
|
|
2675
4228
|
if (size3(hexOrBytes) > size4)
|
|
2676
4229
|
throw new SizeOverflowError3({
|
|
@@ -2678,6 +4231,19 @@ function assertSize3(hexOrBytes, { size: size4 }) {
|
|
|
2678
4231
|
maxSize: size4
|
|
2679
4232
|
});
|
|
2680
4233
|
}
|
|
4234
|
+
function fromHex2(hex, toOrOpts) {
|
|
4235
|
+
const opts = typeof toOrOpts === "string" ? { to: toOrOpts } : toOrOpts;
|
|
4236
|
+
const to = opts.to;
|
|
4237
|
+
if (to === "number")
|
|
4238
|
+
return hexToNumber(hex, opts);
|
|
4239
|
+
if (to === "bigint")
|
|
4240
|
+
return hexToBigInt(hex, opts);
|
|
4241
|
+
if (to === "string")
|
|
4242
|
+
return hexToString(hex, opts);
|
|
4243
|
+
if (to === "boolean")
|
|
4244
|
+
return hexToBool(hex, opts);
|
|
4245
|
+
return hexToBytes(hex, opts);
|
|
4246
|
+
}
|
|
2681
4247
|
function hexToBigInt(hex, opts = {}) {
|
|
2682
4248
|
const { signed } = opts;
|
|
2683
4249
|
if (opts.size)
|
|
@@ -2716,10 +4282,18 @@ function hexToNumber(hex, opts = {}) {
|
|
|
2716
4282
|
});
|
|
2717
4283
|
return number;
|
|
2718
4284
|
}
|
|
4285
|
+
function hexToString(hex, opts = {}) {
|
|
4286
|
+
let bytes = hexToBytes(hex);
|
|
4287
|
+
if (opts.size) {
|
|
4288
|
+
assertSize3(bytes, { size: opts.size });
|
|
4289
|
+
bytes = trim3(bytes, { dir: "right" });
|
|
4290
|
+
}
|
|
4291
|
+
return new TextDecoder().decode(bytes);
|
|
4292
|
+
}
|
|
2719
4293
|
|
|
2720
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4294
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
2721
4295
|
var hexes2 = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
2722
|
-
function
|
|
4296
|
+
function toHex2(value, opts = {}) {
|
|
2723
4297
|
if (typeof value === "number" || typeof value === "bigint")
|
|
2724
4298
|
return numberToHex(value, opts);
|
|
2725
4299
|
if (typeof value === "string") {
|
|
@@ -2783,7 +4357,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
2783
4357
|
return bytesToHex(value, opts);
|
|
2784
4358
|
}
|
|
2785
4359
|
|
|
2786
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4360
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
2787
4361
|
var encoder4 = /* @__PURE__ */ new TextEncoder();
|
|
2788
4362
|
function toBytes(value, opts = {}) {
|
|
2789
4363
|
if (typeof value === "number" || typeof value === "bigint")
|
|
@@ -2854,22 +4428,22 @@ function stringToBytes(value, opts = {}) {
|
|
|
2854
4428
|
return bytes;
|
|
2855
4429
|
}
|
|
2856
4430
|
|
|
2857
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4431
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
2858
4432
|
function keccak256(value, to_) {
|
|
2859
4433
|
const to = to_ || "hex";
|
|
2860
4434
|
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
2861
4435
|
if (to === "bytes")
|
|
2862
4436
|
return bytes;
|
|
2863
|
-
return
|
|
4437
|
+
return toHex2(bytes);
|
|
2864
4438
|
}
|
|
2865
4439
|
|
|
2866
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4440
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/hashSignature.js
|
|
2867
4441
|
var hash = (value) => keccak256(toBytes(value));
|
|
2868
4442
|
function hashSignature(sig) {
|
|
2869
4443
|
return hash(sig);
|
|
2870
4444
|
}
|
|
2871
4445
|
|
|
2872
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4446
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/normalizeSignature.js
|
|
2873
4447
|
function normalizeSignature(signature) {
|
|
2874
4448
|
let active = true;
|
|
2875
4449
|
let current = "";
|
|
@@ -2913,7 +4487,7 @@ function normalizeSignature(signature) {
|
|
|
2913
4487
|
return result;
|
|
2914
4488
|
}
|
|
2915
4489
|
|
|
2916
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4490
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/toSignature.js
|
|
2917
4491
|
var toSignature = (def) => {
|
|
2918
4492
|
const def_ = (() => {
|
|
2919
4493
|
if (typeof def === "string")
|
|
@@ -2923,15 +4497,15 @@ var toSignature = (def) => {
|
|
|
2923
4497
|
return normalizeSignature(def_);
|
|
2924
4498
|
};
|
|
2925
4499
|
|
|
2926
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4500
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/toSignatureHash.js
|
|
2927
4501
|
function toSignatureHash(fn) {
|
|
2928
4502
|
return hashSignature(toSignature(fn));
|
|
2929
4503
|
}
|
|
2930
4504
|
|
|
2931
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4505
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
|
|
2932
4506
|
var toFunctionSelector = (fn) => slice3(toSignatureHash(fn), 0, 4);
|
|
2933
4507
|
|
|
2934
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4508
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/address.js
|
|
2935
4509
|
var InvalidAddressError = class extends BaseError3 {
|
|
2936
4510
|
constructor({ address }) {
|
|
2937
4511
|
super(`Address "${address}" is invalid.`, {
|
|
@@ -2944,7 +4518,7 @@ var InvalidAddressError = class extends BaseError3 {
|
|
|
2944
4518
|
}
|
|
2945
4519
|
};
|
|
2946
4520
|
|
|
2947
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4521
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/lru.js
|
|
2948
4522
|
var LruMap = class extends Map {
|
|
2949
4523
|
constructor(size4) {
|
|
2950
4524
|
super();
|
|
@@ -2977,7 +4551,7 @@ var LruMap = class extends Map {
|
|
|
2977
4551
|
}
|
|
2978
4552
|
};
|
|
2979
4553
|
|
|
2980
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4554
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/address/isAddress.js
|
|
2981
4555
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
2982
4556
|
var isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
2983
4557
|
function isAddress(address, options) {
|
|
@@ -2998,7 +4572,7 @@ function isAddress(address, options) {
|
|
|
2998
4572
|
return result;
|
|
2999
4573
|
}
|
|
3000
4574
|
|
|
3001
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4575
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/address/getAddress.js
|
|
3002
4576
|
var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
3003
4577
|
function checksumAddress(address_, chainId) {
|
|
3004
4578
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
@@ -3024,7 +4598,7 @@ function getAddress(address, chainId) {
|
|
|
3024
4598
|
return checksumAddress(address, chainId);
|
|
3025
4599
|
}
|
|
3026
4600
|
|
|
3027
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4601
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/cursor.js
|
|
3028
4602
|
var NegativeOffsetError = class extends BaseError3 {
|
|
3029
4603
|
constructor({ offset }) {
|
|
3030
4604
|
super(`Offset \`${offset}\` cannot be negative.`, {
|
|
@@ -3043,7 +4617,7 @@ var RecursiveReadLimitExceededError = class extends BaseError3 {
|
|
|
3043
4617
|
}
|
|
3044
4618
|
};
|
|
3045
4619
|
|
|
3046
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4620
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/cursor.js
|
|
3047
4621
|
var staticCursor = {
|
|
3048
4622
|
bytes: new Uint8Array(),
|
|
3049
4623
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -3212,7 +4786,20 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
3212
4786
|
return cursor;
|
|
3213
4787
|
}
|
|
3214
4788
|
|
|
3215
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4789
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/encoding/fromBytes.js
|
|
4790
|
+
function fromBytes2(bytes, toOrOpts) {
|
|
4791
|
+
const opts = typeof toOrOpts === "string" ? { to: toOrOpts } : toOrOpts;
|
|
4792
|
+
const to = opts.to;
|
|
4793
|
+
if (to === "number")
|
|
4794
|
+
return bytesToNumber(bytes, opts);
|
|
4795
|
+
if (to === "bigint")
|
|
4796
|
+
return bytesToBigInt(bytes, opts);
|
|
4797
|
+
if (to === "boolean")
|
|
4798
|
+
return bytesToBool(bytes, opts);
|
|
4799
|
+
if (to === "string")
|
|
4800
|
+
return bytesToString(bytes, opts);
|
|
4801
|
+
return bytesToHex(bytes, opts);
|
|
4802
|
+
}
|
|
3216
4803
|
function bytesToBigInt(bytes, opts = {}) {
|
|
3217
4804
|
if (typeof opts.size !== "undefined")
|
|
3218
4805
|
assertSize3(bytes, { size: opts.size });
|
|
@@ -3244,8 +4831,8 @@ function bytesToString(bytes_, opts = {}) {
|
|
|
3244
4831
|
return new TextDecoder().decode(bytes);
|
|
3245
4832
|
}
|
|
3246
4833
|
|
|
3247
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
3248
|
-
function
|
|
4834
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/data/concat.js
|
|
4835
|
+
function concat3(values) {
|
|
3249
4836
|
if (typeof values[0] === "string")
|
|
3250
4837
|
return concatHex(values);
|
|
3251
4838
|
return concatBytes(values);
|
|
@@ -3267,11 +4854,12 @@ function concatHex(values) {
|
|
|
3267
4854
|
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
3268
4855
|
}
|
|
3269
4856
|
|
|
3270
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4857
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/regex.js
|
|
4858
|
+
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
3271
4859
|
var bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
3272
4860
|
var integerRegex2 = /^(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)?$/;
|
|
3273
4861
|
|
|
3274
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
4862
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
|
|
3275
4863
|
function encodeAbiParameters(params, values) {
|
|
3276
4864
|
if (params.length !== values.length)
|
|
3277
4865
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -3500,7 +5088,7 @@ function isDynamicType(param) {
|
|
|
3500
5088
|
return false;
|
|
3501
5089
|
}
|
|
3502
5090
|
|
|
3503
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5091
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
|
|
3504
5092
|
function decodeAbiParameters(params, data) {
|
|
3505
5093
|
const bytes = typeof data === "string" ? hexToBytes(data) : data;
|
|
3506
5094
|
const cursor = createCursor(bytes);
|
|
@@ -3696,7 +5284,7 @@ function hasDynamicChild(param) {
|
|
|
3696
5284
|
return false;
|
|
3697
5285
|
}
|
|
3698
5286
|
|
|
3699
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5287
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
|
|
3700
5288
|
function decodeErrorResult(parameters) {
|
|
3701
5289
|
const { abi, data, cause } = parameters;
|
|
3702
5290
|
const signature = slice3(data, 0, 4);
|
|
@@ -3716,13 +5304,13 @@ function decodeErrorResult(parameters) {
|
|
|
3716
5304
|
};
|
|
3717
5305
|
}
|
|
3718
5306
|
|
|
3719
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5307
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/stringify.js
|
|
3720
5308
|
var stringify2 = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
|
|
3721
5309
|
const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
|
|
3722
5310
|
return typeof replacer === "function" ? replacer(key, value2) : value2;
|
|
3723
5311
|
}, space);
|
|
3724
5312
|
|
|
3725
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5313
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
|
|
3726
5314
|
function formatAbiItemWithArgs({ abiItem, args, includeFunctionName = true, includeName = false }) {
|
|
3727
5315
|
if (!("name" in abiItem))
|
|
3728
5316
|
return;
|
|
@@ -3733,10 +5321,10 @@ function formatAbiItemWithArgs({ abiItem, args, includeFunctionName = true, incl
|
|
|
3733
5321
|
return `${includeFunctionName ? abiItem.name : ""}(${abiItem.inputs.map((input, i) => `${includeName && input.name ? `${input.name}: ` : ""}${typeof args[i] === "object" ? stringify2(args[i]) : args[i]}`).join(", ")})`;
|
|
3734
5322
|
}
|
|
3735
5323
|
|
|
3736
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5324
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/toEventSelector.js
|
|
3737
5325
|
var toEventSelector = toSignatureHash;
|
|
3738
5326
|
|
|
3739
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5327
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/getAbiItem.js
|
|
3740
5328
|
function getAbiItem(parameters) {
|
|
3741
5329
|
const { abi, args = [], name } = parameters;
|
|
3742
5330
|
const isSelector = isHex(name, { strict: false });
|
|
@@ -3848,7 +5436,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
3848
5436
|
return;
|
|
3849
5437
|
}
|
|
3850
5438
|
|
|
3851
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5439
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/unit.js
|
|
3852
5440
|
var etherUnits = {
|
|
3853
5441
|
gwei: 9,
|
|
3854
5442
|
wei: 18
|
|
@@ -3857,8 +5445,12 @@ var gweiUnits = {
|
|
|
3857
5445
|
ether: -9,
|
|
3858
5446
|
wei: 9
|
|
3859
5447
|
};
|
|
5448
|
+
var weiUnits = {
|
|
5449
|
+
ether: -18,
|
|
5450
|
+
gwei: -9
|
|
5451
|
+
};
|
|
3860
5452
|
|
|
3861
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5453
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
3862
5454
|
function formatUnits(value, decimals) {
|
|
3863
5455
|
let display = value.toString();
|
|
3864
5456
|
const negative = display.startsWith("-");
|
|
@@ -3873,17 +5465,17 @@ function formatUnits(value, decimals) {
|
|
|
3873
5465
|
return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
|
|
3874
5466
|
}
|
|
3875
5467
|
|
|
3876
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5468
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/unit/formatEther.js
|
|
3877
5469
|
function formatEther(wei, unit = "wei") {
|
|
3878
5470
|
return formatUnits(wei, etherUnits[unit]);
|
|
3879
5471
|
}
|
|
3880
5472
|
|
|
3881
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5473
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/unit/formatGwei.js
|
|
3882
5474
|
function formatGwei(wei, unit = "wei") {
|
|
3883
5475
|
return formatUnits(wei, gweiUnits[unit]);
|
|
3884
5476
|
}
|
|
3885
5477
|
|
|
3886
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5478
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/stateOverride.js
|
|
3887
5479
|
var AccountStateConflictError = class extends BaseError3 {
|
|
3888
5480
|
constructor({ address }) {
|
|
3889
5481
|
super(`State for account "${address}" is set multiple times.`, {
|
|
@@ -3929,7 +5521,7 @@ function prettyStateOverride(stateOverride) {
|
|
|
3929
5521
|
}, " State Override:\n").slice(0, -1);
|
|
3930
5522
|
}
|
|
3931
5523
|
|
|
3932
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5524
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/transaction.js
|
|
3933
5525
|
function prettyPrint(args) {
|
|
3934
5526
|
const entries = Object.entries(args).map(([key, value]) => {
|
|
3935
5527
|
if (value === void 0 || value === false)
|
|
@@ -3939,6 +5531,28 @@ function prettyPrint(args) {
|
|
|
3939
5531
|
const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
|
|
3940
5532
|
return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
|
|
3941
5533
|
}
|
|
5534
|
+
var FeeConflictError = class extends BaseError3 {
|
|
5535
|
+
constructor() {
|
|
5536
|
+
super([
|
|
5537
|
+
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
5538
|
+
"Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."
|
|
5539
|
+
].join("\n"), { name: "FeeConflictError" });
|
|
5540
|
+
}
|
|
5541
|
+
};
|
|
5542
|
+
var InvalidLegacyVError = class extends BaseError3 {
|
|
5543
|
+
constructor({ v }) {
|
|
5544
|
+
super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
|
|
5545
|
+
name: "InvalidLegacyVError"
|
|
5546
|
+
});
|
|
5547
|
+
}
|
|
5548
|
+
};
|
|
5549
|
+
var InvalidYParityError = class extends BaseError3 {
|
|
5550
|
+
constructor({ yParity }) {
|
|
5551
|
+
super(`Invalid \`yParity\` value "${yParity}". Expected 0 or 1.`, {
|
|
5552
|
+
name: "InvalidYParityError"
|
|
5553
|
+
});
|
|
5554
|
+
}
|
|
5555
|
+
};
|
|
3942
5556
|
var InvalidSerializableTransactionError = class extends BaseError3 {
|
|
3943
5557
|
constructor({ transaction }) {
|
|
3944
5558
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
@@ -3960,6 +5574,51 @@ var InvalidSerializableTransactionError = class extends BaseError3 {
|
|
|
3960
5574
|
});
|
|
3961
5575
|
}
|
|
3962
5576
|
};
|
|
5577
|
+
var InvalidSerializedTransactionTypeError = class extends BaseError3 {
|
|
5578
|
+
constructor({ serializedType }) {
|
|
5579
|
+
super(`Serialized transaction type "${serializedType}" is invalid.`, {
|
|
5580
|
+
name: "InvalidSerializedTransactionType"
|
|
5581
|
+
});
|
|
5582
|
+
Object.defineProperty(this, "serializedType", {
|
|
5583
|
+
enumerable: true,
|
|
5584
|
+
configurable: true,
|
|
5585
|
+
writable: true,
|
|
5586
|
+
value: void 0
|
|
5587
|
+
});
|
|
5588
|
+
this.serializedType = serializedType;
|
|
5589
|
+
}
|
|
5590
|
+
};
|
|
5591
|
+
var InvalidSerializedTransactionError = class extends BaseError3 {
|
|
5592
|
+
constructor({ attributes, serializedTransaction, type }) {
|
|
5593
|
+
const missing = Object.entries(attributes).map(([key, value]) => typeof value === "undefined" ? key : void 0).filter(Boolean);
|
|
5594
|
+
super(`Invalid serialized transaction of type "${type}" was provided.`, {
|
|
5595
|
+
metaMessages: [
|
|
5596
|
+
`Serialized Transaction: "${serializedTransaction}"`,
|
|
5597
|
+
missing.length > 0 ? `Missing Attributes: ${missing.join(", ")}` : ""
|
|
5598
|
+
].filter(Boolean),
|
|
5599
|
+
name: "InvalidSerializedTransactionError"
|
|
5600
|
+
});
|
|
5601
|
+
Object.defineProperty(this, "serializedTransaction", {
|
|
5602
|
+
enumerable: true,
|
|
5603
|
+
configurable: true,
|
|
5604
|
+
writable: true,
|
|
5605
|
+
value: void 0
|
|
5606
|
+
});
|
|
5607
|
+
Object.defineProperty(this, "type", {
|
|
5608
|
+
enumerable: true,
|
|
5609
|
+
configurable: true,
|
|
5610
|
+
writable: true,
|
|
5611
|
+
value: void 0
|
|
5612
|
+
});
|
|
5613
|
+
this.serializedTransaction = serializedTransaction;
|
|
5614
|
+
this.type = type;
|
|
5615
|
+
}
|
|
5616
|
+
};
|
|
5617
|
+
var InvalidStorageKeySizeError = class extends BaseError3 {
|
|
5618
|
+
constructor({ storageKey }) {
|
|
5619
|
+
super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
5620
|
+
}
|
|
5621
|
+
};
|
|
3963
5622
|
var TransactionExecutionError = class extends BaseError3 {
|
|
3964
5623
|
constructor(cause, { account, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value }) {
|
|
3965
5624
|
const prettyArgs = prettyPrint({
|
|
@@ -4043,7 +5702,7 @@ var WaitForTransactionReceiptTimeoutError = class extends BaseError3 {
|
|
|
4043
5702
|
}
|
|
4044
5703
|
};
|
|
4045
5704
|
|
|
4046
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5705
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/utils.js
|
|
4047
5706
|
var getContractAddress = (address) => address;
|
|
4048
5707
|
function getAbortError(signal) {
|
|
4049
5708
|
if (signal?.reason)
|
|
@@ -4070,7 +5729,7 @@ var getUrl = (url) => {
|
|
|
4070
5729
|
}
|
|
4071
5730
|
};
|
|
4072
5731
|
|
|
4073
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5732
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/contract.js
|
|
4074
5733
|
var CallExecutionError = class extends BaseError3 {
|
|
4075
5734
|
constructor(cause, { account: account_, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
|
|
4076
5735
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -4309,7 +5968,7 @@ var RawContractError = class extends BaseError3 {
|
|
|
4309
5968
|
}
|
|
4310
5969
|
};
|
|
4311
5970
|
|
|
4312
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5971
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
|
|
4313
5972
|
var docsPath = "/docs/contract/decodeFunctionResult";
|
|
4314
5973
|
function decodeFunctionResult(parameters) {
|
|
4315
5974
|
const { abi, args, functionName, data } = parameters;
|
|
@@ -4332,7 +5991,7 @@ function decodeFunctionResult(parameters) {
|
|
|
4332
5991
|
return void 0;
|
|
4333
5992
|
}
|
|
4334
5993
|
|
|
4335
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
5994
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/encodeDeployData.js
|
|
4336
5995
|
var docsPath2 = "/docs/contract/encodeDeployData";
|
|
4337
5996
|
function encodeDeployData(parameters) {
|
|
4338
5997
|
const { abi, args, bytecode } = parameters;
|
|
@@ -4349,7 +6008,7 @@ function encodeDeployData(parameters) {
|
|
|
4349
6008
|
return concatHex([bytecode, data]);
|
|
4350
6009
|
}
|
|
4351
6010
|
|
|
4352
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6011
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
|
|
4353
6012
|
var docsPath3 = "/docs/contract/encodeFunctionData";
|
|
4354
6013
|
function prepareEncodeFunctionData(parameters) {
|
|
4355
6014
|
const { abi, args, functionName } = parameters;
|
|
@@ -4372,7 +6031,7 @@ function prepareEncodeFunctionData(parameters) {
|
|
|
4372
6031
|
};
|
|
4373
6032
|
}
|
|
4374
6033
|
|
|
4375
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6034
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
|
|
4376
6035
|
function encodeFunctionData(parameters) {
|
|
4377
6036
|
const { args } = parameters;
|
|
4378
6037
|
const { abi, functionName } = (() => {
|
|
@@ -4386,7 +6045,7 @@ function encodeFunctionData(parameters) {
|
|
|
4386
6045
|
return concatHex([signature, data ?? "0x"]);
|
|
4387
6046
|
}
|
|
4388
6047
|
|
|
4389
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6048
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/address/isAddressEqual.js
|
|
4390
6049
|
function isAddressEqual(a, b) {
|
|
4391
6050
|
if (!isAddress(a, { strict: false }))
|
|
4392
6051
|
throw new InvalidAddressError({ address: a });
|
|
@@ -4395,7 +6054,7 @@ function isAddressEqual(a, b) {
|
|
|
4395
6054
|
return a.toLowerCase() === b.toLowerCase();
|
|
4396
6055
|
}
|
|
4397
6056
|
|
|
4398
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6057
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/block/formatBlockParameter.js
|
|
4399
6058
|
function formatBlockParameter(parameters) {
|
|
4400
6059
|
const { blockHash, blockNumber, blockTag, requireCanonical } = parameters;
|
|
4401
6060
|
if (requireCanonical !== void 0 && !blockHash)
|
|
@@ -4407,7 +6066,7 @@ function formatBlockParameter(parameters) {
|
|
|
4407
6066
|
return blockTag ?? "latest";
|
|
4408
6067
|
}
|
|
4409
6068
|
|
|
4410
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6069
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
|
|
4411
6070
|
function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
4412
6071
|
const contract = chain?.contracts?.[name];
|
|
4413
6072
|
if (!contract)
|
|
@@ -4427,7 +6086,7 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
|
|
|
4427
6086
|
return contract.address;
|
|
4428
6087
|
}
|
|
4429
6088
|
|
|
4430
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6089
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/node.js
|
|
4431
6090
|
var ExecutionRevertedError = class extends BaseError3 {
|
|
4432
6091
|
constructor({ cause, message } = {}) {
|
|
4433
6092
|
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
@@ -4606,7 +6265,7 @@ var UnknownNodeError = class extends BaseError3 {
|
|
|
4606
6265
|
}
|
|
4607
6266
|
};
|
|
4608
6267
|
|
|
4609
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6268
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/request.js
|
|
4610
6269
|
var HttpRequestError = class extends BaseError3 {
|
|
4611
6270
|
constructor({ body, cause, details, headers, status, url }) {
|
|
4612
6271
|
super("HTTP request failed.", {
|
|
@@ -4671,6 +6330,26 @@ var ResponseBodyTooLargeError = class extends BaseError3 {
|
|
|
4671
6330
|
this.size = size4;
|
|
4672
6331
|
}
|
|
4673
6332
|
};
|
|
6333
|
+
var WebSocketRequestError = class extends BaseError3 {
|
|
6334
|
+
constructor({ body, cause, details, url }) {
|
|
6335
|
+
super("WebSocket request failed.", {
|
|
6336
|
+
cause,
|
|
6337
|
+
details,
|
|
6338
|
+
metaMessages: [
|
|
6339
|
+
`URL: ${getUrl(url)}`,
|
|
6340
|
+
body && `Request body: ${stringify2(body)}`
|
|
6341
|
+
].filter(Boolean),
|
|
6342
|
+
name: "WebSocketRequestError"
|
|
6343
|
+
});
|
|
6344
|
+
Object.defineProperty(this, "url", {
|
|
6345
|
+
enumerable: true,
|
|
6346
|
+
configurable: true,
|
|
6347
|
+
writable: true,
|
|
6348
|
+
value: void 0
|
|
6349
|
+
});
|
|
6350
|
+
this.url = url;
|
|
6351
|
+
}
|
|
6352
|
+
};
|
|
4674
6353
|
var RpcRequestError = class extends BaseError3 {
|
|
4675
6354
|
constructor({ body, error, url }) {
|
|
4676
6355
|
super("RPC Request failed.", {
|
|
@@ -4702,6 +6381,21 @@ var RpcRequestError = class extends BaseError3 {
|
|
|
4702
6381
|
this.url = url;
|
|
4703
6382
|
}
|
|
4704
6383
|
};
|
|
6384
|
+
var SocketClosedError = class extends BaseError3 {
|
|
6385
|
+
constructor({ url } = {}) {
|
|
6386
|
+
super("The socket has been closed.", {
|
|
6387
|
+
metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean),
|
|
6388
|
+
name: "SocketClosedError"
|
|
6389
|
+
});
|
|
6390
|
+
Object.defineProperty(this, "url", {
|
|
6391
|
+
enumerable: true,
|
|
6392
|
+
configurable: true,
|
|
6393
|
+
writable: true,
|
|
6394
|
+
value: void 0
|
|
6395
|
+
});
|
|
6396
|
+
this.url = url;
|
|
6397
|
+
}
|
|
6398
|
+
};
|
|
4705
6399
|
var TimeoutError = class extends BaseError3 {
|
|
4706
6400
|
constructor({ body, url }) {
|
|
4707
6401
|
super("The request took too long to respond.", {
|
|
@@ -4719,7 +6413,7 @@ var TimeoutError = class extends BaseError3 {
|
|
|
4719
6413
|
}
|
|
4720
6414
|
};
|
|
4721
6415
|
|
|
4722
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6416
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/rpc.js
|
|
4723
6417
|
var unknownErrorCode = -1;
|
|
4724
6418
|
var RpcError = class extends BaseError3 {
|
|
4725
6419
|
constructor(cause, { code, docsPath: docsPath6, metaMessages, name, shortMessage }) {
|
|
@@ -5162,7 +6856,7 @@ var UnknownRpcError = class extends RpcError {
|
|
|
5162
6856
|
}
|
|
5163
6857
|
};
|
|
5164
6858
|
|
|
5165
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6859
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/errors/getNodeError.js
|
|
5166
6860
|
function getNodeError(err, args) {
|
|
5167
6861
|
const message = (err.details || "").toLowerCase();
|
|
5168
6862
|
const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
|
|
@@ -5211,7 +6905,7 @@ function getNodeError(err, args) {
|
|
|
5211
6905
|
});
|
|
5212
6906
|
}
|
|
5213
6907
|
|
|
5214
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6908
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/errors/getCallError.js
|
|
5215
6909
|
function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
5216
6910
|
const cause = (() => {
|
|
5217
6911
|
const cause2 = getNodeError(err, args);
|
|
@@ -5225,7 +6919,7 @@ function getCallError(err, { docsPath: docsPath6, ...args }) {
|
|
|
5225
6919
|
});
|
|
5226
6920
|
}
|
|
5227
6921
|
|
|
5228
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6922
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/extract.js
|
|
5229
6923
|
function extract(value_, { format }) {
|
|
5230
6924
|
if (!format)
|
|
5231
6925
|
return {};
|
|
@@ -5244,7 +6938,29 @@ function extract(value_, { format }) {
|
|
|
5244
6938
|
return value;
|
|
5245
6939
|
}
|
|
5246
6940
|
|
|
5247
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
6941
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/formatter.js
|
|
6942
|
+
function defineFormatter(type, format) {
|
|
6943
|
+
return ({ exclude, format: overrides }) => {
|
|
6944
|
+
return {
|
|
6945
|
+
exclude,
|
|
6946
|
+
format: (args, action) => {
|
|
6947
|
+
const formatted = format(args, action);
|
|
6948
|
+
if (exclude) {
|
|
6949
|
+
for (const key of exclude) {
|
|
6950
|
+
delete formatted[key];
|
|
6951
|
+
}
|
|
6952
|
+
}
|
|
6953
|
+
return {
|
|
6954
|
+
...formatted,
|
|
6955
|
+
...overrides(args, action)
|
|
6956
|
+
};
|
|
6957
|
+
},
|
|
6958
|
+
type
|
|
6959
|
+
};
|
|
6960
|
+
};
|
|
6961
|
+
}
|
|
6962
|
+
|
|
6963
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/transactionRequest.js
|
|
5248
6964
|
var rpcTransactionType = {
|
|
5249
6965
|
legacy: "0x0",
|
|
5250
6966
|
eip2930: "0x1",
|
|
@@ -5292,6 +7008,7 @@ function formatTransactionRequest(request, _) {
|
|
|
5292
7008
|
rpcRequest.value = numberToHex(request.value);
|
|
5293
7009
|
return rpcRequest;
|
|
5294
7010
|
}
|
|
7011
|
+
var defineTransactionRequest = /* @__PURE__ */ defineFormatter("transactionRequest", formatTransactionRequest);
|
|
5295
7012
|
function formatAuthorizationList(authorizationList) {
|
|
5296
7013
|
return authorizationList.map((authorization) => ({
|
|
5297
7014
|
address: authorization.address,
|
|
@@ -5304,7 +7021,7 @@ function formatAuthorizationList(authorizationList) {
|
|
|
5304
7021
|
}));
|
|
5305
7022
|
}
|
|
5306
7023
|
|
|
5307
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7024
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/promise/withResolvers.js
|
|
5308
7025
|
function withResolvers() {
|
|
5309
7026
|
let resolve = () => void 0;
|
|
5310
7027
|
let reject = () => void 0;
|
|
@@ -5315,7 +7032,7 @@ function withResolvers() {
|
|
|
5315
7032
|
return { promise, resolve, reject };
|
|
5316
7033
|
}
|
|
5317
7034
|
|
|
5318
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7035
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
|
|
5319
7036
|
var schedulerCache = /* @__PURE__ */ new Map();
|
|
5320
7037
|
function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
5321
7038
|
const exec = async () => {
|
|
@@ -5361,7 +7078,7 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
|
|
|
5361
7078
|
};
|
|
5362
7079
|
}
|
|
5363
7080
|
|
|
5364
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7081
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/stateOverride.js
|
|
5365
7082
|
function serializeStateMapping(stateMapping) {
|
|
5366
7083
|
if (!stateMapping || stateMapping.length === 0)
|
|
5367
7084
|
return void 0;
|
|
@@ -5414,7 +7131,7 @@ function serializeStateOverride(parameters) {
|
|
|
5414
7131
|
return rpcStateOverride;
|
|
5415
7132
|
}
|
|
5416
7133
|
|
|
5417
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7134
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/number.js
|
|
5418
7135
|
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
5419
7136
|
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
5420
7137
|
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
@@ -5512,7 +7229,7 @@ var maxUint240 = 2n ** 240n - 1n;
|
|
|
5512
7229
|
var maxUint248 = 2n ** 248n - 1n;
|
|
5513
7230
|
var maxUint256 = 2n ** 256n - 1n;
|
|
5514
7231
|
|
|
5515
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7232
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/transaction/assertRequest.js
|
|
5516
7233
|
function assertRequest(args) {
|
|
5517
7234
|
const { account: account_, maxFeePerGas, maxPriorityFeePerGas, to } = args;
|
|
5518
7235
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -5526,7 +7243,7 @@ function assertRequest(args) {
|
|
|
5526
7243
|
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
5527
7244
|
}
|
|
5528
7245
|
|
|
5529
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7246
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/call.js
|
|
5530
7247
|
async function call(client, args) {
|
|
5531
7248
|
const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", requireCanonical, accessList, blobs, blockOverrides, code, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, requestOptions, to, value, stateOverride, ...rest } = args;
|
|
5532
7249
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -5630,7 +7347,7 @@ async function call(client, args) {
|
|
|
5630
7347
|
if (isAbortError(err))
|
|
5631
7348
|
throw err;
|
|
5632
7349
|
const data2 = getRevertErrorData(err);
|
|
5633
|
-
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-
|
|
7350
|
+
const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-DHDFKTQV.js");
|
|
5634
7351
|
if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
|
|
5635
7352
|
return {
|
|
5636
7353
|
data: await offchainLookup2(client, { data: data2, requestOptions, to })
|
|
@@ -5768,7 +7485,7 @@ function getRevertErrorData(err) {
|
|
|
5768
7485
|
return typeof error?.data === "object" ? error.data?.data : error.data;
|
|
5769
7486
|
}
|
|
5770
7487
|
|
|
5771
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7488
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/ccip.js
|
|
5772
7489
|
var OffchainLookupError = class extends BaseError3 {
|
|
5773
7490
|
constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
|
|
5774
7491
|
super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
|
|
@@ -5813,7 +7530,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError3 {
|
|
|
5813
7530
|
}
|
|
5814
7531
|
};
|
|
5815
7532
|
|
|
5816
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7533
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
|
|
5817
7534
|
function decodeFunctionData(parameters) {
|
|
5818
7535
|
const { abi, data } = parameters;
|
|
5819
7536
|
const signature = slice3(data, 0, 4);
|
|
@@ -5828,7 +7545,7 @@ function decodeFunctionData(parameters) {
|
|
|
5828
7545
|
};
|
|
5829
7546
|
}
|
|
5830
7547
|
|
|
5831
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7548
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
|
|
5832
7549
|
var docsPath4 = "/docs/contract/encodeErrorResult";
|
|
5833
7550
|
function encodeErrorResult(parameters) {
|
|
5834
7551
|
const { abi, errorName, args } = parameters;
|
|
@@ -5852,7 +7569,7 @@ function encodeErrorResult(parameters) {
|
|
|
5852
7569
|
return concatHex([signature, data]);
|
|
5853
7570
|
}
|
|
5854
7571
|
|
|
5855
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7572
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
|
|
5856
7573
|
var docsPath5 = "/docs/contract/encodeFunctionResult";
|
|
5857
7574
|
function encodeFunctionResult(parameters) {
|
|
5858
7575
|
const { abi, functionName, result } = parameters;
|
|
@@ -5879,7 +7596,7 @@ function encodeFunctionResult(parameters) {
|
|
|
5879
7596
|
return encodeAbiParameters(abiItem.outputs, values);
|
|
5880
7597
|
}
|
|
5881
7598
|
|
|
5882
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7599
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
|
|
5883
7600
|
var localBatchGatewayUrl = "x-batch-gateway:true";
|
|
5884
7601
|
async function localBatchGatewayRequest(parameters) {
|
|
5885
7602
|
const { data, ccipRequest: ccipRequest2 } = parameters;
|
|
@@ -5915,7 +7632,7 @@ function encodeError(error) {
|
|
|
5915
7632
|
});
|
|
5916
7633
|
}
|
|
5917
7634
|
|
|
5918
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@
|
|
7635
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ccip.js
|
|
5919
7636
|
var offchainLookupSignature = "0x556f1830";
|
|
5920
7637
|
var offchainLookupAbiItem = {
|
|
5921
7638
|
name: "OffchainLookup",
|
|
@@ -5961,7 +7678,7 @@ async function offchainLookup(client, { blockNumber, blockTag, data, requestOpti
|
|
|
5961
7678
|
const { data: data_ } = await call(client, {
|
|
5962
7679
|
blockNumber,
|
|
5963
7680
|
blockTag,
|
|
5964
|
-
data:
|
|
7681
|
+
data: concat3([
|
|
5965
7682
|
callbackSelector,
|
|
5966
7683
|
encodeAbiParameters([{ type: "bytes" }, { type: "bytes" }], [result, extraData])
|
|
5967
7684
|
]),
|
|
@@ -6040,74 +7757,302 @@ async function ccipRequest({ data, requestOptions, sender, urls }) {
|
|
|
6040
7757
|
}
|
|
6041
7758
|
|
|
6042
7759
|
export {
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
|
|
7760
|
+
setErrorConfig,
|
|
7761
|
+
BaseError3 as BaseError,
|
|
7762
|
+
IntegerOutOfRangeError2 as IntegerOutOfRangeError,
|
|
7763
|
+
InvalidBytesBooleanError2 as InvalidBytesBooleanError,
|
|
7764
|
+
InvalidHexBooleanError,
|
|
7765
|
+
InvalidHexValueError2 as InvalidHexValueError,
|
|
7766
|
+
RlpDepthLimitExceededError,
|
|
7767
|
+
RlpListBoundaryExceededError,
|
|
7768
|
+
RlpTrailingBytesError,
|
|
7769
|
+
SizeOverflowError3 as SizeOverflowError,
|
|
7770
|
+
SliceOffsetOutOfBoundsError3 as SliceOffsetOutOfBoundsError,
|
|
7771
|
+
SizeExceedsPaddingSizeError3 as SizeExceedsPaddingSizeError,
|
|
7772
|
+
pad3 as pad,
|
|
7773
|
+
padHex,
|
|
7774
|
+
padBytes,
|
|
6048
7775
|
isHex,
|
|
6049
7776
|
size3 as size,
|
|
6050
|
-
BaseError3 as BaseError,
|
|
6051
|
-
AbiDecodingDataSizeTooSmallError,
|
|
6052
|
-
AbiDecodingZeroDataError,
|
|
6053
|
-
AbiEventSignatureEmptyTopicsError,
|
|
6054
|
-
AbiEventSignatureNotFoundError,
|
|
6055
|
-
AbiEventNotFoundError,
|
|
6056
|
-
BytesSizeMismatchError,
|
|
6057
|
-
DecodeLogDataMismatch,
|
|
6058
|
-
DecodeLogTopicsMismatch,
|
|
6059
7777
|
trim3 as trim,
|
|
7778
|
+
toBytes,
|
|
7779
|
+
boolToBytes,
|
|
7780
|
+
hexToBytes,
|
|
7781
|
+
numberToBytes,
|
|
7782
|
+
stringToBytes,
|
|
7783
|
+
fromHex2 as fromHex,
|
|
6060
7784
|
hexToBigInt,
|
|
6061
7785
|
hexToBool,
|
|
6062
7786
|
hexToNumber,
|
|
6063
|
-
|
|
7787
|
+
hexToString,
|
|
7788
|
+
toHex2 as toHex,
|
|
7789
|
+
boolToHex,
|
|
6064
7790
|
bytesToHex,
|
|
6065
7791
|
numberToHex,
|
|
6066
7792
|
stringToHex,
|
|
6067
|
-
|
|
6068
|
-
hexToBytes,
|
|
6069
|
-
stringToBytes,
|
|
6070
|
-
keccak256,
|
|
6071
|
-
toEventSelector,
|
|
6072
|
-
InvalidAddressError,
|
|
7793
|
+
formatBlockParameter,
|
|
6073
7794
|
LruMap,
|
|
7795
|
+
InvalidAddressError,
|
|
7796
|
+
keccak256,
|
|
6074
7797
|
checksumAddress,
|
|
6075
7798
|
getAddress,
|
|
6076
7799
|
isAddress,
|
|
6077
|
-
|
|
7800
|
+
concat3 as concat,
|
|
7801
|
+
concatBytes,
|
|
6078
7802
|
concatHex,
|
|
6079
|
-
slice3 as slice,
|
|
6080
|
-
bytesRegex2 as bytesRegex,
|
|
6081
|
-
integerRegex2 as integerRegex,
|
|
6082
|
-
encodeAbiParameters,
|
|
6083
|
-
getAbiItem,
|
|
6084
|
-
parseAccount,
|
|
6085
|
-
encodeFunctionData,
|
|
6086
7803
|
PositionOutOfBoundsError,
|
|
6087
7804
|
createCursor,
|
|
6088
|
-
|
|
6089
|
-
|
|
7805
|
+
etherUnits,
|
|
7806
|
+
gweiUnits,
|
|
7807
|
+
weiUnits,
|
|
6090
7808
|
formatUnits,
|
|
6091
7809
|
formatEther,
|
|
6092
7810
|
formatGwei,
|
|
6093
7811
|
prettyPrint,
|
|
7812
|
+
FeeConflictError,
|
|
7813
|
+
InvalidLegacyVError,
|
|
7814
|
+
InvalidYParityError,
|
|
6094
7815
|
InvalidSerializableTransactionError,
|
|
7816
|
+
InvalidSerializedTransactionTypeError,
|
|
7817
|
+
InvalidSerializedTransactionError,
|
|
7818
|
+
InvalidStorageKeySizeError,
|
|
6095
7819
|
TransactionExecutionError,
|
|
6096
7820
|
TransactionNotFoundError,
|
|
6097
7821
|
TransactionReceiptNotFoundError,
|
|
6098
7822
|
TransactionReceiptRevertedError,
|
|
6099
7823
|
WaitForTransactionReceiptTimeoutError,
|
|
7824
|
+
maxInt8,
|
|
7825
|
+
maxInt16,
|
|
7826
|
+
maxInt24,
|
|
7827
|
+
maxInt32,
|
|
7828
|
+
maxInt40,
|
|
7829
|
+
maxInt48,
|
|
7830
|
+
maxInt56,
|
|
7831
|
+
maxInt64,
|
|
7832
|
+
maxInt72,
|
|
7833
|
+
maxInt80,
|
|
7834
|
+
maxInt88,
|
|
7835
|
+
maxInt96,
|
|
7836
|
+
maxInt104,
|
|
7837
|
+
maxInt112,
|
|
7838
|
+
maxInt120,
|
|
7839
|
+
maxInt128,
|
|
7840
|
+
maxInt136,
|
|
7841
|
+
maxInt144,
|
|
7842
|
+
maxInt152,
|
|
7843
|
+
maxInt160,
|
|
7844
|
+
maxInt168,
|
|
7845
|
+
maxInt176,
|
|
7846
|
+
maxInt184,
|
|
7847
|
+
maxInt192,
|
|
7848
|
+
maxInt200,
|
|
7849
|
+
maxInt208,
|
|
7850
|
+
maxInt216,
|
|
7851
|
+
maxInt224,
|
|
7852
|
+
maxInt232,
|
|
7853
|
+
maxInt240,
|
|
7854
|
+
maxInt248,
|
|
7855
|
+
maxInt256,
|
|
7856
|
+
minInt8,
|
|
7857
|
+
minInt16,
|
|
7858
|
+
minInt24,
|
|
7859
|
+
minInt32,
|
|
7860
|
+
minInt40,
|
|
7861
|
+
minInt48,
|
|
7862
|
+
minInt56,
|
|
7863
|
+
minInt64,
|
|
7864
|
+
minInt72,
|
|
7865
|
+
minInt80,
|
|
7866
|
+
minInt88,
|
|
7867
|
+
minInt96,
|
|
7868
|
+
minInt104,
|
|
7869
|
+
minInt112,
|
|
7870
|
+
minInt120,
|
|
7871
|
+
minInt128,
|
|
7872
|
+
minInt136,
|
|
7873
|
+
minInt144,
|
|
7874
|
+
minInt152,
|
|
7875
|
+
minInt160,
|
|
7876
|
+
minInt168,
|
|
7877
|
+
minInt176,
|
|
7878
|
+
minInt184,
|
|
7879
|
+
minInt192,
|
|
7880
|
+
minInt200,
|
|
7881
|
+
minInt208,
|
|
7882
|
+
minInt216,
|
|
7883
|
+
minInt224,
|
|
7884
|
+
minInt232,
|
|
7885
|
+
minInt240,
|
|
7886
|
+
minInt248,
|
|
7887
|
+
minInt256,
|
|
7888
|
+
maxUint8,
|
|
7889
|
+
maxUint16,
|
|
7890
|
+
maxUint24,
|
|
7891
|
+
maxUint32,
|
|
7892
|
+
maxUint40,
|
|
7893
|
+
maxUint48,
|
|
7894
|
+
maxUint56,
|
|
7895
|
+
maxUint64,
|
|
7896
|
+
maxUint72,
|
|
7897
|
+
maxUint80,
|
|
7898
|
+
maxUint88,
|
|
7899
|
+
maxUint96,
|
|
7900
|
+
maxUint104,
|
|
7901
|
+
maxUint112,
|
|
7902
|
+
maxUint120,
|
|
7903
|
+
maxUint128,
|
|
7904
|
+
maxUint136,
|
|
7905
|
+
maxUint144,
|
|
7906
|
+
maxUint152,
|
|
7907
|
+
maxUint160,
|
|
7908
|
+
maxUint168,
|
|
7909
|
+
maxUint176,
|
|
7910
|
+
maxUint184,
|
|
7911
|
+
maxUint192,
|
|
7912
|
+
maxUint200,
|
|
7913
|
+
maxUint208,
|
|
7914
|
+
maxUint216,
|
|
7915
|
+
maxUint224,
|
|
7916
|
+
maxUint232,
|
|
7917
|
+
maxUint240,
|
|
7918
|
+
maxUint248,
|
|
7919
|
+
maxUint256,
|
|
7920
|
+
ChainDoesNotSupportContract,
|
|
7921
|
+
ChainMismatchError,
|
|
7922
|
+
ChainNotFoundError,
|
|
7923
|
+
ClientChainNotConfiguredError,
|
|
7924
|
+
InvalidChainIdError,
|
|
7925
|
+
ExecutionRevertedError,
|
|
7926
|
+
FeeCapTooHighError,
|
|
7927
|
+
FeeCapTooLowError,
|
|
7928
|
+
NonceTooHighError,
|
|
7929
|
+
NonceTooLowError,
|
|
7930
|
+
NonceMaxValueError,
|
|
7931
|
+
InsufficientFundsError,
|
|
7932
|
+
IntrinsicGasTooHighError,
|
|
7933
|
+
IntrinsicGasTooLowError,
|
|
7934
|
+
TransactionTypeNotSupportedError,
|
|
7935
|
+
TipAboveFeeCapError,
|
|
7936
|
+
UnknownNodeError,
|
|
7937
|
+
slice3 as slice,
|
|
7938
|
+
sliceBytes,
|
|
7939
|
+
sliceHex,
|
|
7940
|
+
formatAbiItem2 as formatAbiItem,
|
|
7941
|
+
AbiConstructorNotFoundError,
|
|
7942
|
+
AbiConstructorParamsNotFoundError,
|
|
7943
|
+
AbiDecodingDataSizeInvalidError,
|
|
7944
|
+
AbiDecodingDataSizeTooSmallError,
|
|
7945
|
+
AbiDecodingZeroDataError,
|
|
7946
|
+
AbiEncodingArrayLengthMismatchError,
|
|
7947
|
+
AbiEncodingBytesSizeMismatchError,
|
|
7948
|
+
AbiEncodingLengthMismatchError,
|
|
7949
|
+
AbiErrorInputsNotFoundError,
|
|
7950
|
+
AbiErrorNotFoundError,
|
|
7951
|
+
AbiErrorSignatureNotFoundError,
|
|
7952
|
+
AbiEventSignatureEmptyTopicsError,
|
|
7953
|
+
AbiEventSignatureNotFoundError,
|
|
7954
|
+
AbiEventNotFoundError,
|
|
7955
|
+
AbiFunctionNotFoundError,
|
|
7956
|
+
AbiFunctionOutputsNotFoundError,
|
|
7957
|
+
AbiFunctionSignatureNotFoundError,
|
|
7958
|
+
BytesSizeMismatchError,
|
|
7959
|
+
DecodeLogDataMismatch,
|
|
7960
|
+
DecodeLogTopicsMismatch,
|
|
7961
|
+
InvalidAbiEncodingTypeError,
|
|
7962
|
+
InvalidAbiDecodingTypeError,
|
|
7963
|
+
InvalidArrayError,
|
|
7964
|
+
InvalidDefinitionTypeError,
|
|
7965
|
+
UnsupportedPackedAbiType,
|
|
7966
|
+
arrayRegex,
|
|
7967
|
+
bytesRegex2 as bytesRegex,
|
|
7968
|
+
integerRegex2 as integerRegex,
|
|
7969
|
+
encodeAbiParameters,
|
|
7970
|
+
stringify2 as stringify,
|
|
7971
|
+
parseAccount,
|
|
7972
|
+
BaseError2,
|
|
7973
|
+
stringify as stringify2,
|
|
7974
|
+
concat2,
|
|
7975
|
+
from2 as from,
|
|
7976
|
+
fromBoolean,
|
|
7977
|
+
fromBytes,
|
|
7978
|
+
fromNumber,
|
|
7979
|
+
fromString2 as fromString,
|
|
7980
|
+
padLeft,
|
|
7981
|
+
padRight,
|
|
7982
|
+
slice2,
|
|
7983
|
+
size2,
|
|
7984
|
+
trimLeft2 as trimLeft,
|
|
7985
|
+
toNumber,
|
|
7986
|
+
validate2 as validate,
|
|
7987
|
+
IntegerOutOfRangeError as IntegerOutOfRangeError2,
|
|
7988
|
+
concat as concat3,
|
|
7989
|
+
from as from2,
|
|
7990
|
+
fromHex as fromHex2,
|
|
7991
|
+
fromString as fromString2,
|
|
7992
|
+
isEqual,
|
|
7993
|
+
random,
|
|
7994
|
+
size as size3,
|
|
7995
|
+
slice as slice3,
|
|
7996
|
+
toBigInt2 as toBigInt,
|
|
7997
|
+
toBoolean,
|
|
7998
|
+
toHex as toHex2,
|
|
7999
|
+
toNumber2,
|
|
8000
|
+
toString,
|
|
8001
|
+
trimLeft as trimLeft2,
|
|
8002
|
+
validate as validate2,
|
|
8003
|
+
formatAbiParameters,
|
|
8004
|
+
formatAbiItem as formatAbiItem2,
|
|
8005
|
+
InvalidAbiItemError,
|
|
8006
|
+
UnknownTypeError,
|
|
8007
|
+
InvalidAbiParameterError,
|
|
8008
|
+
InvalidAbiParametersError,
|
|
8009
|
+
InvalidParameterError,
|
|
8010
|
+
SolidityProtectedKeywordError,
|
|
8011
|
+
InvalidModifierError,
|
|
8012
|
+
InvalidFunctionModifierError,
|
|
8013
|
+
InvalidAbiTypeParameterError,
|
|
8014
|
+
InvalidSignatureError,
|
|
8015
|
+
UnknownSignatureError,
|
|
8016
|
+
InvalidStructSignatureError,
|
|
8017
|
+
CircularReferenceError,
|
|
8018
|
+
InvalidParenthesisError,
|
|
8019
|
+
parseAbi,
|
|
8020
|
+
parseAbiItem,
|
|
8021
|
+
parseAbiParameter2 as parseAbiParameter,
|
|
8022
|
+
parseAbiParameters,
|
|
8023
|
+
toSignature,
|
|
8024
|
+
toSignatureHash,
|
|
8025
|
+
toEventSelector,
|
|
8026
|
+
toFunctionSelector,
|
|
8027
|
+
getAbiItem,
|
|
8028
|
+
prepareEncodeFunctionData,
|
|
8029
|
+
encodeFunctionData,
|
|
8030
|
+
solidityError,
|
|
8031
|
+
fromBytes2,
|
|
8032
|
+
bytesToBigInt,
|
|
8033
|
+
bytesToBool,
|
|
8034
|
+
bytesToNumber,
|
|
8035
|
+
bytesToString,
|
|
8036
|
+
decodeAbiParameters,
|
|
8037
|
+
decodeErrorResult,
|
|
8038
|
+
AccountStateConflictError,
|
|
8039
|
+
StateAssignmentConflictError,
|
|
6100
8040
|
getAbortError,
|
|
6101
8041
|
isAbortError,
|
|
6102
8042
|
CallExecutionError,
|
|
6103
8043
|
ContractFunctionExecutionError,
|
|
6104
8044
|
ContractFunctionRevertedError,
|
|
6105
8045
|
ContractFunctionZeroDataError,
|
|
8046
|
+
CounterfactualDeploymentFailedError,
|
|
6106
8047
|
RawContractError,
|
|
6107
8048
|
HttpRequestError,
|
|
6108
8049
|
ResponseBodyTooLargeError,
|
|
8050
|
+
WebSocketRequestError,
|
|
6109
8051
|
RpcRequestError,
|
|
8052
|
+
SocketClosedError,
|
|
6110
8053
|
TimeoutError,
|
|
8054
|
+
RpcError,
|
|
8055
|
+
ProviderRpcError,
|
|
6111
8056
|
ParseRpcError,
|
|
6112
8057
|
InvalidRequestRpcError,
|
|
6113
8058
|
MethodNotFoundRpcError,
|
|
@@ -6135,45 +8080,19 @@ export {
|
|
|
6135
8080
|
AtomicityNotSupportedError,
|
|
6136
8081
|
WalletConnectSessionSettlementError,
|
|
6137
8082
|
UnknownRpcError,
|
|
6138
|
-
UnknownNodeError,
|
|
6139
8083
|
getNodeError,
|
|
6140
8084
|
extract,
|
|
8085
|
+
defineFormatter,
|
|
8086
|
+
rpcTransactionType,
|
|
6141
8087
|
formatTransactionRequest,
|
|
8088
|
+
defineTransactionRequest,
|
|
6142
8089
|
serializeStateOverride,
|
|
6143
|
-
maxUint256,
|
|
6144
8090
|
assertRequest,
|
|
6145
|
-
formatBlockParameter,
|
|
6146
8091
|
isAddressEqual,
|
|
6147
8092
|
decodeFunctionResult,
|
|
6148
|
-
BaseError2,
|
|
6149
|
-
stringify as stringify2,
|
|
6150
|
-
from,
|
|
6151
|
-
fromHex,
|
|
6152
|
-
fromString,
|
|
6153
|
-
size as size2,
|
|
6154
|
-
slice as slice2,
|
|
6155
|
-
toBigInt2 as toBigInt,
|
|
6156
|
-
toBoolean,
|
|
6157
|
-
toNumber2 as toNumber,
|
|
6158
|
-
toString,
|
|
6159
|
-
trimLeft,
|
|
6160
|
-
validate,
|
|
6161
|
-
concat as concat2,
|
|
6162
|
-
from2,
|
|
6163
|
-
fromBoolean,
|
|
6164
|
-
fromBytes,
|
|
6165
|
-
fromNumber,
|
|
6166
|
-
fromString2,
|
|
6167
|
-
padLeft,
|
|
6168
|
-
padRight,
|
|
6169
|
-
slice2 as slice3,
|
|
6170
|
-
size2 as size3,
|
|
6171
|
-
trimLeft2,
|
|
6172
|
-
toNumber as toNumber2,
|
|
6173
|
-
validate2,
|
|
6174
|
-
IntegerOutOfRangeError,
|
|
6175
8093
|
toRpc2 as toRpc,
|
|
6176
8094
|
multicall3Abi,
|
|
8095
|
+
batchGatewayAbi,
|
|
6177
8096
|
universalResolverResolveAbi,
|
|
6178
8097
|
universalResolverReverseAbi,
|
|
6179
8098
|
textResolverAbi,
|
|
@@ -6181,7 +8100,12 @@ export {
|
|
|
6181
8100
|
erc1271Abi,
|
|
6182
8101
|
erc6492SignatureValidatorAbi,
|
|
6183
8102
|
erc20Abi,
|
|
8103
|
+
erc20Abi_bytes32,
|
|
8104
|
+
erc1155Abi,
|
|
8105
|
+
erc721Abi,
|
|
8106
|
+
erc4626Abi,
|
|
6184
8107
|
deploylessCallViaBytecodeBytecode,
|
|
8108
|
+
deploylessCallViaFactoryBytecode,
|
|
6185
8109
|
erc6492SignatureValidatorByteCode,
|
|
6186
8110
|
multicall3Bytecode,
|
|
6187
8111
|
encodeDeployData,
|
|
@@ -6189,6 +8113,9 @@ export {
|
|
|
6189
8113
|
getCallError,
|
|
6190
8114
|
withResolvers,
|
|
6191
8115
|
createBatchScheduler,
|
|
8116
|
+
decodeFunctionData,
|
|
8117
|
+
encodeErrorResult,
|
|
8118
|
+
encodeFunctionResult,
|
|
6192
8119
|
localBatchGatewayUrl,
|
|
6193
8120
|
offchainLookupSignature,
|
|
6194
8121
|
offchainLookupAbiItem,
|
|
@@ -6196,4 +8123,4 @@ export {
|
|
|
6196
8123
|
ccipRequest,
|
|
6197
8124
|
call
|
|
6198
8125
|
};
|
|
6199
|
-
//# sourceMappingURL=chunk-
|
|
8126
|
+
//# sourceMappingURL=chunk-2GP3HRYK.js.map
|