tenjin-cli 0.1.0-alpha.31 → 0.1.0-alpha.33
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 +45 -26
- package/dist/{_esm-MEXZI5DL.js → _esm-BIN7VY2L.js} +128 -132
- package/dist/{alive-J64H46HI.js → alive-GSOWKUOY.js} +13 -6
- package/dist/auto-update-Y24UL56V.js +24 -0
- package/dist/{ccip-7RMRLAGV.js → ccip-DHDFKTQV.js} +2 -2
- package/dist/{chunk-TTNESUPQ.js → chunk-2GP3HRYK.js} +2120 -193
- package/dist/chunk-2GP3HRYK.js.map +1 -0
- package/dist/chunk-2M2VPI2E.js +560 -0
- package/dist/chunk-2M2VPI2E.js.map +1 -0
- package/dist/{chunk-D65GNPS3.js → chunk-2RWB7RKE.js} +288 -108
- package/dist/chunk-2RWB7RKE.js.map +1 -0
- package/dist/{chunk-AGZ7PJKY.js → chunk-36RVGZNY.js} +22 -5
- package/dist/chunk-36RVGZNY.js.map +1 -0
- package/dist/chunk-3AIHRXKO.js +72 -0
- package/dist/chunk-3AIHRXKO.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-3GNJXKIT.js +198 -0
- package/dist/chunk-3GNJXKIT.js.map +1 -0
- package/dist/{chunk-UQUOVWBG.js → chunk-4K7TQHNP.js} +7 -7
- 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-KXQ4UIP7.js → chunk-4USCZ2NI.js} +2 -2
- package/dist/chunk-4YOZGGTZ.js +247 -0
- package/dist/chunk-4YOZGGTZ.js.map +1 -0
- 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-5MARFNSB.js → chunk-A5GKIG5O.js} +49 -30
- package/dist/chunk-A5GKIG5O.js.map +1 -0
- package/dist/{chunk-YFPY4ONH.js → chunk-AGMVASXZ.js} +4 -4
- package/dist/chunk-BF4XHEQK.js +116 -0
- package/dist/chunk-BF4XHEQK.js.map +1 -0
- package/dist/chunk-BFDQ4WNW.js +119 -0
- package/dist/chunk-BFDQ4WNW.js.map +1 -0
- package/dist/{chunk-P4NH7OUK.js → chunk-C2Q76BVM.js} +49 -50
- package/dist/chunk-C2Q76BVM.js.map +1 -0
- package/dist/chunk-CEXSOI5R.js +808 -0
- package/dist/chunk-CEXSOI5R.js.map +1 -0
- package/dist/{chunk-QSCPK4F5.js → chunk-E7SW44LM.js} +4 -11
- 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-K72RURN3.js → chunk-FVIGCDSV.js} +2 -2
- package/dist/chunk-FVIGCDSV.js.map +1 -0
- package/dist/{chunk-5K5W4S66.js → chunk-GTTUCOPD.js} +2 -2
- package/dist/{chunk-4ZZO6ULA.js → chunk-HDPUXS3Z.js} +19 -48
- package/dist/chunk-HDPUXS3Z.js.map +1 -0
- package/dist/{chunk-LEFIX6RS.js → chunk-HGGWCP7W.js} +31 -11
- package/dist/chunk-HGGWCP7W.js.map +1 -0
- package/dist/{chunk-ORWL5BSN.js → chunk-HGZEPQUT.js} +2 -2
- package/dist/chunk-HMWYAUA6.js +478 -0
- package/dist/chunk-HMWYAUA6.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-7Q5FDF65.js → chunk-IE7P2BZE.js} +3 -3
- package/dist/{chunk-77TCKDEC.js → chunk-ILNIZ5I2.js} +788 -508
- package/dist/chunk-ILNIZ5I2.js.map +1 -0
- package/dist/{hosts-FWZOV26H.js → chunk-INTFHMU4.js} +79 -24
- package/dist/chunk-INTFHMU4.js.map +1 -0
- package/dist/{chunk-6E5R45ZO.js → chunk-J57UC3DD.js} +4 -4
- package/dist/{chunk-6E5R45ZO.js.map → chunk-J57UC3DD.js.map} +1 -1
- package/dist/chunk-JNJWBTU2.js +3497 -0
- package/dist/chunk-JNJWBTU2.js.map +1 -0
- package/dist/{chunk-7WU4OPLP.js → chunk-KM7RY2ZS.js} +5 -3
- package/dist/{chunk-7WU4OPLP.js.map → chunk-KM7RY2ZS.js.map} +1 -1
- package/dist/chunk-L6JEXB3E.js +293 -0
- package/dist/chunk-L6JEXB3E.js.map +1 -0
- package/dist/chunk-LRW6S53P.js +450 -0
- package/dist/chunk-LRW6S53P.js.map +1 -0
- package/dist/{chunk-UKY4CHNC.js → chunk-LXAYUOXI.js} +24 -11
- package/dist/chunk-LXAYUOXI.js.map +1 -0
- package/dist/{chunk-WJXLQXJY.js → chunk-MPZUYCAP.js} +4 -1
- package/dist/{chunk-WJXLQXJY.js.map → chunk-MPZUYCAP.js.map} +1 -1
- package/dist/chunk-NDGZDTSJ.js +393 -0
- package/dist/chunk-NDGZDTSJ.js.map +1 -0
- package/dist/{chunk-SJLTEINJ.js → chunk-OJNTCYQQ.js} +17 -1
- package/dist/chunk-OJNTCYQQ.js.map +1 -0
- package/dist/{chunk-OHRR5OYM.js → chunk-P3LFTKE7.js} +5 -10
- package/dist/chunk-P3LFTKE7.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-5C32RLTA.js → chunk-RVPYTUP4.js} +20 -5
- package/dist/chunk-RVPYTUP4.js.map +1 -0
- package/dist/{chunk-YVFXE7RR.js → chunk-SNNSAGMT.js} +7279 -2627
- package/dist/chunk-SNNSAGMT.js.map +1 -0
- package/dist/{chunk-WK7F3B2E.js → chunk-SO3XRZPX.js} +3 -3
- package/dist/{chunk-R5LCN54M.js → chunk-TC2WZLSC.js} +13 -17
- package/dist/{chunk-R5LCN54M.js.map → chunk-TC2WZLSC.js.map} +1 -1
- package/dist/{chunk-B7HUUJOK.js → chunk-TKPF35W6.js} +3 -3
- package/dist/{chunk-KXVP2VKA.js → chunk-U3IKUGRP.js} +32 -33
- package/dist/chunk-U3IKUGRP.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-2XLC3AEX.js → chunk-UXZONNEQ.js} +536 -510
- package/dist/chunk-UXZONNEQ.js.map +1 -0
- package/dist/{chunk-7ZRL2LBQ.js → chunk-V2LQLN5H.js} +6 -6
- package/dist/{chunk-NEFNKLBE.js → chunk-WFSPCCVW.js} +1536 -423
- package/dist/chunk-WFSPCCVW.js.map +1 -0
- package/dist/{chunk-27EPWVOY.js → chunk-WXA2BWTE.js} +7 -3
- package/dist/chunk-WXA2BWTE.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-MNXS2U45.js → chunk-ZDZERB6L.js} +206 -297
- package/dist/chunk-ZDZERB6L.js.map +1 -0
- package/dist/chunk-ZNNXRNFD.js +113 -0
- package/dist/chunk-ZNNXRNFD.js.map +1 -0
- package/dist/{chunk-FW75G2W4.js → chunk-ZURZHELF.js} +5 -5
- package/dist/{cli-D5OE3URZ.js → cli-E36SPKBW.js} +145 -64
- package/dist/{cli-D5OE3URZ.js.map → cli-E36SPKBW.js.map} +1 -1
- package/dist/{codex-event-PPNVRRDH.js → codex-event-ZO2GEFE6.js} +2 -2
- package/dist/{codex-host-2RJOJW2B.js → codex-host-KECJVTA2.js} +7 -6
- package/dist/codex-install-HQZDGFXW.js +436 -0
- package/dist/codex-install-HQZDGFXW.js.map +1 -0
- package/dist/{config-ZD4OB2DO.js → config-HY2E4GGW.js} +21 -17
- package/dist/doctor-I6XQEKWD.js +1323 -0
- package/dist/doctor-I6XQEKWD.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-5ITKQGYF.js → fund-2QRO7OJL.js} +43 -37
- package/dist/{fund-5ITKQGYF.js.map → fund-2QRO7OJL.js.map} +1 -1
- package/dist/hook-command-2UBCSZG6.js +43 -0
- package/dist/hosts/claude/.claude-plugin/marketplace.json +2 -2
- package/dist/hosts/claude/tenjin/.claude-plugin/plugin.json +2 -2
- package/dist/hosts/claude/tenjin/hooks/register.tsx +51 -11
- package/dist/hosts/claude/tenjin/skills/tenjin-pay/SKILL.md +82 -0
- package/dist/hosts/claude/tenjin/types/index.d.ts +2 -1
- package/dist/hosts/codex/tenjin/.mcp.json +3 -0
- package/dist/hosts/codex/tenjin/hooks/hooks.json +51 -5
- package/dist/hosts-DVQJ32QC.js +38 -0
- package/dist/index.js +32 -11
- package/dist/index.js.map +1 -1
- package/dist/install-ILUX5C4A.js +107 -0
- package/dist/{install-identity-K7EJIQFP.js → install-identity-TZKGY6LQ.js} +11 -10
- package/dist/install-wallet-5M4OTYLX.js +281 -0
- package/dist/install-wallet-5M4OTYLX.js.map +1 -0
- package/dist/isows-native-Q2UDIVPT.js +9 -0
- package/dist/isows-native-Q2UDIVPT.js.map +1 -0
- package/dist/{mcp-3LIJSSJB.js → mcp-LE4DUS22.js} +785 -211
- package/dist/mcp-LE4DUS22.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-ZKQFDWLE.js → package-IJFGMWEV.js} +4 -2
- package/dist/passphrase-IFTDS3CU.js +44 -0
- package/dist/{paths-POPTXJO6.js → paths-XCSAKISU.js} +10 -2
- package/dist/{pay-WHBERZ3W.js → pay-WCG3IH4R.js} +29 -29
- package/dist/{payments-KVICEKD2.js → payments-HFPPWHTV.js} +15 -14
- package/dist/{payments-KVICEKD2.js.map → payments-HFPPWHTV.js.map} +1 -1
- package/dist/plugin-registration-PZFI5GZW.js +68 -0
- package/dist/{redact-6W23GGJC.js → redact-D7ASVWKL.js} +2 -2
- package/dist/runtime-UZOKSUZX.js +1321 -0
- package/dist/runtime-UZOKSUZX.js.map +1 -0
- package/dist/runtime-fetch-ZSSSK72Y.js +23 -0
- package/dist/runtime-layout-WIDILZ6K.js +25 -0
- package/dist/{send-7G7Y7DLN.js → send-GCVEAQKL.js} +24 -22
- package/dist/{send-7G7Y7DLN.js.map → send-GCVEAQKL.js.map} +1 -1
- package/dist/{status-OF7RH5HM.js → status-HCVAOCN7.js} +55 -25
- package/dist/status-HCVAOCN7.js.map +1 -0
- package/dist/{status-line-XOUE6MPL.js → status-line-OPCXDHL2.js} +10 -9
- package/dist/{status-line-XOUE6MPL.js.map → status-line-OPCXDHL2.js.map} +1 -1
- package/dist/uninstall-BAWRBXXQ.js +481 -0
- package/dist/uninstall-BAWRBXXQ.js.map +1 -0
- package/dist/update-CACXLQLR.js +56 -0
- package/dist/update-CACXLQLR.js.map +1 -0
- package/dist/{usdc-OGOGEHV2.js → usdc-VG4CIOUK.js} +6 -8
- package/dist/usdc-VG4CIOUK.js.map +1 -0
- package/dist/{viemAdapter-By13KInL-S3DA7DFW.js → viemAdapter-By13KInL-DOFTEIJV.js} +3 -3
- package/dist/viemAdapter-By13KInL-DOFTEIJV.js.map +1 -0
- package/dist/wallet-QL4UUXEZ.js +55 -0
- package/dist/wallet-QL4UUXEZ.js.map +1 -0
- package/dist/wallet-kdf-worker.mjs +8 -8
- package/docs/agent-permissions.md +50 -28
- package/docs/safety-model.md +1 -1
- package/docs/troubleshooting.md +72 -1
- package/package.json +17 -4
- package/scripts/installers/install.ps1 +67 -0
- package/scripts/installers/install.sh +68 -0
- package/dist/_esm-C5CRWCYU.js +0 -3737
- package/dist/_esm-C5CRWCYU.js.map +0 -1
- package/dist/ccip-NLCSCHKI.js +0 -19
- package/dist/chunk-27EPWVOY.js.map +0 -1
- package/dist/chunk-2XLC3AEX.js.map +0 -1
- package/dist/chunk-4ZZO6ULA.js.map +0 -1
- package/dist/chunk-5C32RLTA.js.map +0 -1
- package/dist/chunk-5IEP5EGE.js +0 -5332
- package/dist/chunk-5IEP5EGE.js.map +0 -1
- package/dist/chunk-5MARFNSB.js.map +0 -1
- package/dist/chunk-77TCKDEC.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-AGZ7PJKY.js.map +0 -1
- package/dist/chunk-AKWGE6JQ.js.map +0 -1
- package/dist/chunk-BL3332HQ.js +0 -7611
- package/dist/chunk-BL3332HQ.js.map +0 -1
- package/dist/chunk-D65GNPS3.js.map +0 -1
- package/dist/chunk-EGELTSPU.js +0 -2865
- package/dist/chunk-EGELTSPU.js.map +0 -1
- package/dist/chunk-GA7JETVM.js +0 -150
- package/dist/chunk-GA7JETVM.js.map +0 -1
- package/dist/chunk-I3EQFHCD.js +0 -175
- package/dist/chunk-I3EQFHCD.js.map +0 -1
- package/dist/chunk-K3I7C2MO.js +0 -1185
- package/dist/chunk-K3I7C2MO.js.map +0 -1
- package/dist/chunk-K72RURN3.js.map +0 -1
- package/dist/chunk-KXVP2VKA.js.map +0 -1
- package/dist/chunk-LEFIX6RS.js.map +0 -1
- package/dist/chunk-MNXS2U45.js.map +0 -1
- package/dist/chunk-NEFNKLBE.js.map +0 -1
- package/dist/chunk-OHRR5OYM.js.map +0 -1
- package/dist/chunk-P4NH7OUK.js.map +0 -1
- package/dist/chunk-QSCPK4F5.js.map +0 -1
- package/dist/chunk-SJLTEINJ.js.map +0 -1
- package/dist/chunk-TTNESUPQ.js.map +0 -1
- package/dist/chunk-UKY4CHNC.js.map +0 -1
- package/dist/chunk-V6BSF6OC.js +0 -260
- package/dist/chunk-V6BSF6OC.js.map +0 -1
- package/dist/chunk-YVFXE7RR.js.map +0 -1
- package/dist/codex-install-UUZ6QMBQ.js +0 -221
- package/dist/codex-install-UUZ6QMBQ.js.map +0 -1
- package/dist/doctor-KBR34Q4B.js +0 -601
- package/dist/doctor-KBR34Q4B.js.map +0 -1
- package/dist/hook-command-4TYCHHRL.js +0 -39
- package/dist/hosts-FWZOV26H.js.map +0 -1
- package/dist/install-XWGE4Q7L.js +0 -77
- package/dist/install-wallet-XQ6XFZV4.js +0 -117
- package/dist/install-wallet-XQ6XFZV4.js.map +0 -1
- package/dist/mcp-3LIJSSJB.js.map +0 -1
- package/dist/plugin-registration-5TIA564H.js +0 -54
- package/dist/status-OF7RH5HM.js.map +0 -1
- package/dist/uninstall-JXUAFNDB.js +0 -158
- package/dist/uninstall-JXUAFNDB.js.map +0 -1
- package/dist/update-ZKUERSO2.js +0 -44
- package/dist/wallet-2HA6W4R4.js +0 -43
- /package/dist/{_esm-MEXZI5DL.js.map → _esm-BIN7VY2L.js.map} +0 -0
- /package/dist/{alive-J64H46HI.js.map → alive-GSOWKUOY.js.map} +0 -0
- /package/dist/{ccip-7RMRLAGV.js.map → auto-update-Y24UL56V.js.map} +0 -0
- /package/dist/{ccip-NLCSCHKI.js.map → ccip-DHDFKTQV.js.map} +0 -0
- /package/dist/{chunk-UQUOVWBG.js.map → chunk-4K7TQHNP.js.map} +0 -0
- /package/dist/{chunk-KXQ4UIP7.js.map → chunk-4USCZ2NI.js.map} +0 -0
- /package/dist/{chunk-YFPY4ONH.js.map → chunk-AGMVASXZ.js.map} +0 -0
- /package/dist/{chunk-5K5W4S66.js.map → chunk-GTTUCOPD.js.map} +0 -0
- /package/dist/{chunk-ORWL5BSN.js.map → chunk-HGZEPQUT.js.map} +0 -0
- /package/dist/{chunk-7Q5FDF65.js.map → chunk-IE7P2BZE.js.map} +0 -0
- /package/dist/{chunk-WK7F3B2E.js.map → chunk-SO3XRZPX.js.map} +0 -0
- /package/dist/{chunk-B7HUUJOK.js.map → chunk-TKPF35W6.js.map} +0 -0
- /package/dist/{chunk-7ZRL2LBQ.js.map → chunk-V2LQLN5H.js.map} +0 -0
- /package/dist/{chunk-FW75G2W4.js.map → chunk-ZURZHELF.js.map} +0 -0
- /package/dist/{codex-event-PPNVRRDH.js.map → codex-event-ZO2GEFE6.js.map} +0 -0
- /package/dist/{codex-host-2RJOJW2B.js.map → codex-host-KECJVTA2.js.map} +0 -0
- /package/dist/{config-ZD4OB2DO.js.map → config-HY2E4GGW.js.map} +0 -0
- /package/dist/{env-proxy-XL4P73MZ.js.map → env-proxy-R6ZMLQTT.js.map} +0 -0
- /package/dist/{ethersCompat-Df4a6QIZ-THAVUGIJ.js.map → ethersCompat-Df4a6QIZ-X6YZWAML.js.map} +0 -0
- /package/dist/{hook-command-4TYCHHRL.js.map → hook-command-2UBCSZG6.js.map} +0 -0
- /package/dist/{install-XWGE4Q7L.js.map → hosts-DVQJ32QC.js.map} +0 -0
- /package/dist/{install-identity-K7EJIQFP.js.map → install-ILUX5C4A.js.map} +0 -0
- /package/dist/{package-ZKQFDWLE.js.map → install-identity-TZKGY6LQ.js.map} +0 -0
- /package/dist/{paths-POPTXJO6.js.map → package-IJFGMWEV.js.map} +0 -0
- /package/dist/{pay-WHBERZ3W.js.map → passphrase-IFTDS3CU.js.map} +0 -0
- /package/dist/{plugin-registration-5TIA564H.js.map → paths-XCSAKISU.js.map} +0 -0
- /package/dist/{redact-6W23GGJC.js.map → pay-WCG3IH4R.js.map} +0 -0
- /package/dist/{update-ZKUERSO2.js.map → plugin-registration-PZFI5GZW.js.map} +0 -0
- /package/dist/{usdc-OGOGEHV2.js.map → redact-D7ASVWKL.js.map} +0 -0
- /package/dist/{viemAdapter-By13KInL-S3DA7DFW.js.map → runtime-fetch-ZSSSK72Y.js.map} +0 -0
- /package/dist/{wallet-2HA6W4R4.js.map → runtime-layout-WIDILZ6K.js.map} +0 -0
|
@@ -1,187 +1,164 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
assertTransactionLegacy,
|
|
8
|
-
blobsToCommitments,
|
|
9
|
-
blobsToProofs,
|
|
10
|
-
commitmentToVersionedHash,
|
|
11
|
-
commitmentsToVersionedHashes,
|
|
12
|
-
getTransactionCount,
|
|
13
|
-
getTransactionType,
|
|
14
|
-
getTypesForEIP712Domain,
|
|
15
|
-
hashAuthorization,
|
|
16
|
-
hashMessage,
|
|
17
|
-
hashTypedData,
|
|
18
|
-
keccak256 as keccak2562,
|
|
19
|
-
publicKeyToAddress,
|
|
20
|
-
ripemd160,
|
|
21
|
-
serializeSignature,
|
|
22
|
-
serializeTransaction,
|
|
23
|
-
serializeTypedData,
|
|
24
|
-
toBlobSidecars,
|
|
25
|
-
toRlp,
|
|
26
|
-
validateTypedData
|
|
27
|
-
} from "./chunk-K3I7C2MO.js";
|
|
3
|
+
HashMD,
|
|
4
|
+
secp256k1,
|
|
5
|
+
sha256
|
|
6
|
+
} from "./chunk-JRGFKVAZ.js";
|
|
28
7
|
import {
|
|
8
|
+
AbiConstructorNotFoundError,
|
|
9
|
+
AbiConstructorParamsNotFoundError,
|
|
10
|
+
AbiDecodingDataSizeTooSmallError,
|
|
11
|
+
AbiDecodingZeroDataError,
|
|
12
|
+
AbiEncodingLengthMismatchError,
|
|
13
|
+
AbiEventNotFoundError,
|
|
14
|
+
AbiEventSignatureEmptyTopicsError,
|
|
15
|
+
AbiEventSignatureNotFoundError,
|
|
29
16
|
AtomicReadyWalletRejectedUpgradeError,
|
|
30
17
|
AtomicityNotSupportedError,
|
|
18
|
+
BaseError,
|
|
19
|
+
BaseError2,
|
|
31
20
|
BundleTooLargeError,
|
|
21
|
+
BytesSizeMismatchError,
|
|
32
22
|
CallExecutionError,
|
|
33
23
|
ChainDisconnectedError,
|
|
24
|
+
ChainMismatchError,
|
|
25
|
+
ChainNotFoundError,
|
|
34
26
|
ContractFunctionExecutionError,
|
|
35
27
|
ContractFunctionRevertedError,
|
|
36
28
|
ContractFunctionZeroDataError,
|
|
29
|
+
DecodeLogDataMismatch,
|
|
30
|
+
DecodeLogTopicsMismatch,
|
|
37
31
|
DuplicateIdError,
|
|
32
|
+
ExecutionRevertedError,
|
|
33
|
+
FeeCapTooHighError,
|
|
38
34
|
HttpRequestError,
|
|
35
|
+
IntegerOutOfRangeError2 as IntegerOutOfRangeError,
|
|
39
36
|
InternalRpcError,
|
|
37
|
+
InvalidAddressError,
|
|
38
|
+
InvalidChainIdError,
|
|
39
|
+
InvalidHexValueError,
|
|
40
40
|
InvalidInputRpcError,
|
|
41
|
+
InvalidLegacyVError,
|
|
41
42
|
InvalidParamsRpcError,
|
|
42
43
|
InvalidRequestRpcError,
|
|
44
|
+
InvalidSerializableTransactionError,
|
|
45
|
+
InvalidSerializedTransactionError,
|
|
46
|
+
InvalidSerializedTransactionTypeError,
|
|
47
|
+
InvalidStorageKeySizeError,
|
|
48
|
+
InvalidYParityError,
|
|
43
49
|
JsonRpcVersionUnsupportedError,
|
|
44
50
|
LimitExceededRpcError,
|
|
51
|
+
LruMap,
|
|
45
52
|
MethodNotFoundRpcError,
|
|
46
53
|
MethodNotSupportedRpcError,
|
|
47
54
|
ParseRpcError,
|
|
55
|
+
PositionOutOfBoundsError,
|
|
48
56
|
ProviderDisconnectedError,
|
|
49
57
|
RawContractError,
|
|
50
58
|
ResourceNotFoundRpcError,
|
|
51
59
|
ResourceUnavailableRpcError,
|
|
52
60
|
ResponseBodyTooLargeError,
|
|
61
|
+
RlpDepthLimitExceededError,
|
|
62
|
+
RlpListBoundaryExceededError,
|
|
63
|
+
RlpTrailingBytesError,
|
|
53
64
|
RpcRequestError,
|
|
54
65
|
SocketClosedError,
|
|
55
66
|
SwitchChainError,
|
|
56
67
|
TimeoutError,
|
|
68
|
+
TipAboveFeeCapError,
|
|
69
|
+
TransactionExecutionError,
|
|
70
|
+
TransactionNotFoundError,
|
|
71
|
+
TransactionReceiptNotFoundError,
|
|
72
|
+
TransactionReceiptRevertedError,
|
|
57
73
|
TransactionRejectedRpcError,
|
|
58
74
|
UnauthorizedProviderError,
|
|
59
75
|
UnknownBundleIdError,
|
|
76
|
+
UnknownNodeError,
|
|
60
77
|
UnknownRpcError,
|
|
61
78
|
UnsupportedChainIdError,
|
|
62
79
|
UnsupportedNonOptionalCapabilityError,
|
|
80
|
+
UnsupportedPackedAbiType,
|
|
63
81
|
UnsupportedProviderMethodError,
|
|
64
82
|
UserRejectedRequestError,
|
|
83
|
+
WaitForTransactionReceiptTimeoutError,
|
|
65
84
|
WalletConnectSessionSettlementError,
|
|
66
85
|
WebSocketRequestError,
|
|
67
86
|
addressResolverAbi,
|
|
87
|
+
arrayRegex,
|
|
68
88
|
assertRequest,
|
|
69
89
|
batchGatewayAbi,
|
|
90
|
+
boolToHex,
|
|
91
|
+
bytesRegex,
|
|
92
|
+
bytesToHex,
|
|
70
93
|
call,
|
|
71
94
|
ccipRequest,
|
|
95
|
+
checksumAddress,
|
|
96
|
+
concat,
|
|
97
|
+
concat2,
|
|
98
|
+
concatHex,
|
|
72
99
|
createBatchScheduler,
|
|
100
|
+
createCursor,
|
|
73
101
|
decodeAbiParameters,
|
|
74
102
|
decodeErrorResult,
|
|
75
103
|
decodeFunctionResult,
|
|
76
104
|
defineFormatter,
|
|
77
105
|
deploylessCallViaBytecodeBytecode,
|
|
106
|
+
encodeAbiParameters,
|
|
78
107
|
encodeDeployData,
|
|
79
108
|
encodeFunctionData,
|
|
80
109
|
erc1271Abi,
|
|
81
110
|
erc20Abi,
|
|
82
111
|
erc6492SignatureValidatorAbi,
|
|
83
112
|
erc6492SignatureValidatorByteCode,
|
|
84
|
-
extract,
|
|
85
|
-
formatAbiItem as formatAbiItem2,
|
|
86
|
-
formatAbiParameters,
|
|
87
|
-
formatTransactionRequest,
|
|
88
|
-
getAbiItem,
|
|
89
|
-
getAbortError,
|
|
90
|
-
getCallError,
|
|
91
|
-
getChainContractAddress,
|
|
92
|
-
getNodeError,
|
|
93
|
-
isAbortError,
|
|
94
|
-
isAddressEqual,
|
|
95
|
-
localBatchGatewayUrl,
|
|
96
|
-
multicall3Abi,
|
|
97
|
-
multicall3Bytecode,
|
|
98
|
-
parseAbiItem,
|
|
99
|
-
parseAbiParameters,
|
|
100
|
-
serializeStateOverride,
|
|
101
|
-
solidityError,
|
|
102
|
-
textResolverAbi,
|
|
103
|
-
toEventSelector,
|
|
104
|
-
toRpc,
|
|
105
|
-
universalResolverResolveAbi,
|
|
106
|
-
universalResolverReverseAbi,
|
|
107
|
-
withResolvers
|
|
108
|
-
} from "./chunk-5IEP5EGE.js";
|
|
109
|
-
import {
|
|
110
|
-
AbiConstructorNotFoundError,
|
|
111
|
-
AbiConstructorParamsNotFoundError,
|
|
112
|
-
AbiDecodingDataSizeTooSmallError,
|
|
113
|
-
AbiDecodingZeroDataError,
|
|
114
|
-
AbiEncodingLengthMismatchError,
|
|
115
|
-
AbiEventNotFoundError,
|
|
116
|
-
AbiEventSignatureEmptyTopicsError,
|
|
117
|
-
AbiEventSignatureNotFoundError,
|
|
118
|
-
BaseError,
|
|
119
|
-
BaseError2,
|
|
120
|
-
BytesSizeMismatchError,
|
|
121
|
-
ChainMismatchError,
|
|
122
|
-
ChainNotFoundError,
|
|
123
|
-
DecodeLogDataMismatch,
|
|
124
|
-
DecodeLogTopicsMismatch,
|
|
125
|
-
ExecutionRevertedError,
|
|
126
|
-
IntegerOutOfRangeError2 as IntegerOutOfRangeError,
|
|
127
|
-
InvalidAddressError,
|
|
128
|
-
InvalidHexValueError,
|
|
129
|
-
InvalidLegacyVError,
|
|
130
|
-
InvalidSerializedTransactionError,
|
|
131
|
-
InvalidSerializedTransactionTypeError,
|
|
132
|
-
InvalidYParityError,
|
|
133
|
-
LruMap,
|
|
134
|
-
PositionOutOfBoundsError,
|
|
135
|
-
RlpDepthLimitExceededError,
|
|
136
|
-
RlpListBoundaryExceededError,
|
|
137
|
-
RlpTrailingBytesError,
|
|
138
|
-
TransactionExecutionError,
|
|
139
|
-
TransactionNotFoundError,
|
|
140
|
-
TransactionReceiptNotFoundError,
|
|
141
|
-
TransactionReceiptRevertedError,
|
|
142
|
-
UnknownNodeError,
|
|
143
|
-
UnsupportedPackedAbiType,
|
|
144
|
-
WaitForTransactionReceiptTimeoutError,
|
|
145
|
-
arrayRegex,
|
|
146
|
-
boolToHex,
|
|
147
|
-
bytesRegex,
|
|
148
|
-
bytesToHex,
|
|
149
|
-
checksumAddress,
|
|
150
|
-
concat,
|
|
151
|
-
concat2,
|
|
152
|
-
concatHex,
|
|
153
|
-
createCursor,
|
|
154
|
-
encodeAbiParameters,
|
|
155
113
|
etherUnits,
|
|
114
|
+
extract,
|
|
156
115
|
formatAbiItem,
|
|
116
|
+
formatAbiItem2,
|
|
117
|
+
formatAbiParameters,
|
|
157
118
|
formatBlockParameter,
|
|
158
119
|
formatEther,
|
|
159
120
|
formatGwei,
|
|
121
|
+
formatTransactionRequest,
|
|
160
122
|
formatUnits,
|
|
161
123
|
from,
|
|
124
|
+
from2,
|
|
162
125
|
fromBoolean,
|
|
163
126
|
fromBytes,
|
|
164
127
|
fromHex2 as fromHex,
|
|
165
128
|
fromNumber,
|
|
166
129
|
fromString,
|
|
167
130
|
fromString2,
|
|
131
|
+
getAbiItem,
|
|
132
|
+
getAbortError,
|
|
168
133
|
getAddress,
|
|
134
|
+
getCallError,
|
|
135
|
+
getChainContractAddress,
|
|
136
|
+
getNodeError,
|
|
169
137
|
gweiUnits,
|
|
170
138
|
hexToBigInt,
|
|
171
139
|
hexToBool,
|
|
172
140
|
hexToBytes,
|
|
173
141
|
hexToNumber,
|
|
174
142
|
integerRegex,
|
|
143
|
+
isAbortError,
|
|
175
144
|
isAddress,
|
|
145
|
+
isAddressEqual,
|
|
176
146
|
isHex,
|
|
177
147
|
keccak256,
|
|
148
|
+
localBatchGatewayUrl,
|
|
149
|
+
maxUint256,
|
|
150
|
+
multicall3Abi,
|
|
151
|
+
multicall3Bytecode,
|
|
178
152
|
numberToHex,
|
|
179
153
|
pad,
|
|
180
154
|
padHex,
|
|
181
155
|
padLeft,
|
|
182
156
|
padRight,
|
|
157
|
+
parseAbiItem,
|
|
158
|
+
parseAbiParameters,
|
|
183
159
|
parseAccount,
|
|
184
160
|
prettyPrint,
|
|
161
|
+
serializeStateOverride,
|
|
185
162
|
size,
|
|
186
163
|
size2,
|
|
187
164
|
size3,
|
|
@@ -189,31 +166,43 @@ import {
|
|
|
189
166
|
slice2,
|
|
190
167
|
slice3,
|
|
191
168
|
sliceHex,
|
|
169
|
+
solidityError,
|
|
192
170
|
stringToBytes,
|
|
193
171
|
stringToHex,
|
|
194
172
|
stringify,
|
|
195
173
|
stringify2,
|
|
174
|
+
textResolverAbi,
|
|
196
175
|
toBigInt,
|
|
197
176
|
toBoolean,
|
|
198
177
|
toBytes,
|
|
178
|
+
toEventSelector,
|
|
199
179
|
toHex,
|
|
200
180
|
toNumber,
|
|
201
181
|
toNumber2,
|
|
182
|
+
toRpc,
|
|
202
183
|
toString,
|
|
203
184
|
trim,
|
|
204
185
|
trimLeft,
|
|
205
186
|
trimLeft2,
|
|
187
|
+
universalResolverResolveAbi,
|
|
188
|
+
universalResolverReverseAbi,
|
|
206
189
|
validate,
|
|
207
|
-
validate2
|
|
208
|
-
|
|
190
|
+
validate2,
|
|
191
|
+
withResolvers
|
|
192
|
+
} from "./chunk-2GP3HRYK.js";
|
|
209
193
|
import {
|
|
210
|
-
|
|
211
|
-
} from "./chunk-
|
|
194
|
+
keccak_256
|
|
195
|
+
} from "./chunk-KG3D7FIF.js";
|
|
196
|
+
import {
|
|
197
|
+
clean,
|
|
198
|
+
createHasher,
|
|
199
|
+
rotl
|
|
200
|
+
} from "./chunk-BPMWXTFX.js";
|
|
212
201
|
import {
|
|
213
202
|
__export
|
|
214
203
|
} from "./chunk-ZXTAQYNA.js";
|
|
215
204
|
|
|
216
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
205
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/getAction.js
|
|
217
206
|
function getAction(client, actionFn, name) {
|
|
218
207
|
const action_implicit = client[actionFn.name];
|
|
219
208
|
if (typeof action_implicit === "function")
|
|
@@ -224,7 +213,7 @@ function getAction(client, actionFn, name) {
|
|
|
224
213
|
return (params) => actionFn(client, params);
|
|
225
214
|
}
|
|
226
215
|
|
|
227
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
216
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/log.js
|
|
228
217
|
var FilterTypeNotSupportedError = class extends BaseError {
|
|
229
218
|
constructor(type) {
|
|
230
219
|
super(`Filter type "${type}" is not supported.`, {
|
|
@@ -233,7 +222,7 @@ var FilterTypeNotSupportedError = class extends BaseError {
|
|
|
233
222
|
}
|
|
234
223
|
};
|
|
235
224
|
|
|
236
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
225
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/encodeEventTopics.js
|
|
237
226
|
var docsPath = "/docs/contract/encodeEventTopics";
|
|
238
227
|
function encodeEventTopics(parameters) {
|
|
239
228
|
const { abi: abi2, eventName, args } = parameters;
|
|
@@ -272,7 +261,7 @@ function encodeArg({ param, value }) {
|
|
|
272
261
|
return encodeAbiParameters([param], [value]);
|
|
273
262
|
}
|
|
274
263
|
|
|
275
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
264
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js
|
|
276
265
|
function createFilterRequestScope(client, { method }) {
|
|
277
266
|
const requestMap = {};
|
|
278
267
|
if (client.transport.type === "fallback")
|
|
@@ -283,7 +272,7 @@ function createFilterRequestScope(client, { method }) {
|
|
|
283
272
|
return ((id) => requestMap[id] || client.request);
|
|
284
273
|
}
|
|
285
274
|
|
|
286
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
275
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/createContractEventFilter.js
|
|
287
276
|
async function createContractEventFilter(client, parameters) {
|
|
288
277
|
const { address, abi: abi2, args, eventName, fromBlock, strict, toBlock } = parameters;
|
|
289
278
|
const getRequest = createFilterRequestScope(client, {
|
|
@@ -316,7 +305,7 @@ async function createContractEventFilter(client, parameters) {
|
|
|
316
305
|
};
|
|
317
306
|
}
|
|
318
307
|
|
|
319
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
308
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/errors/getContractError.js
|
|
320
309
|
var EXECUTION_REVERTED_ERROR_CODE = 3;
|
|
321
310
|
function getContractError(err, { abi: abi2, address, args, docsPath: docsPath4, functionName, sender }) {
|
|
322
311
|
const error = err instanceof RawContractError ? err : err instanceof BaseError ? err.walk((err2) => "data" in err2) || err.walk() : {};
|
|
@@ -345,7 +334,13 @@ function getContractError(err, { abi: abi2, address, args, docsPath: docsPath4,
|
|
|
345
334
|
});
|
|
346
335
|
}
|
|
347
336
|
|
|
348
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
337
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js
|
|
338
|
+
function publicKeyToAddress(publicKey) {
|
|
339
|
+
const address = keccak256(`0x${publicKey.substring(4)}`).substring(26);
|
|
340
|
+
return checksumAddress(`0x${address}`);
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/recoverPublicKey.js
|
|
349
344
|
async function recoverPublicKey({ hash: hash2, signature }) {
|
|
350
345
|
const hashHex = isHex(hash2) ? hash2 : toHex(hash2);
|
|
351
346
|
const { secp256k1: secp256k12 } = await import("./secp256k1-ZZZT2CAX.js");
|
|
@@ -376,12 +371,124 @@ function toRecoveryBit(yParityOrV) {
|
|
|
376
371
|
throw new Error("Invalid yParityOrV value");
|
|
377
372
|
}
|
|
378
373
|
|
|
379
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
374
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/recoverAddress.js
|
|
380
375
|
async function recoverAddress({ hash: hash2, signature }) {
|
|
381
376
|
return publicKeyToAddress(await recoverPublicKey({ hash: hash2, signature }));
|
|
382
377
|
}
|
|
383
378
|
|
|
384
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
379
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/encoding/toRlp.js
|
|
380
|
+
function toRlp(bytes, to = "hex") {
|
|
381
|
+
const encodable = getEncodable(bytes);
|
|
382
|
+
const cursor = createCursor(new Uint8Array(encodable.length));
|
|
383
|
+
encodable.encode(cursor);
|
|
384
|
+
if (to === "hex")
|
|
385
|
+
return bytesToHex(cursor.bytes);
|
|
386
|
+
return cursor.bytes;
|
|
387
|
+
}
|
|
388
|
+
function bytesToRlp(bytes, to = "bytes") {
|
|
389
|
+
return toRlp(bytes, to);
|
|
390
|
+
}
|
|
391
|
+
function hexToRlp(hex, to = "hex") {
|
|
392
|
+
return toRlp(hex, to);
|
|
393
|
+
}
|
|
394
|
+
function getEncodable(bytes) {
|
|
395
|
+
if (Array.isArray(bytes))
|
|
396
|
+
return getEncodableList(bytes.map((x) => getEncodable(x)));
|
|
397
|
+
return getEncodableBytes(bytes);
|
|
398
|
+
}
|
|
399
|
+
function getEncodableList(list) {
|
|
400
|
+
const bodyLength = list.reduce((acc, x) => acc + x.length, 0);
|
|
401
|
+
const sizeOfBodyLength = getSizeOfLength(bodyLength);
|
|
402
|
+
const length = (() => {
|
|
403
|
+
if (bodyLength <= 55)
|
|
404
|
+
return 1 + bodyLength;
|
|
405
|
+
return 1 + sizeOfBodyLength + bodyLength;
|
|
406
|
+
})();
|
|
407
|
+
return {
|
|
408
|
+
length,
|
|
409
|
+
encode(cursor) {
|
|
410
|
+
if (bodyLength <= 55) {
|
|
411
|
+
cursor.pushByte(192 + bodyLength);
|
|
412
|
+
} else {
|
|
413
|
+
cursor.pushByte(192 + 55 + sizeOfBodyLength);
|
|
414
|
+
if (sizeOfBodyLength === 1)
|
|
415
|
+
cursor.pushUint8(bodyLength);
|
|
416
|
+
else if (sizeOfBodyLength === 2)
|
|
417
|
+
cursor.pushUint16(bodyLength);
|
|
418
|
+
else if (sizeOfBodyLength === 3)
|
|
419
|
+
cursor.pushUint24(bodyLength);
|
|
420
|
+
else
|
|
421
|
+
cursor.pushUint32(bodyLength);
|
|
422
|
+
}
|
|
423
|
+
for (const { encode: encode5 } of list) {
|
|
424
|
+
encode5(cursor);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
}
|
|
429
|
+
function getEncodableBytes(bytesOrHex) {
|
|
430
|
+
const bytes = typeof bytesOrHex === "string" ? hexToBytes(bytesOrHex) : bytesOrHex;
|
|
431
|
+
const sizeOfBytesLength = getSizeOfLength(bytes.length);
|
|
432
|
+
const length = (() => {
|
|
433
|
+
if (bytes.length === 1 && bytes[0] < 128)
|
|
434
|
+
return 1;
|
|
435
|
+
if (bytes.length <= 55)
|
|
436
|
+
return 1 + bytes.length;
|
|
437
|
+
return 1 + sizeOfBytesLength + bytes.length;
|
|
438
|
+
})();
|
|
439
|
+
return {
|
|
440
|
+
length,
|
|
441
|
+
encode(cursor) {
|
|
442
|
+
if (bytes.length === 1 && bytes[0] < 128) {
|
|
443
|
+
cursor.pushBytes(bytes);
|
|
444
|
+
} else if (bytes.length <= 55) {
|
|
445
|
+
cursor.pushByte(128 + bytes.length);
|
|
446
|
+
cursor.pushBytes(bytes);
|
|
447
|
+
} else {
|
|
448
|
+
cursor.pushByte(128 + 55 + sizeOfBytesLength);
|
|
449
|
+
if (sizeOfBytesLength === 1)
|
|
450
|
+
cursor.pushUint8(bytes.length);
|
|
451
|
+
else if (sizeOfBytesLength === 2)
|
|
452
|
+
cursor.pushUint16(bytes.length);
|
|
453
|
+
else if (sizeOfBytesLength === 3)
|
|
454
|
+
cursor.pushUint24(bytes.length);
|
|
455
|
+
else
|
|
456
|
+
cursor.pushUint32(bytes.length);
|
|
457
|
+
cursor.pushBytes(bytes);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
function getSizeOfLength(length) {
|
|
463
|
+
if (length < 2 ** 8)
|
|
464
|
+
return 1;
|
|
465
|
+
if (length < 2 ** 16)
|
|
466
|
+
return 2;
|
|
467
|
+
if (length < 2 ** 24)
|
|
468
|
+
return 3;
|
|
469
|
+
if (length < 2 ** 32)
|
|
470
|
+
return 4;
|
|
471
|
+
throw new BaseError("Length is too large.");
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/authorization/hashAuthorization.js
|
|
475
|
+
function hashAuthorization(parameters) {
|
|
476
|
+
const { chainId, nonce, to } = parameters;
|
|
477
|
+
const address = parameters.contractAddress ?? parameters.address;
|
|
478
|
+
const hash2 = keccak256(concatHex([
|
|
479
|
+
"0x05",
|
|
480
|
+
toRlp([
|
|
481
|
+
chainId ? numberToHex(chainId) : "0x",
|
|
482
|
+
address,
|
|
483
|
+
nonce ? numberToHex(nonce) : "0x"
|
|
484
|
+
])
|
|
485
|
+
]));
|
|
486
|
+
if (to === "bytes")
|
|
487
|
+
return hexToBytes(hash2);
|
|
488
|
+
return hash2;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js
|
|
385
492
|
async function recoverAuthorizationAddress(parameters) {
|
|
386
493
|
const { authorization, signature } = parameters;
|
|
387
494
|
return recoverAddress({
|
|
@@ -390,7 +497,7 @@ async function recoverAuthorizationAddress(parameters) {
|
|
|
390
497
|
});
|
|
391
498
|
}
|
|
392
499
|
|
|
393
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
500
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/estimateGas.js
|
|
394
501
|
var EstimateGasExecutionError = class extends BaseError {
|
|
395
502
|
constructor(cause, { account, docsPath: docsPath4, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value }) {
|
|
396
503
|
const prettyArgs = prettyPrint({
|
|
@@ -424,7 +531,7 @@ var EstimateGasExecutionError = class extends BaseError {
|
|
|
424
531
|
}
|
|
425
532
|
};
|
|
426
533
|
|
|
427
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
534
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/errors/getEstimateGasError.js
|
|
428
535
|
function getEstimateGasError(err, { docsPath: docsPath4, ...args }) {
|
|
429
536
|
const cause = (() => {
|
|
430
537
|
const cause2 = getNodeError(err, args);
|
|
@@ -438,7 +545,7 @@ function getEstimateGasError(err, { docsPath: docsPath4, ...args }) {
|
|
|
438
545
|
});
|
|
439
546
|
}
|
|
440
547
|
|
|
441
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
548
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/fee.js
|
|
442
549
|
var BaseFeeScalarError = class extends BaseError {
|
|
443
550
|
constructor() {
|
|
444
551
|
super("`baseFeeMultiplier` must be greater than 1.", {
|
|
@@ -459,7 +566,7 @@ var MaxFeePerGasTooLowError = class extends BaseError {
|
|
|
459
566
|
}
|
|
460
567
|
};
|
|
461
568
|
|
|
462
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
569
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/block.js
|
|
463
570
|
var BlockNotFoundError = class extends BaseError {
|
|
464
571
|
constructor({ blockHash, blockNumber }) {
|
|
465
572
|
let identifier = "Block";
|
|
@@ -471,7 +578,7 @@ var BlockNotFoundError = class extends BaseError {
|
|
|
471
578
|
}
|
|
472
579
|
};
|
|
473
580
|
|
|
474
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
581
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/transaction.js
|
|
475
582
|
var transactionType = {
|
|
476
583
|
"0x0": "legacy",
|
|
477
584
|
"0x1": "eip2930",
|
|
@@ -544,7 +651,7 @@ function formatAuthorizationList(authorizationList) {
|
|
|
544
651
|
}));
|
|
545
652
|
}
|
|
546
653
|
|
|
547
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
654
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/block.js
|
|
548
655
|
function formatBlock(block, _) {
|
|
549
656
|
const transactions = (block.transactions ?? []).map((transaction) => {
|
|
550
657
|
if (typeof transaction === "string")
|
|
@@ -571,7 +678,7 @@ function formatBlock(block, _) {
|
|
|
571
678
|
}
|
|
572
679
|
var defineBlock = /* @__PURE__ */ defineFormatter("block", formatBlock);
|
|
573
680
|
|
|
574
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
681
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getBlock.js
|
|
575
682
|
async function getBlock(client, { blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", includeTransactions: includeTransactions_ } = {}) {
|
|
576
683
|
const includeTransactions = includeTransactions_ ?? false;
|
|
577
684
|
const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
|
|
@@ -593,7 +700,7 @@ async function getBlock(client, { blockHash, blockNumber, blockTag = client.expe
|
|
|
593
700
|
return format(block, "getBlock");
|
|
594
701
|
}
|
|
595
702
|
|
|
596
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
703
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getGasPrice.js
|
|
597
704
|
async function getGasPrice(client) {
|
|
598
705
|
const gasPrice = await client.request({
|
|
599
706
|
method: "eth_gasPrice"
|
|
@@ -601,7 +708,7 @@ async function getGasPrice(client) {
|
|
|
601
708
|
return BigInt(gasPrice);
|
|
602
709
|
}
|
|
603
710
|
|
|
604
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
711
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js
|
|
605
712
|
async function estimateMaxPriorityFeePerGas(client, args) {
|
|
606
713
|
return internal_estimateMaxPriorityFeePerGas(client, args);
|
|
607
714
|
}
|
|
@@ -640,7 +747,7 @@ async function internal_estimateMaxPriorityFeePerGas(client, args) {
|
|
|
640
747
|
}
|
|
641
748
|
}
|
|
642
749
|
|
|
643
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
750
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js
|
|
644
751
|
async function estimateFeesPerGas(client, args) {
|
|
645
752
|
return internal_estimateFeesPerGas(client, args);
|
|
646
753
|
}
|
|
@@ -669,31 +776,226 @@ async function internal_estimateFeesPerGas(client, args) {
|
|
|
669
776
|
request,
|
|
670
777
|
type
|
|
671
778
|
});
|
|
672
|
-
if (fees !== null)
|
|
673
|
-
return fees;
|
|
779
|
+
if (fees !== null)
|
|
780
|
+
return fees;
|
|
781
|
+
}
|
|
782
|
+
if (type === "eip1559") {
|
|
783
|
+
if (typeof block.baseFeePerGas !== "bigint")
|
|
784
|
+
throw new Eip1559FeesNotSupportedError();
|
|
785
|
+
const maxPriorityFeePerGas = typeof request?.maxPriorityFeePerGas === "bigint" ? request.maxPriorityFeePerGas : await internal_estimateMaxPriorityFeePerGas(client, {
|
|
786
|
+
block,
|
|
787
|
+
chain,
|
|
788
|
+
request
|
|
789
|
+
});
|
|
790
|
+
const baseFeePerGas = multiply(block.baseFeePerGas);
|
|
791
|
+
const maxFeePerGas = request?.maxFeePerGas ?? baseFeePerGas + maxPriorityFeePerGas;
|
|
792
|
+
return {
|
|
793
|
+
maxFeePerGas,
|
|
794
|
+
maxPriorityFeePerGas
|
|
795
|
+
};
|
|
796
|
+
}
|
|
797
|
+
const gasPrice = request?.gasPrice ?? multiply(await getAction(client, getGasPrice, "getGasPrice")({}));
|
|
798
|
+
return {
|
|
799
|
+
gasPrice
|
|
800
|
+
};
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getTransactionCount.js
|
|
804
|
+
async function getTransactionCount(client, { address, blockHash, blockNumber, blockTag = "latest", requireCanonical }) {
|
|
805
|
+
const block = formatBlockParameter({
|
|
806
|
+
blockHash,
|
|
807
|
+
blockNumber,
|
|
808
|
+
blockTag,
|
|
809
|
+
requireCanonical
|
|
810
|
+
});
|
|
811
|
+
const count = await client.request({
|
|
812
|
+
method: "eth_getTransactionCount",
|
|
813
|
+
params: [address, block]
|
|
814
|
+
}, {
|
|
815
|
+
dedupe: typeof blockNumber === "bigint" || blockHash !== void 0
|
|
816
|
+
});
|
|
817
|
+
return hexToNumber(count);
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/blobsToCommitments.js
|
|
821
|
+
function blobsToCommitments(parameters) {
|
|
822
|
+
const { kzg } = parameters;
|
|
823
|
+
const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
|
|
824
|
+
const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
|
|
825
|
+
const commitments = [];
|
|
826
|
+
for (const blob of blobs)
|
|
827
|
+
commitments.push(Uint8Array.from(kzg.blobToKzgCommitment(blob)));
|
|
828
|
+
return to === "bytes" ? commitments : commitments.map((x) => bytesToHex(x));
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/blobsToProofs.js
|
|
832
|
+
function blobsToProofs(parameters) {
|
|
833
|
+
const { kzg } = parameters;
|
|
834
|
+
const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
|
|
835
|
+
const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
|
|
836
|
+
const commitments = typeof parameters.commitments[0] === "string" ? parameters.commitments.map((x) => hexToBytes(x)) : parameters.commitments;
|
|
837
|
+
const proofs = [];
|
|
838
|
+
for (let i = 0; i < blobs.length; i++) {
|
|
839
|
+
const blob = blobs[i];
|
|
840
|
+
const commitment = commitments[i];
|
|
841
|
+
proofs.push(Uint8Array.from(kzg.computeBlobKzgProof(blob, commitment)));
|
|
842
|
+
}
|
|
843
|
+
return to === "bytes" ? proofs : proofs.map((x) => bytesToHex(x));
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
// node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js
|
|
847
|
+
var sha2562 = sha256;
|
|
848
|
+
|
|
849
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/sha256.js
|
|
850
|
+
function sha2563(value, to_) {
|
|
851
|
+
const to = to_ || "hex";
|
|
852
|
+
const bytes = sha2562(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
853
|
+
if (to === "bytes")
|
|
854
|
+
return bytes;
|
|
855
|
+
return toHex(bytes);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js
|
|
859
|
+
function commitmentToVersionedHash(parameters) {
|
|
860
|
+
const { commitment, version = 1 } = parameters;
|
|
861
|
+
const to = parameters.to ?? (typeof commitment === "string" ? "hex" : "bytes");
|
|
862
|
+
const versionedHash = sha2563(commitment, "bytes");
|
|
863
|
+
versionedHash.set([version], 0);
|
|
864
|
+
return to === "bytes" ? versionedHash : bytesToHex(versionedHash);
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js
|
|
868
|
+
function commitmentsToVersionedHashes(parameters) {
|
|
869
|
+
const { commitments, version } = parameters;
|
|
870
|
+
const to = parameters.to ?? (typeof commitments[0] === "string" ? "hex" : "bytes");
|
|
871
|
+
const hashes = [];
|
|
872
|
+
for (const commitment of commitments) {
|
|
873
|
+
hashes.push(commitmentToVersionedHash({
|
|
874
|
+
commitment,
|
|
875
|
+
to,
|
|
876
|
+
version
|
|
877
|
+
}));
|
|
878
|
+
}
|
|
879
|
+
return hashes;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/blob.js
|
|
883
|
+
var blobsPerTransaction = 6;
|
|
884
|
+
var bytesPerFieldElement = 32;
|
|
885
|
+
var fieldElementsPerBlob = 4096;
|
|
886
|
+
var bytesPerBlob = bytesPerFieldElement * fieldElementsPerBlob;
|
|
887
|
+
var maxBytesPerTransaction = bytesPerBlob * blobsPerTransaction - // terminator byte (0x80).
|
|
888
|
+
1 - // zero byte (0x00) appended to each field element.
|
|
889
|
+
1 * fieldElementsPerBlob * blobsPerTransaction;
|
|
890
|
+
|
|
891
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/kzg.js
|
|
892
|
+
var versionedHashVersionKzg = 1;
|
|
893
|
+
|
|
894
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/blob.js
|
|
895
|
+
var BlobSizeTooLargeError = class extends BaseError {
|
|
896
|
+
constructor({ maxSize, size: size5 }) {
|
|
897
|
+
super("Blob size is too large.", {
|
|
898
|
+
metaMessages: [`Max: ${maxSize} bytes`, `Given: ${size5} bytes`],
|
|
899
|
+
name: "BlobSizeTooLargeError"
|
|
900
|
+
});
|
|
674
901
|
}
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
902
|
+
};
|
|
903
|
+
var EmptyBlobError = class extends BaseError {
|
|
904
|
+
constructor() {
|
|
905
|
+
super("Blob data must not be empty.", { name: "EmptyBlobError" });
|
|
906
|
+
}
|
|
907
|
+
};
|
|
908
|
+
var InvalidVersionedHashSizeError = class extends BaseError {
|
|
909
|
+
constructor({ hash: hash2, size: size5 }) {
|
|
910
|
+
super(`Versioned hash "${hash2}" size is invalid.`, {
|
|
911
|
+
metaMessages: ["Expected: 32", `Received: ${size5}`],
|
|
912
|
+
name: "InvalidVersionedHashSizeError"
|
|
682
913
|
});
|
|
683
|
-
const baseFeePerGas = multiply(block.baseFeePerGas);
|
|
684
|
-
const maxFeePerGas = request?.maxFeePerGas ?? baseFeePerGas + maxPriorityFeePerGas;
|
|
685
|
-
return {
|
|
686
|
-
maxFeePerGas,
|
|
687
|
-
maxPriorityFeePerGas
|
|
688
|
-
};
|
|
689
914
|
}
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
915
|
+
};
|
|
916
|
+
var InvalidVersionedHashVersionError = class extends BaseError {
|
|
917
|
+
constructor({ hash: hash2, version }) {
|
|
918
|
+
super(`Versioned hash "${hash2}" version is invalid.`, {
|
|
919
|
+
metaMessages: [
|
|
920
|
+
`Expected: ${versionedHashVersionKzg}`,
|
|
921
|
+
`Received: ${version}`
|
|
922
|
+
],
|
|
923
|
+
name: "InvalidVersionedHashVersionError"
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
};
|
|
927
|
+
|
|
928
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/toBlobs.js
|
|
929
|
+
function toBlobs(parameters) {
|
|
930
|
+
const to = parameters.to ?? (typeof parameters.data === "string" ? "hex" : "bytes");
|
|
931
|
+
const data = typeof parameters.data === "string" ? hexToBytes(parameters.data) : parameters.data;
|
|
932
|
+
const size_ = size(data);
|
|
933
|
+
if (!size_)
|
|
934
|
+
throw new EmptyBlobError();
|
|
935
|
+
if (size_ > maxBytesPerTransaction)
|
|
936
|
+
throw new BlobSizeTooLargeError({
|
|
937
|
+
maxSize: maxBytesPerTransaction,
|
|
938
|
+
size: size_
|
|
939
|
+
});
|
|
940
|
+
const blobs = [];
|
|
941
|
+
let active = true;
|
|
942
|
+
let position = 0;
|
|
943
|
+
while (active) {
|
|
944
|
+
const blob = createCursor(new Uint8Array(bytesPerBlob));
|
|
945
|
+
let size5 = 0;
|
|
946
|
+
while (size5 < fieldElementsPerBlob) {
|
|
947
|
+
const bytes = data.slice(position, position + (bytesPerFieldElement - 1));
|
|
948
|
+
blob.pushByte(0);
|
|
949
|
+
blob.pushBytes(bytes);
|
|
950
|
+
if (bytes.length < 31) {
|
|
951
|
+
blob.pushByte(128);
|
|
952
|
+
active = false;
|
|
953
|
+
break;
|
|
954
|
+
}
|
|
955
|
+
size5++;
|
|
956
|
+
position += 31;
|
|
957
|
+
}
|
|
958
|
+
blobs.push(blob);
|
|
959
|
+
}
|
|
960
|
+
return to === "bytes" ? blobs.map((x) => x.bytes) : blobs.map((x) => bytesToHex(x.bytes));
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/toBlobSidecars.js
|
|
964
|
+
function toBlobSidecars(parameters) {
|
|
965
|
+
const { data, kzg, to } = parameters;
|
|
966
|
+
const blobs = parameters.blobs ?? toBlobs({ data, to });
|
|
967
|
+
const commitments = parameters.commitments ?? blobsToCommitments({ blobs, kzg, to });
|
|
968
|
+
const proofs = parameters.proofs ?? blobsToProofs({ blobs, commitments, kzg, to });
|
|
969
|
+
const sidecars = [];
|
|
970
|
+
for (let i = 0; i < blobs.length; i++)
|
|
971
|
+
sidecars.push({
|
|
972
|
+
blob: blobs[i],
|
|
973
|
+
commitment: commitments[i],
|
|
974
|
+
proof: proofs[i]
|
|
975
|
+
});
|
|
976
|
+
return sidecars;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/transaction/getTransactionType.js
|
|
980
|
+
function getTransactionType(transaction) {
|
|
981
|
+
if (transaction.type)
|
|
982
|
+
return transaction.type;
|
|
983
|
+
if (typeof transaction.authorizationList !== "undefined")
|
|
984
|
+
return "eip7702";
|
|
985
|
+
if (typeof transaction.blobs !== "undefined" || typeof transaction.blobVersionedHashes !== "undefined" || typeof transaction.maxFeePerBlobGas !== "undefined" || typeof transaction.sidecars !== "undefined")
|
|
986
|
+
return "eip4844";
|
|
987
|
+
if (typeof transaction.maxFeePerGas !== "undefined" || typeof transaction.maxPriorityFeePerGas !== "undefined") {
|
|
988
|
+
return "eip1559";
|
|
989
|
+
}
|
|
990
|
+
if (typeof transaction.gasPrice !== "undefined") {
|
|
991
|
+
if (typeof transaction.accessList !== "undefined")
|
|
992
|
+
return "eip2930";
|
|
993
|
+
return "legacy";
|
|
994
|
+
}
|
|
995
|
+
throw new InvalidSerializableTransactionError({ transaction });
|
|
694
996
|
}
|
|
695
997
|
|
|
696
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
998
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/errors/getTransactionError.js
|
|
697
999
|
function getTransactionError(err, { docsPath: docsPath4, ...args }) {
|
|
698
1000
|
const cause = (() => {
|
|
699
1001
|
const cause2 = getNodeError(err, args);
|
|
@@ -707,7 +1009,7 @@ function getTransactionError(err, { docsPath: docsPath4, ...args }) {
|
|
|
707
1009
|
});
|
|
708
1010
|
}
|
|
709
1011
|
|
|
710
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1012
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getChainId.js
|
|
711
1013
|
async function getChainId(client) {
|
|
712
1014
|
const chainIdHex = await client.request({
|
|
713
1015
|
method: "eth_chainId"
|
|
@@ -715,7 +1017,7 @@ async function getChainId(client) {
|
|
|
715
1017
|
return hexToNumber(chainIdHex);
|
|
716
1018
|
}
|
|
717
1019
|
|
|
718
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1020
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/fillTransaction.js
|
|
719
1021
|
async function fillTransaction(client, parameters) {
|
|
720
1022
|
const { account = client.account, accessList, authorizationList, chain = client.chain, blobVersionedHashes, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce: nonce_, nonceManager: nonceManager2, to, type, value, ...rest } = parameters;
|
|
721
1023
|
const nonce = await (async () => {
|
|
@@ -820,7 +1122,7 @@ async function fillTransaction(client, parameters) {
|
|
|
820
1122
|
}
|
|
821
1123
|
}
|
|
822
1124
|
|
|
823
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1125
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js
|
|
824
1126
|
var defaultParameters = [
|
|
825
1127
|
"blobVersionedHashes",
|
|
826
1128
|
"chainId",
|
|
@@ -897,14 +1199,14 @@ async function prepareTransactionRequest(client, args) {
|
|
|
897
1199
|
return false;
|
|
898
1200
|
})();
|
|
899
1201
|
const fillResult = attemptFill ? await getAction(client, fillTransaction, "fillTransaction")({ ...request, nonce }).then((result) => {
|
|
900
|
-
const { chainId: chainId2, from:
|
|
1202
|
+
const { chainId: chainId2, from: from14, gas: gas2, gasPrice, nonce: nonce2, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, type: type2, ...rest } = result.transaction;
|
|
901
1203
|
const feeToken = "feeToken" in rest ? rest.feeToken : void 0;
|
|
902
1204
|
const hasFilledFeePayerSignature = "feePayerSignature" in rest && rest.feePayerSignature !== null && typeof rest.feePayerSignature !== "undefined";
|
|
903
1205
|
const shouldUseFilledFeeToken = typeof feeToken !== "undefined" && feeToken !== null && (!("feeToken" in request) || hasFilledFeePayerSignature);
|
|
904
1206
|
supportsFillTransaction.set(client.uid, true);
|
|
905
1207
|
return {
|
|
906
1208
|
...request,
|
|
907
|
-
...
|
|
1209
|
+
...from14 ? { from: from14 } : {},
|
|
908
1210
|
...type2 && !request.type ? { type: type2 } : {},
|
|
909
1211
|
...typeof chainId2 !== "undefined" ? { chainId: chainId2 } : {},
|
|
910
1212
|
...typeof gas2 !== "undefined" ? { gas: gas2 } : {},
|
|
@@ -1044,7 +1346,7 @@ async function prepareTransactionRequest(client, args) {
|
|
|
1044
1346
|
return request;
|
|
1045
1347
|
}
|
|
1046
1348
|
|
|
1047
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1349
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/estimateGas.js
|
|
1048
1350
|
async function estimateGas(client, args) {
|
|
1049
1351
|
const { account: account_ = client.account, prepare = true } = args;
|
|
1050
1352
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -1114,7 +1416,7 @@ async function estimateGas(client, args) {
|
|
|
1114
1416
|
}
|
|
1115
1417
|
}
|
|
1116
1418
|
|
|
1117
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1419
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/estimateContractGas.js
|
|
1118
1420
|
async function estimateContractGas(client, parameters) {
|
|
1119
1421
|
const { abi: abi2, address, args, functionName, dataSuffix = typeof client.dataSuffix === "string" ? client.dataSuffix : client.dataSuffix?.value, ...request } = parameters;
|
|
1120
1422
|
const data = encodeFunctionData({
|
|
@@ -1142,7 +1444,7 @@ async function estimateContractGas(client, parameters) {
|
|
|
1142
1444
|
}
|
|
1143
1445
|
}
|
|
1144
1446
|
|
|
1145
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1447
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/log.js
|
|
1146
1448
|
function formatLog(log, { args, eventName } = {}) {
|
|
1147
1449
|
return {
|
|
1148
1450
|
...log,
|
|
@@ -1156,7 +1458,7 @@ function formatLog(log, { args, eventName } = {}) {
|
|
|
1156
1458
|
};
|
|
1157
1459
|
}
|
|
1158
1460
|
|
|
1159
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1461
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/decodeEventLog.js
|
|
1160
1462
|
var docsPath2 = "/docs/contract/decodeEventLog";
|
|
1161
1463
|
function decodeEventLog(parameters) {
|
|
1162
1464
|
const { abi: abi2, data, strict: strict_, topics } = parameters;
|
|
@@ -1243,7 +1545,7 @@ function decodeTopic({ param, value }) {
|
|
|
1243
1545
|
return decodedArg[0];
|
|
1244
1546
|
}
|
|
1245
1547
|
|
|
1246
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1548
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/parseEventLogs.js
|
|
1247
1549
|
function parseEventLogs(parameters) {
|
|
1248
1550
|
const { abi: abi2, args, logs, strict = true } = parameters;
|
|
1249
1551
|
const eventName = (() => {
|
|
@@ -1348,7 +1650,7 @@ function includesArgs(parameters) {
|
|
|
1348
1650
|
return false;
|
|
1349
1651
|
}
|
|
1350
1652
|
|
|
1351
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1653
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getLogs.js
|
|
1352
1654
|
async function getLogs(client, { address, blockHash, fromBlock, toBlock, event, events: events_, args, strict: strict_ } = {}) {
|
|
1353
1655
|
const strict = strict_ ?? false;
|
|
1354
1656
|
const events = events_ ?? (event ? [event] : void 0);
|
|
@@ -1393,7 +1695,7 @@ async function getLogs(client, { address, blockHash, fromBlock, toBlock, event,
|
|
|
1393
1695
|
});
|
|
1394
1696
|
}
|
|
1395
1697
|
|
|
1396
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1698
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getContractEvents.js
|
|
1397
1699
|
async function getContractEvents(client, parameters) {
|
|
1398
1700
|
const { abi: abi2, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
|
|
1399
1701
|
const event = eventName ? getAbiItem({ abi: abi2, name: eventName }) : void 0;
|
|
@@ -1410,7 +1712,7 @@ async function getContractEvents(client, parameters) {
|
|
|
1410
1712
|
});
|
|
1411
1713
|
}
|
|
1412
1714
|
|
|
1413
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1715
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/readContract.js
|
|
1414
1716
|
async function readContract(client, parameters) {
|
|
1415
1717
|
const { abi: abi2, address, args, functionName, ...rest } = parameters;
|
|
1416
1718
|
const calldata = encodeFunctionData({
|
|
@@ -1441,7 +1743,7 @@ async function readContract(client, parameters) {
|
|
|
1441
1743
|
}
|
|
1442
1744
|
}
|
|
1443
1745
|
|
|
1444
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1746
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/simulateContract.js
|
|
1445
1747
|
async function simulateContract(client, parameters) {
|
|
1446
1748
|
const { abi: abi2, address, args, functionName, dataSuffix = typeof client.dataSuffix === "string" ? client.dataSuffix : client.dataSuffix?.value, ...callRequest } = parameters;
|
|
1447
1749
|
const account = callRequest.account ? parseAccount(callRequest.account) : client.account;
|
|
@@ -1485,7 +1787,7 @@ async function simulateContract(client, parameters) {
|
|
|
1485
1787
|
}
|
|
1486
1788
|
}
|
|
1487
1789
|
|
|
1488
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1790
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/observe.js
|
|
1489
1791
|
var listenersCache = /* @__PURE__ */ new Map();
|
|
1490
1792
|
var cleanupCache = /* @__PURE__ */ new Map();
|
|
1491
1793
|
var callbackCount = 0;
|
|
@@ -1538,7 +1840,7 @@ function observe(observerId, callbacks, fn) {
|
|
|
1538
1840
|
return unwatch;
|
|
1539
1841
|
}
|
|
1540
1842
|
|
|
1541
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1843
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/wait.js
|
|
1542
1844
|
async function wait(time, { signal } = {}) {
|
|
1543
1845
|
return new Promise((resolve, reject) => {
|
|
1544
1846
|
if (signal?.aborted) {
|
|
@@ -1559,7 +1861,7 @@ async function wait(time, { signal } = {}) {
|
|
|
1559
1861
|
});
|
|
1560
1862
|
}
|
|
1561
1863
|
|
|
1562
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1864
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/poll.js
|
|
1563
1865
|
function poll(fn, { emitOnBegin, initialWaitTime, interval }) {
|
|
1564
1866
|
let active = true;
|
|
1565
1867
|
const unwatch = () => active = false;
|
|
@@ -1582,7 +1884,7 @@ function poll(fn, { emitOnBegin, initialWaitTime, interval }) {
|
|
|
1582
1884
|
return unwatch;
|
|
1583
1885
|
}
|
|
1584
1886
|
|
|
1585
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1887
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/promise/withCache.js
|
|
1586
1888
|
var promiseCache = /* @__PURE__ */ new Map();
|
|
1587
1889
|
var responseCache = /* @__PURE__ */ new Map();
|
|
1588
1890
|
function getCache(cacheKey2) {
|
|
@@ -1624,7 +1926,7 @@ async function withCache(fn, { cacheKey: cacheKey2, cacheTime = Number.POSITIVE_
|
|
|
1624
1926
|
}
|
|
1625
1927
|
}
|
|
1626
1928
|
|
|
1627
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1929
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getBlockNumber.js
|
|
1628
1930
|
var cacheKey = (id) => `blockNumber.${id}`;
|
|
1629
1931
|
async function getBlockNumber(client, { cacheTime = client.cacheTime } = {}) {
|
|
1630
1932
|
const blockNumberHex = await withCache(() => client.request({
|
|
@@ -1633,7 +1935,7 @@ async function getBlockNumber(client, { cacheTime = client.cacheTime } = {}) {
|
|
|
1633
1935
|
return BigInt(blockNumberHex);
|
|
1634
1936
|
}
|
|
1635
1937
|
|
|
1636
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1938
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getFilterChanges.js
|
|
1637
1939
|
async function getFilterChanges(_client, { filter }) {
|
|
1638
1940
|
const strict = "strict" in filter && filter.strict;
|
|
1639
1941
|
const logs = await filter.request({
|
|
@@ -1652,7 +1954,7 @@ async function getFilterChanges(_client, { filter }) {
|
|
|
1652
1954
|
});
|
|
1653
1955
|
}
|
|
1654
1956
|
|
|
1655
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1957
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/uninstallFilter.js
|
|
1656
1958
|
async function uninstallFilter(_client, { filter }) {
|
|
1657
1959
|
return filter.request({
|
|
1658
1960
|
method: "eth_uninstallFilter",
|
|
@@ -1660,7 +1962,7 @@ async function uninstallFilter(_client, { filter }) {
|
|
|
1660
1962
|
});
|
|
1661
1963
|
}
|
|
1662
1964
|
|
|
1663
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
1965
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/watchContractEvent.js
|
|
1664
1966
|
function watchContractEvent(client, parameters) {
|
|
1665
1967
|
const { abi: abi2, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
|
|
1666
1968
|
const enablePolling = (() => {
|
|
@@ -1836,7 +2138,7 @@ function watchContractEvent(client, parameters) {
|
|
|
1836
2138
|
return enablePolling ? pollContractEvent() : subscribeContractEvent();
|
|
1837
2139
|
}
|
|
1838
2140
|
|
|
1839
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2141
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/account.js
|
|
1840
2142
|
var AccountNotFoundError = class extends BaseError {
|
|
1841
2143
|
constructor({ docsPath: docsPath4 } = {}) {
|
|
1842
2144
|
super([
|
|
@@ -1859,7 +2161,7 @@ var AccountTypeNotSupportedError = class extends BaseError {
|
|
|
1859
2161
|
}
|
|
1860
2162
|
};
|
|
1861
2163
|
|
|
1862
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2164
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/chain/assertCurrentChain.js
|
|
1863
2165
|
function assertCurrentChain({ chain, currentChainId }) {
|
|
1864
2166
|
if (!chain)
|
|
1865
2167
|
throw new ChainNotFoundError();
|
|
@@ -1867,7 +2169,7 @@ function assertCurrentChain({ chain, currentChainId }) {
|
|
|
1867
2169
|
throw new ChainMismatchError({ chain, currentChainId });
|
|
1868
2170
|
}
|
|
1869
2171
|
|
|
1870
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2172
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js
|
|
1871
2173
|
async function sendRawTransaction(client, { serializedTransaction }) {
|
|
1872
2174
|
return client.request({
|
|
1873
2175
|
method: "eth_sendRawTransaction",
|
|
@@ -1875,7 +2177,7 @@ async function sendRawTransaction(client, { serializedTransaction }) {
|
|
|
1875
2177
|
}, { retryCount: 0 });
|
|
1876
2178
|
}
|
|
1877
2179
|
|
|
1878
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2180
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/sendTransaction.js
|
|
1879
2181
|
var supportsWalletNamespace = new LruMap(128);
|
|
1880
2182
|
async function sendTransaction(client, parameters) {
|
|
1881
2183
|
const { account: account_ = client.account, assertChainId = true, chain = client.chain, accessList, authorizationList, blobs, data, dataSuffix = typeof client.dataSuffix === "string" ? client.dataSuffix : client.dataSuffix?.value, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, type, value, ...rest } = parameters;
|
|
@@ -2026,7 +2328,7 @@ async function sendTransaction(client, parameters) {
|
|
|
2026
2328
|
}
|
|
2027
2329
|
}
|
|
2028
2330
|
|
|
2029
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2331
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/writeContract.js
|
|
2030
2332
|
async function writeContract(client, parameters) {
|
|
2031
2333
|
return writeContract.internal(client, sendTransaction, "sendTransaction", parameters);
|
|
2032
2334
|
}
|
|
@@ -2064,7 +2366,7 @@ async function writeContract(client, parameters) {
|
|
|
2064
2366
|
writeContract2.internal = internal;
|
|
2065
2367
|
})(writeContract || (writeContract = {}));
|
|
2066
2368
|
|
|
2067
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2369
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/getContract.js
|
|
2068
2370
|
function getContract({ abi: abi2, address, client: client_ }) {
|
|
2069
2371
|
const client = client_;
|
|
2070
2372
|
const [publicClient, walletClient] = (() => {
|
|
@@ -2234,7 +2536,7 @@ function getEventParameters(values, abiEvent) {
|
|
|
2234
2536
|
return { args, options };
|
|
2235
2537
|
}
|
|
2236
2538
|
|
|
2237
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2539
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/calls.js
|
|
2238
2540
|
var BundleFailedError = class extends BaseError {
|
|
2239
2541
|
constructor(result) {
|
|
2240
2542
|
super(`Call bundle failed with status: ${result.statusCode}`, {
|
|
@@ -2250,7 +2552,7 @@ var BundleFailedError = class extends BaseError {
|
|
|
2250
2552
|
}
|
|
2251
2553
|
};
|
|
2252
2554
|
|
|
2253
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2555
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/promise/withRetry.js
|
|
2254
2556
|
function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shouldRetry2 = () => true, signal } = {}) {
|
|
2255
2557
|
return new Promise((resolve, reject) => {
|
|
2256
2558
|
const attemptRetry = async ({ count = 0 } = {}) => {
|
|
@@ -2291,7 +2593,7 @@ function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry: shoul
|
|
|
2291
2593
|
});
|
|
2292
2594
|
}
|
|
2293
2595
|
|
|
2294
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2596
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/transactionReceipt.js
|
|
2295
2597
|
var receiptStatuses = {
|
|
2296
2598
|
"0x0": "reverted",
|
|
2297
2599
|
"0x1": "success"
|
|
@@ -2318,7 +2620,7 @@ function formatTransactionReceipt(transactionReceipt, _) {
|
|
|
2318
2620
|
}
|
|
2319
2621
|
var defineTransactionReceipt = /* @__PURE__ */ defineFormatter("transactionReceipt", formatTransactionReceipt);
|
|
2320
2622
|
|
|
2321
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2623
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/sendCalls.js
|
|
2322
2624
|
var fallbackMagicIdentifier = "0x5792579257925792579257925792579257925792579257925792579257925792";
|
|
2323
2625
|
var fallbackTransactionErrorMagicIdentifier = numberToHex(0, {
|
|
2324
2626
|
size: 32
|
|
@@ -2433,7 +2735,7 @@ async function sendCalls(client, parameters) {
|
|
|
2433
2735
|
}
|
|
2434
2736
|
}
|
|
2435
2737
|
|
|
2436
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2738
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/getCallsStatus.js
|
|
2437
2739
|
async function getCallsStatus(client, parameters) {
|
|
2438
2740
|
async function getStatus(id) {
|
|
2439
2741
|
const isTransactions = id.endsWith(fallbackMagicIdentifier.slice(2));
|
|
@@ -2498,7 +2800,7 @@ async function getCallsStatus(client, parameters) {
|
|
|
2498
2800
|
};
|
|
2499
2801
|
}
|
|
2500
2802
|
|
|
2501
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2803
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/waitForCallsStatus.js
|
|
2502
2804
|
async function waitForCallsStatus(client, parameters) {
|
|
2503
2805
|
const {
|
|
2504
2806
|
id,
|
|
@@ -2556,7 +2858,7 @@ var WaitForCallsStatusTimeoutError = class extends BaseError {
|
|
|
2556
2858
|
}
|
|
2557
2859
|
};
|
|
2558
2860
|
|
|
2559
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2861
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/uid.js
|
|
2560
2862
|
var size4 = 256;
|
|
2561
2863
|
var index = size4;
|
|
2562
2864
|
var buffer;
|
|
@@ -2571,7 +2873,7 @@ function uid(length = 11) {
|
|
|
2571
2873
|
return buffer.substring(index, index++ + length);
|
|
2572
2874
|
}
|
|
2573
2875
|
|
|
2574
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2876
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/createClient.js
|
|
2575
2877
|
function createClient(parameters) {
|
|
2576
2878
|
const { batch, chain, ccipRead, dataSuffix, key = "base", name = "Base Client", tokens, type = "base" } = parameters;
|
|
2577
2879
|
const experimental_blockTag = parameters.experimental_blockTag ?? (typeof chain?.experimental_preconfirmationTime === "number" ? "pending" : void 0);
|
|
@@ -2654,7 +2956,7 @@ function rpcSchema() {
|
|
|
2654
2956
|
return null;
|
|
2655
2957
|
}
|
|
2656
2958
|
|
|
2657
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2959
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/errors.js
|
|
2658
2960
|
function isNullUniversalResolverError(err) {
|
|
2659
2961
|
if (!(err instanceof BaseError))
|
|
2660
2962
|
return false;
|
|
@@ -2676,7 +2978,7 @@ function isNullUniversalResolverError(err) {
|
|
|
2676
2978
|
return false;
|
|
2677
2979
|
}
|
|
2678
2980
|
|
|
2679
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2981
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js
|
|
2680
2982
|
function encodedLabelToLabelhash(label) {
|
|
2681
2983
|
if (label.length !== 66)
|
|
2682
2984
|
return null;
|
|
@@ -2690,7 +2992,7 @@ function encodedLabelToLabelhash(label) {
|
|
|
2690
2992
|
return hash2;
|
|
2691
2993
|
}
|
|
2692
2994
|
|
|
2693
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
2995
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/namehash.js
|
|
2694
2996
|
function namehash(name) {
|
|
2695
2997
|
let result = new Uint8Array(32).fill(0);
|
|
2696
2998
|
if (!name)
|
|
@@ -2704,12 +3006,12 @@ function namehash(name) {
|
|
|
2704
3006
|
return bytesToHex(result);
|
|
2705
3007
|
}
|
|
2706
3008
|
|
|
2707
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3009
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/encodeLabelhash.js
|
|
2708
3010
|
function encodeLabelhash(hash2) {
|
|
2709
3011
|
return `[${hash2.slice(2)}]`;
|
|
2710
3012
|
}
|
|
2711
3013
|
|
|
2712
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3014
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/labelhash.js
|
|
2713
3015
|
function labelhash(label) {
|
|
2714
3016
|
const result = new Uint8Array(32).fill(0);
|
|
2715
3017
|
if (!label)
|
|
@@ -2717,7 +3019,7 @@ function labelhash(label) {
|
|
|
2717
3019
|
return encodedLabelToLabelhash(label) || keccak256(stringToBytes(label));
|
|
2718
3020
|
}
|
|
2719
3021
|
|
|
2720
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3022
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/packetToBytes.js
|
|
2721
3023
|
function packetToBytes(packet) {
|
|
2722
3024
|
const value = packet.replace(/^\.|\.$/gm, "");
|
|
2723
3025
|
if (value.length === 0)
|
|
@@ -2738,7 +3040,7 @@ function packetToBytes(packet) {
|
|
|
2738
3040
|
return bytes;
|
|
2739
3041
|
}
|
|
2740
3042
|
|
|
2741
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3043
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/ens/getEnsAddress.js
|
|
2742
3044
|
async function getEnsAddress(client, parameters) {
|
|
2743
3045
|
const { blockNumber, blockTag, coinType, name, gatewayUrls, strict } = parameters;
|
|
2744
3046
|
const { chain } = client;
|
|
@@ -2815,7 +3117,7 @@ function decodeAddress({ coinType, data, args }) {
|
|
|
2815
3117
|
}
|
|
2816
3118
|
}
|
|
2817
3119
|
|
|
2818
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3120
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/ens.js
|
|
2819
3121
|
var EnsAvatarInvalidMetadataError = class extends BaseError {
|
|
2820
3122
|
constructor({ data }) {
|
|
2821
3123
|
super("Unable to extract image from metadata. The metadata may be malformed or invalid.", {
|
|
@@ -2853,7 +3155,7 @@ var EnsInvalidChainIdError = class extends BaseError {
|
|
|
2853
3155
|
}
|
|
2854
3156
|
};
|
|
2855
3157
|
|
|
2856
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3158
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/avatar/utils.js
|
|
2857
3159
|
var networkRegex = /(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/;
|
|
2858
3160
|
var ipfsHashRegex = /^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/;
|
|
2859
3161
|
var base64Regex = /^data:([a-zA-Z\-/+]*);base64,([^"].*)/;
|
|
@@ -3024,7 +3326,7 @@ async function getNftTokenUri(client, { nft }) {
|
|
|
3024
3326
|
throw new EnsAvatarUnsupportedNamespaceError({ namespace: nft.namespace });
|
|
3025
3327
|
}
|
|
3026
3328
|
|
|
3027
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3329
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js
|
|
3028
3330
|
async function parseAvatarRecord(client, { gatewayUrls, record }) {
|
|
3029
3331
|
if (/eip155:/i.test(record))
|
|
3030
3332
|
return parseNftAvatarUri(client, { gatewayUrls, record });
|
|
@@ -3054,7 +3356,7 @@ async function parseNftAvatarUri(client, { gatewayUrls, record }) {
|
|
|
3054
3356
|
});
|
|
3055
3357
|
}
|
|
3056
3358
|
|
|
3057
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3359
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/ens/getEnsText.js
|
|
3058
3360
|
async function getEnsText(client, parameters) {
|
|
3059
3361
|
const { blockNumber, blockTag, key, name, gatewayUrls, strict } = parameters;
|
|
3060
3362
|
const { chain } = client;
|
|
@@ -3108,7 +3410,7 @@ async function getEnsText(client, parameters) {
|
|
|
3108
3410
|
}
|
|
3109
3411
|
}
|
|
3110
3412
|
|
|
3111
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3413
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/ens/getEnsAvatar.js
|
|
3112
3414
|
async function getEnsAvatar(client, { blockNumber, blockTag, assetGatewayUrls, name, gatewayUrls, strict, universalResolverAddress }) {
|
|
3113
3415
|
const record = await getAction(client, getEnsText, "getEnsText")({
|
|
3114
3416
|
blockNumber,
|
|
@@ -3131,7 +3433,7 @@ async function getEnsAvatar(client, { blockNumber, blockTag, assetGatewayUrls, n
|
|
|
3131
3433
|
}
|
|
3132
3434
|
}
|
|
3133
3435
|
|
|
3134
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3436
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/ens/getEnsName.js
|
|
3135
3437
|
async function getEnsName(client, parameters) {
|
|
3136
3438
|
const { address, blockNumber, blockTag, coinType = 60n, gatewayUrls, strict } = parameters;
|
|
3137
3439
|
const { chain } = client;
|
|
@@ -3167,7 +3469,7 @@ async function getEnsName(client, parameters) {
|
|
|
3167
3469
|
}
|
|
3168
3470
|
}
|
|
3169
3471
|
|
|
3170
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3472
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/ens/getEnsResolver.js
|
|
3171
3473
|
async function getEnsResolver(client, parameters) {
|
|
3172
3474
|
const { blockNumber, blockTag, name } = parameters;
|
|
3173
3475
|
const { chain } = client;
|
|
@@ -3208,7 +3510,7 @@ async function getEnsResolver(client, parameters) {
|
|
|
3208
3510
|
return resolverAddress;
|
|
3209
3511
|
}
|
|
3210
3512
|
|
|
3211
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3513
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/createAccessList.js
|
|
3212
3514
|
async function createAccessList(client, args) {
|
|
3213
3515
|
const { account: account_ = client.account, blockNumber, blockTag = "latest", blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, to, value, ...rest } = args;
|
|
3214
3516
|
const account = account_ ? parseAccount(account_) : void 0;
|
|
@@ -3251,7 +3553,7 @@ async function createAccessList(client, args) {
|
|
|
3251
3553
|
}
|
|
3252
3554
|
}
|
|
3253
3555
|
|
|
3254
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3556
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/createBlockFilter.js
|
|
3255
3557
|
async function createBlockFilter(client) {
|
|
3256
3558
|
const getRequest = createFilterRequestScope(client, {
|
|
3257
3559
|
method: "eth_newBlockFilter"
|
|
@@ -3262,7 +3564,7 @@ async function createBlockFilter(client) {
|
|
|
3262
3564
|
return { id, request: getRequest(id), type: "block" };
|
|
3263
3565
|
}
|
|
3264
3566
|
|
|
3265
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3567
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/createEventFilter.js
|
|
3266
3568
|
async function createEventFilter(client, { address, args, event, events: events_, fromBlock, strict, toBlock } = {}) {
|
|
3267
3569
|
const events = events_ ?? (event ? [event] : void 0);
|
|
3268
3570
|
const getRequest = createFilterRequestScope(client, {
|
|
@@ -3303,7 +3605,7 @@ async function createEventFilter(client, { address, args, event, events: events_
|
|
|
3303
3605
|
};
|
|
3304
3606
|
}
|
|
3305
3607
|
|
|
3306
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3608
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/createPendingTransactionFilter.js
|
|
3307
3609
|
async function createPendingTransactionFilter(client) {
|
|
3308
3610
|
const getRequest = createFilterRequestScope(client, {
|
|
3309
3611
|
method: "eth_newPendingTransactionFilter"
|
|
@@ -3314,7 +3616,7 @@ async function createPendingTransactionFilter(client) {
|
|
|
3314
3616
|
return { id, request: getRequest(id), type: "transaction" };
|
|
3315
3617
|
}
|
|
3316
3618
|
|
|
3317
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3619
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getBalance.js
|
|
3318
3620
|
async function getBalance(client, { address, blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest", requireCanonical }) {
|
|
3319
3621
|
const block = formatBlockParameter({
|
|
3320
3622
|
blockHash,
|
|
@@ -3351,7 +3653,7 @@ async function getBalance(client, { address, blockHash, blockNumber, blockTag =
|
|
|
3351
3653
|
return BigInt(balance);
|
|
3352
3654
|
}
|
|
3353
3655
|
|
|
3354
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3656
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getBlobBaseFee.js
|
|
3355
3657
|
async function getBlobBaseFee(client) {
|
|
3356
3658
|
const baseFee = await client.request({
|
|
3357
3659
|
method: "eth_blobBaseFee"
|
|
@@ -3359,7 +3661,7 @@ async function getBlobBaseFee(client) {
|
|
|
3359
3661
|
return BigInt(baseFee);
|
|
3360
3662
|
}
|
|
3361
3663
|
|
|
3362
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3664
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getBlockReceipts.js
|
|
3363
3665
|
async function getBlockReceipts(client, { blockHash, blockNumber, blockTag = client.experimental_blockTag ?? "latest" } = {}) {
|
|
3364
3666
|
const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
|
|
3365
3667
|
const receipts = await client.request({
|
|
@@ -3372,7 +3674,7 @@ async function getBlockReceipts(client, { blockHash, blockNumber, blockTag = cli
|
|
|
3372
3674
|
return receipts.map((receipt) => format(receipt, "getBlockReceipts"));
|
|
3373
3675
|
}
|
|
3374
3676
|
|
|
3375
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3677
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getBlockTransactionCount.js
|
|
3376
3678
|
async function getBlockTransactionCount(client, { blockHash, blockNumber, blockTag = "latest" } = {}) {
|
|
3377
3679
|
const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
|
|
3378
3680
|
let count;
|
|
@@ -3390,7 +3692,7 @@ async function getBlockTransactionCount(client, { blockHash, blockNumber, blockT
|
|
|
3390
3692
|
return hexToNumber(count);
|
|
3391
3693
|
}
|
|
3392
3694
|
|
|
3393
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3695
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getCode.js
|
|
3394
3696
|
async function getCode(client, { address, blockHash, blockNumber, blockTag = "latest", requireCanonical }) {
|
|
3395
3697
|
const block = formatBlockParameter({
|
|
3396
3698
|
blockHash,
|
|
@@ -3409,7 +3711,7 @@ async function getCode(client, { address, blockHash, blockNumber, blockTag = "la
|
|
|
3409
3711
|
return hex;
|
|
3410
3712
|
}
|
|
3411
3713
|
|
|
3412
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3714
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getDelegation.js
|
|
3413
3715
|
async function getDelegation(client, { address, blockNumber, blockTag = "latest" }) {
|
|
3414
3716
|
const code = await getCode(client, {
|
|
3415
3717
|
address,
|
|
@@ -3424,7 +3726,7 @@ async function getDelegation(client, { address, blockNumber, blockTag = "latest"
|
|
|
3424
3726
|
return getAddress(slice(code, 3, 23));
|
|
3425
3727
|
}
|
|
3426
3728
|
|
|
3427
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3729
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/eip712.js
|
|
3428
3730
|
var Eip712DomainNotFoundError = class extends BaseError {
|
|
3429
3731
|
constructor({ address }) {
|
|
3430
3732
|
super(`No EIP-712 domain found on contract "${address}".`, {
|
|
@@ -3439,7 +3741,7 @@ var Eip712DomainNotFoundError = class extends BaseError {
|
|
|
3439
3741
|
}
|
|
3440
3742
|
};
|
|
3441
3743
|
|
|
3442
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3744
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getEip712Domain.js
|
|
3443
3745
|
async function getEip712Domain(client, parameters) {
|
|
3444
3746
|
const { address, factory, factoryData } = parameters;
|
|
3445
3747
|
try {
|
|
@@ -3487,7 +3789,7 @@ var abi = [
|
|
|
3487
3789
|
}
|
|
3488
3790
|
];
|
|
3489
3791
|
|
|
3490
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3792
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/feeHistory.js
|
|
3491
3793
|
function formatFeeHistory(feeHistory) {
|
|
3492
3794
|
return {
|
|
3493
3795
|
baseFeePerGas: feeHistory.baseFeePerGas.map((value) => BigInt(value)),
|
|
@@ -3497,7 +3799,7 @@ function formatFeeHistory(feeHistory) {
|
|
|
3497
3799
|
};
|
|
3498
3800
|
}
|
|
3499
3801
|
|
|
3500
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3802
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getFeeHistory.js
|
|
3501
3803
|
async function getFeeHistory(client, { blockCount, blockNumber, blockTag = "latest", rewardPercentiles }) {
|
|
3502
3804
|
const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : void 0;
|
|
3503
3805
|
const feeHistory = await client.request({
|
|
@@ -3511,7 +3813,7 @@ async function getFeeHistory(client, { blockCount, blockNumber, blockTag = "late
|
|
|
3511
3813
|
return formatFeeHistory(feeHistory);
|
|
3512
3814
|
}
|
|
3513
3815
|
|
|
3514
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3816
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getFilterLogs.js
|
|
3515
3817
|
async function getFilterLogs(_client, { filter }) {
|
|
3516
3818
|
const strict = filter.strict ?? false;
|
|
3517
3819
|
const logs = await filter.request({
|
|
@@ -3528,7 +3830,7 @@ async function getFilterLogs(_client, { filter }) {
|
|
|
3528
3830
|
});
|
|
3529
3831
|
}
|
|
3530
3832
|
|
|
3531
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3833
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/encodePacked.js
|
|
3532
3834
|
function encodePacked(types, values) {
|
|
3533
3835
|
if (types.length !== values.length)
|
|
3534
3836
|
throw new AbiEncodingLengthMismatchError({
|
|
@@ -3591,7 +3893,7 @@ function encode(type, value, isArray = false) {
|
|
|
3591
3893
|
throw new UnsupportedPackedAbiType(type);
|
|
3592
3894
|
}
|
|
3593
3895
|
|
|
3594
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3896
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/data/isBytes.js
|
|
3595
3897
|
function isBytes(value) {
|
|
3596
3898
|
if (!value)
|
|
3597
3899
|
return false;
|
|
@@ -3602,21 +3904,21 @@ function isBytes(value) {
|
|
|
3602
3904
|
return value.BYTES_PER_ELEMENT === 1 && value.constructor.name === "Uint8Array";
|
|
3603
3905
|
}
|
|
3604
3906
|
|
|
3605
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
3907
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/address/getContractAddress.js
|
|
3606
3908
|
function getContractAddress(opts) {
|
|
3607
3909
|
if (opts.opcode === "CREATE2")
|
|
3608
3910
|
return getCreate2Address(opts);
|
|
3609
3911
|
return getCreateAddress(opts);
|
|
3610
3912
|
}
|
|
3611
3913
|
function getCreateAddress(opts) {
|
|
3612
|
-
const
|
|
3914
|
+
const from14 = toBytes(getAddress(opts.from));
|
|
3613
3915
|
let nonce = toBytes(opts.nonce);
|
|
3614
3916
|
if (nonce[0] === 0)
|
|
3615
3917
|
nonce = new Uint8Array([]);
|
|
3616
|
-
return getAddress(`0x${keccak256(toRlp([
|
|
3918
|
+
return getAddress(`0x${keccak256(toRlp([from14, nonce], "bytes")).slice(26)}`);
|
|
3617
3919
|
}
|
|
3618
3920
|
function getCreate2Address(opts) {
|
|
3619
|
-
const
|
|
3921
|
+
const from14 = toBytes(getAddress(opts.from));
|
|
3620
3922
|
const salt = pad(isBytes(opts.salt) ? opts.salt : toBytes(opts.salt), {
|
|
3621
3923
|
size: 32
|
|
3622
3924
|
});
|
|
@@ -3628,10 +3930,316 @@ function getCreate2Address(opts) {
|
|
|
3628
3930
|
}
|
|
3629
3931
|
return keccak256(opts.bytecode, "bytes");
|
|
3630
3932
|
})();
|
|
3631
|
-
return getAddress(slice(keccak256(concat([toBytes("0xff"),
|
|
3933
|
+
return getAddress(slice(keccak256(concat([toBytes("0xff"), from14, salt, bytecodeHash])), 12));
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/transaction/assertTransaction.js
|
|
3937
|
+
function assertTransactionEIP7702(transaction) {
|
|
3938
|
+
const { authorizationList } = transaction;
|
|
3939
|
+
if (authorizationList) {
|
|
3940
|
+
for (const authorization of authorizationList) {
|
|
3941
|
+
const { chainId } = authorization;
|
|
3942
|
+
const address = authorization.address;
|
|
3943
|
+
if (!isAddress(address))
|
|
3944
|
+
throw new InvalidAddressError({ address });
|
|
3945
|
+
if (chainId < 0)
|
|
3946
|
+
throw new InvalidChainIdError({ chainId });
|
|
3947
|
+
}
|
|
3948
|
+
}
|
|
3949
|
+
assertTransactionEIP1559(transaction);
|
|
3950
|
+
}
|
|
3951
|
+
function assertTransactionEIP4844(transaction) {
|
|
3952
|
+
const { blobVersionedHashes } = transaction;
|
|
3953
|
+
if (blobVersionedHashes) {
|
|
3954
|
+
if (blobVersionedHashes.length === 0)
|
|
3955
|
+
throw new EmptyBlobError();
|
|
3956
|
+
for (const hash2 of blobVersionedHashes) {
|
|
3957
|
+
const size_ = size(hash2);
|
|
3958
|
+
const version = hexToNumber(slice(hash2, 0, 1));
|
|
3959
|
+
if (size_ !== 32)
|
|
3960
|
+
throw new InvalidVersionedHashSizeError({ hash: hash2, size: size_ });
|
|
3961
|
+
if (version !== versionedHashVersionKzg)
|
|
3962
|
+
throw new InvalidVersionedHashVersionError({
|
|
3963
|
+
hash: hash2,
|
|
3964
|
+
version
|
|
3965
|
+
});
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
assertTransactionEIP1559(transaction);
|
|
3969
|
+
}
|
|
3970
|
+
function assertTransactionEIP1559(transaction) {
|
|
3971
|
+
const { chainId, maxPriorityFeePerGas, maxFeePerGas, to } = transaction;
|
|
3972
|
+
if (chainId <= 0)
|
|
3973
|
+
throw new InvalidChainIdError({ chainId });
|
|
3974
|
+
if (to && !isAddress(to))
|
|
3975
|
+
throw new InvalidAddressError({ address: to });
|
|
3976
|
+
if (maxFeePerGas && maxFeePerGas > maxUint256)
|
|
3977
|
+
throw new FeeCapTooHighError({ maxFeePerGas });
|
|
3978
|
+
if (maxPriorityFeePerGas && maxFeePerGas && maxPriorityFeePerGas > maxFeePerGas)
|
|
3979
|
+
throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
|
3980
|
+
}
|
|
3981
|
+
function assertTransactionEIP2930(transaction) {
|
|
3982
|
+
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to } = transaction;
|
|
3983
|
+
if (chainId <= 0)
|
|
3984
|
+
throw new InvalidChainIdError({ chainId });
|
|
3985
|
+
if (to && !isAddress(to))
|
|
3986
|
+
throw new InvalidAddressError({ address: to });
|
|
3987
|
+
if (maxPriorityFeePerGas || maxFeePerGas)
|
|
3988
|
+
throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");
|
|
3989
|
+
if (gasPrice && gasPrice > maxUint256)
|
|
3990
|
+
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
|
3991
|
+
}
|
|
3992
|
+
function assertTransactionLegacy(transaction) {
|
|
3993
|
+
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to } = transaction;
|
|
3994
|
+
if (to && !isAddress(to))
|
|
3995
|
+
throw new InvalidAddressError({ address: to });
|
|
3996
|
+
if (typeof chainId !== "undefined" && chainId <= 0)
|
|
3997
|
+
throw new InvalidChainIdError({ chainId });
|
|
3998
|
+
if (maxPriorityFeePerGas || maxFeePerGas)
|
|
3999
|
+
throw new BaseError("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");
|
|
4000
|
+
if (gasPrice && gasPrice > maxUint256)
|
|
4001
|
+
throw new FeeCapTooHighError({ maxFeePerGas: gasPrice });
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/transaction/serializeAccessList.js
|
|
4005
|
+
function serializeAccessList(accessList) {
|
|
4006
|
+
if (!accessList || accessList.length === 0)
|
|
4007
|
+
return [];
|
|
4008
|
+
const serializedAccessList = [];
|
|
4009
|
+
for (let i = 0; i < accessList.length; i++) {
|
|
4010
|
+
const { address, storageKeys } = accessList[i];
|
|
4011
|
+
for (let j = 0; j < storageKeys.length; j++) {
|
|
4012
|
+
if (storageKeys[j].length - 2 !== 64) {
|
|
4013
|
+
throw new InvalidStorageKeySizeError({ storageKey: storageKeys[j] });
|
|
4014
|
+
}
|
|
4015
|
+
}
|
|
4016
|
+
if (!isAddress(address, { strict: false })) {
|
|
4017
|
+
throw new InvalidAddressError({ address });
|
|
4018
|
+
}
|
|
4019
|
+
serializedAccessList.push([address, storageKeys]);
|
|
4020
|
+
}
|
|
4021
|
+
return serializedAccessList;
|
|
4022
|
+
}
|
|
4023
|
+
|
|
4024
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/transaction/serializeTransaction.js
|
|
4025
|
+
function serializeTransaction(transaction, signature) {
|
|
4026
|
+
const type = getTransactionType(transaction);
|
|
4027
|
+
if (type === "eip1559")
|
|
4028
|
+
return serializeTransactionEIP1559(transaction, signature);
|
|
4029
|
+
if (type === "eip2930")
|
|
4030
|
+
return serializeTransactionEIP2930(transaction, signature);
|
|
4031
|
+
if (type === "eip4844")
|
|
4032
|
+
return serializeTransactionEIP4844(transaction, signature);
|
|
4033
|
+
if (type === "eip7702")
|
|
4034
|
+
return serializeTransactionEIP7702(transaction, signature);
|
|
4035
|
+
return serializeTransactionLegacy(transaction, signature);
|
|
4036
|
+
}
|
|
4037
|
+
function serializeTransactionEIP7702(transaction, signature) {
|
|
4038
|
+
const { authorizationList, chainId, gas, nonce, to, value, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
|
|
4039
|
+
assertTransactionEIP7702(transaction);
|
|
4040
|
+
const serializedAccessList = serializeAccessList(accessList);
|
|
4041
|
+
const serializedAuthorizationList = serializeAuthorizationList(authorizationList);
|
|
4042
|
+
return concatHex([
|
|
4043
|
+
"0x04",
|
|
4044
|
+
toRlp([
|
|
4045
|
+
numberToHex(chainId),
|
|
4046
|
+
nonce ? numberToHex(nonce) : "0x",
|
|
4047
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : "0x",
|
|
4048
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : "0x",
|
|
4049
|
+
gas ? numberToHex(gas) : "0x",
|
|
4050
|
+
to ?? "0x",
|
|
4051
|
+
value ? numberToHex(value) : "0x",
|
|
4052
|
+
data ?? "0x",
|
|
4053
|
+
serializedAccessList,
|
|
4054
|
+
serializedAuthorizationList,
|
|
4055
|
+
...toYParitySignatureArray(transaction, signature)
|
|
4056
|
+
])
|
|
4057
|
+
]);
|
|
4058
|
+
}
|
|
4059
|
+
function serializeTransactionEIP4844(transaction, signature) {
|
|
4060
|
+
const { chainId, gas, nonce, to, value, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
|
|
4061
|
+
assertTransactionEIP4844(transaction);
|
|
4062
|
+
let blobVersionedHashes = transaction.blobVersionedHashes;
|
|
4063
|
+
let sidecars = transaction.sidecars;
|
|
4064
|
+
if (transaction.blobs && (typeof blobVersionedHashes === "undefined" || typeof sidecars === "undefined")) {
|
|
4065
|
+
const blobs2 = typeof transaction.blobs[0] === "string" ? transaction.blobs : transaction.blobs.map((x) => bytesToHex(x));
|
|
4066
|
+
const kzg = transaction.kzg;
|
|
4067
|
+
const commitments2 = blobsToCommitments({
|
|
4068
|
+
blobs: blobs2,
|
|
4069
|
+
kzg
|
|
4070
|
+
});
|
|
4071
|
+
if (typeof blobVersionedHashes === "undefined")
|
|
4072
|
+
blobVersionedHashes = commitmentsToVersionedHashes({
|
|
4073
|
+
commitments: commitments2
|
|
4074
|
+
});
|
|
4075
|
+
if (typeof sidecars === "undefined") {
|
|
4076
|
+
const proofs2 = blobsToProofs({ blobs: blobs2, commitments: commitments2, kzg });
|
|
4077
|
+
sidecars = toBlobSidecars({ blobs: blobs2, commitments: commitments2, proofs: proofs2 });
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
const serializedAccessList = serializeAccessList(accessList);
|
|
4081
|
+
const serializedTransaction = [
|
|
4082
|
+
numberToHex(chainId),
|
|
4083
|
+
nonce ? numberToHex(nonce) : "0x",
|
|
4084
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : "0x",
|
|
4085
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : "0x",
|
|
4086
|
+
gas ? numberToHex(gas) : "0x",
|
|
4087
|
+
to ?? "0x",
|
|
4088
|
+
value ? numberToHex(value) : "0x",
|
|
4089
|
+
data ?? "0x",
|
|
4090
|
+
serializedAccessList,
|
|
4091
|
+
maxFeePerBlobGas ? numberToHex(maxFeePerBlobGas) : "0x",
|
|
4092
|
+
blobVersionedHashes ?? [],
|
|
4093
|
+
...toYParitySignatureArray(transaction, signature)
|
|
4094
|
+
];
|
|
4095
|
+
const blobs = [];
|
|
4096
|
+
const commitments = [];
|
|
4097
|
+
const proofs = [];
|
|
4098
|
+
if (sidecars)
|
|
4099
|
+
for (let i = 0; i < sidecars.length; i++) {
|
|
4100
|
+
const { blob, commitment, proof } = sidecars[i];
|
|
4101
|
+
blobs.push(blob);
|
|
4102
|
+
commitments.push(commitment);
|
|
4103
|
+
proofs.push(proof);
|
|
4104
|
+
}
|
|
4105
|
+
return concatHex([
|
|
4106
|
+
"0x03",
|
|
4107
|
+
sidecars ? (
|
|
4108
|
+
// If sidecars are enabled, envelope turns into a "wrapper":
|
|
4109
|
+
toRlp([serializedTransaction, blobs, commitments, proofs])
|
|
4110
|
+
) : (
|
|
4111
|
+
// If sidecars are disabled, standard envelope is used:
|
|
4112
|
+
toRlp(serializedTransaction)
|
|
4113
|
+
)
|
|
4114
|
+
]);
|
|
4115
|
+
}
|
|
4116
|
+
function serializeTransactionEIP1559(transaction, signature) {
|
|
4117
|
+
const { chainId, gas, nonce, to, value, maxFeePerGas, maxPriorityFeePerGas, accessList, data } = transaction;
|
|
4118
|
+
assertTransactionEIP1559(transaction);
|
|
4119
|
+
const serializedAccessList = serializeAccessList(accessList);
|
|
4120
|
+
const serializedTransaction = [
|
|
4121
|
+
numberToHex(chainId),
|
|
4122
|
+
nonce ? numberToHex(nonce) : "0x",
|
|
4123
|
+
maxPriorityFeePerGas ? numberToHex(maxPriorityFeePerGas) : "0x",
|
|
4124
|
+
maxFeePerGas ? numberToHex(maxFeePerGas) : "0x",
|
|
4125
|
+
gas ? numberToHex(gas) : "0x",
|
|
4126
|
+
to ?? "0x",
|
|
4127
|
+
value ? numberToHex(value) : "0x",
|
|
4128
|
+
data ?? "0x",
|
|
4129
|
+
serializedAccessList,
|
|
4130
|
+
...toYParitySignatureArray(transaction, signature)
|
|
4131
|
+
];
|
|
4132
|
+
return concatHex([
|
|
4133
|
+
"0x02",
|
|
4134
|
+
toRlp(serializedTransaction)
|
|
4135
|
+
]);
|
|
4136
|
+
}
|
|
4137
|
+
function serializeTransactionEIP2930(transaction, signature) {
|
|
4138
|
+
const { chainId, gas, data, nonce, to, value, accessList, gasPrice } = transaction;
|
|
4139
|
+
assertTransactionEIP2930(transaction);
|
|
4140
|
+
const serializedAccessList = serializeAccessList(accessList);
|
|
4141
|
+
const serializedTransaction = [
|
|
4142
|
+
numberToHex(chainId),
|
|
4143
|
+
nonce ? numberToHex(nonce) : "0x",
|
|
4144
|
+
gasPrice ? numberToHex(gasPrice) : "0x",
|
|
4145
|
+
gas ? numberToHex(gas) : "0x",
|
|
4146
|
+
to ?? "0x",
|
|
4147
|
+
value ? numberToHex(value) : "0x",
|
|
4148
|
+
data ?? "0x",
|
|
4149
|
+
serializedAccessList,
|
|
4150
|
+
...toYParitySignatureArray(transaction, signature)
|
|
4151
|
+
];
|
|
4152
|
+
return concatHex([
|
|
4153
|
+
"0x01",
|
|
4154
|
+
toRlp(serializedTransaction)
|
|
4155
|
+
]);
|
|
4156
|
+
}
|
|
4157
|
+
function serializeTransactionLegacy(transaction, signature) {
|
|
4158
|
+
const { chainId = 0, gas, data, nonce, to, value, gasPrice } = transaction;
|
|
4159
|
+
assertTransactionLegacy(transaction);
|
|
4160
|
+
let serializedTransaction = [
|
|
4161
|
+
nonce ? numberToHex(nonce) : "0x",
|
|
4162
|
+
gasPrice ? numberToHex(gasPrice) : "0x",
|
|
4163
|
+
gas ? numberToHex(gas) : "0x",
|
|
4164
|
+
to ?? "0x",
|
|
4165
|
+
value ? numberToHex(value) : "0x",
|
|
4166
|
+
data ?? "0x"
|
|
4167
|
+
];
|
|
4168
|
+
if (signature) {
|
|
4169
|
+
const v = (() => {
|
|
4170
|
+
if (signature.v >= 35n) {
|
|
4171
|
+
const inferredChainId = (signature.v - 35n) / 2n;
|
|
4172
|
+
if (inferredChainId > 0)
|
|
4173
|
+
return signature.v;
|
|
4174
|
+
return 27n + (signature.v === 35n ? 0n : 1n);
|
|
4175
|
+
}
|
|
4176
|
+
if (chainId > 0)
|
|
4177
|
+
return BigInt(chainId * 2) + BigInt(35n + signature.v - 27n);
|
|
4178
|
+
const v2 = 27n + (signature.v === 27n ? 0n : 1n);
|
|
4179
|
+
if (signature.v !== v2)
|
|
4180
|
+
throw new InvalidLegacyVError({ v: signature.v });
|
|
4181
|
+
return v2;
|
|
4182
|
+
})();
|
|
4183
|
+
const r = trim(signature.r);
|
|
4184
|
+
const s = trim(signature.s);
|
|
4185
|
+
serializedTransaction = [
|
|
4186
|
+
...serializedTransaction,
|
|
4187
|
+
numberToHex(v),
|
|
4188
|
+
r === "0x00" ? "0x" : r,
|
|
4189
|
+
s === "0x00" ? "0x" : s
|
|
4190
|
+
];
|
|
4191
|
+
} else if (chainId > 0) {
|
|
4192
|
+
serializedTransaction = [
|
|
4193
|
+
...serializedTransaction,
|
|
4194
|
+
numberToHex(chainId),
|
|
4195
|
+
"0x",
|
|
4196
|
+
"0x"
|
|
4197
|
+
];
|
|
4198
|
+
}
|
|
4199
|
+
return toRlp(serializedTransaction);
|
|
4200
|
+
}
|
|
4201
|
+
function toYParitySignatureArray(transaction, signature_) {
|
|
4202
|
+
const signature = signature_ ?? transaction;
|
|
4203
|
+
const { v, yParity } = signature;
|
|
4204
|
+
if (typeof signature.r === "undefined")
|
|
4205
|
+
return [];
|
|
4206
|
+
if (typeof signature.s === "undefined")
|
|
4207
|
+
return [];
|
|
4208
|
+
if (typeof v === "undefined" && typeof yParity === "undefined")
|
|
4209
|
+
return [];
|
|
4210
|
+
const r = trim(signature.r);
|
|
4211
|
+
const s = trim(signature.s);
|
|
4212
|
+
const yParity_ = (() => {
|
|
4213
|
+
if (typeof yParity === "number")
|
|
4214
|
+
return yParity ? numberToHex(1) : "0x";
|
|
4215
|
+
if (v === 0n)
|
|
4216
|
+
return "0x";
|
|
4217
|
+
if (v === 1n)
|
|
4218
|
+
return numberToHex(1);
|
|
4219
|
+
return v === 27n ? "0x" : numberToHex(1);
|
|
4220
|
+
})();
|
|
4221
|
+
return [yParity_, r === "0x00" ? "0x" : r, s === "0x00" ? "0x" : s];
|
|
4222
|
+
}
|
|
4223
|
+
|
|
4224
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/authorization/serializeAuthorizationList.js
|
|
4225
|
+
function serializeAuthorizationList(authorizationList) {
|
|
4226
|
+
if (!authorizationList || authorizationList.length === 0)
|
|
4227
|
+
return [];
|
|
4228
|
+
const serializedAuthorizationList = [];
|
|
4229
|
+
for (const authorization of authorizationList) {
|
|
4230
|
+
const { chainId, nonce, ...signature } = authorization;
|
|
4231
|
+
const contractAddress = authorization.address;
|
|
4232
|
+
serializedAuthorizationList.push([
|
|
4233
|
+
chainId ? toHex(chainId) : "0x",
|
|
4234
|
+
contractAddress,
|
|
4235
|
+
nonce ? toHex(nonce) : "0x",
|
|
4236
|
+
...toYParitySignatureArray({}, signature)
|
|
4237
|
+
]);
|
|
4238
|
+
}
|
|
4239
|
+
return serializedAuthorizationList;
|
|
3632
4240
|
}
|
|
3633
4241
|
|
|
3634
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4242
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js
|
|
3635
4243
|
async function verifyAuthorization({ address, authorization, signature }) {
|
|
3636
4244
|
return isAddressEqual(getAddress(address), await recoverAuthorizationAddress({
|
|
3637
4245
|
authorization,
|
|
@@ -3639,7 +4247,7 @@ async function verifyAuthorization({ address, authorization, signature }) {
|
|
|
3639
4247
|
}));
|
|
3640
4248
|
}
|
|
3641
4249
|
|
|
3642
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4250
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/promise/withDedupe.js
|
|
3643
4251
|
var promiseCache2 = /* @__PURE__ */ new LruMap(8192);
|
|
3644
4252
|
function withDedupe(fn, { enabled = true, id }) {
|
|
3645
4253
|
if (!enabled || !id)
|
|
@@ -3651,7 +4259,7 @@ function withDedupe(fn, { enabled = true, id }) {
|
|
|
3651
4259
|
return promise;
|
|
3652
4260
|
}
|
|
3653
4261
|
|
|
3654
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4262
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/buildRequest.js
|
|
3655
4263
|
function buildRequest(request, options = {}) {
|
|
3656
4264
|
return async (args, overrideOptions = {}) => {
|
|
3657
4265
|
const { dedupe = false, methods, retryDelay = 150, retryCount = 3, signal, uid: uid2 } = {
|
|
@@ -3836,7 +4444,7 @@ function hashString(str, seed = 0) {
|
|
|
3836
4444
|
return (4294967296 * (2097151 & h2) + (h1 >>> 0)).toString(36);
|
|
3837
4445
|
}
|
|
3838
4446
|
|
|
3839
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4447
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ccipTunnel.js
|
|
3840
4448
|
function ccipReadTunnel({ batchGateways, ccipRequest: ccipRequest2 = ccipRequest }) {
|
|
3841
4449
|
return {
|
|
3842
4450
|
async request({ data, sender, urls }) {
|
|
@@ -3889,7 +4497,7 @@ function ccipReadTunnel({ batchGateways, ccipRequest: ccipRequest2 = ccipRequest
|
|
|
3889
4497
|
};
|
|
3890
4498
|
}
|
|
3891
4499
|
|
|
3892
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4500
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/chain/defineChain.js
|
|
3893
4501
|
function defineChain(chain) {
|
|
3894
4502
|
const chainInstance = {
|
|
3895
4503
|
formatters: void 0,
|
|
@@ -3912,12 +4520,12 @@ function extendSchema() {
|
|
|
3912
4520
|
return {};
|
|
3913
4521
|
}
|
|
3914
4522
|
|
|
3915
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4523
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/chain/extractChain.js
|
|
3916
4524
|
function extractChain({ chains, id }) {
|
|
3917
4525
|
return chains.find((chain) => chain.id === id);
|
|
3918
4526
|
}
|
|
3919
4527
|
|
|
3920
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4528
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/encoding/fromRlp.js
|
|
3921
4529
|
var rlpDepthLimit = 1024;
|
|
3922
4530
|
function fromRlp(value, to = "hex") {
|
|
3923
4531
|
const bytes = (() => {
|
|
@@ -3982,21 +4590,213 @@ function readList(cursor, length, to, recursiveDepth) {
|
|
|
3982
4590
|
return value;
|
|
3983
4591
|
}
|
|
3984
4592
|
|
|
3985
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4593
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/isHash.js
|
|
3986
4594
|
function isHash(hash2) {
|
|
3987
4595
|
return isHex(hash2) && size(hash2) === 32;
|
|
3988
4596
|
}
|
|
3989
4597
|
|
|
3990
|
-
// node_modules/.pnpm
|
|
3991
|
-
|
|
4598
|
+
// node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/legacy.js
|
|
4599
|
+
var Rho160 = /* @__PURE__ */ Uint8Array.from([
|
|
4600
|
+
7,
|
|
4601
|
+
4,
|
|
4602
|
+
13,
|
|
4603
|
+
1,
|
|
4604
|
+
10,
|
|
4605
|
+
6,
|
|
4606
|
+
15,
|
|
4607
|
+
3,
|
|
4608
|
+
12,
|
|
4609
|
+
0,
|
|
4610
|
+
9,
|
|
4611
|
+
5,
|
|
4612
|
+
2,
|
|
4613
|
+
14,
|
|
4614
|
+
11,
|
|
4615
|
+
8
|
|
4616
|
+
]);
|
|
4617
|
+
var Id160 = /* @__PURE__ */ (() => Uint8Array.from(new Array(16).fill(0).map((_, i) => i)))();
|
|
4618
|
+
var Pi160 = /* @__PURE__ */ (() => Id160.map((i) => (9 * i + 5) % 16))();
|
|
4619
|
+
var idxLR = /* @__PURE__ */ (() => {
|
|
4620
|
+
const L = [Id160];
|
|
4621
|
+
const R = [Pi160];
|
|
4622
|
+
const res = [L, R];
|
|
4623
|
+
for (let i = 0; i < 4; i++)
|
|
4624
|
+
for (let j of res)
|
|
4625
|
+
j.push(j[i].map((k) => Rho160[k]));
|
|
4626
|
+
return res;
|
|
4627
|
+
})();
|
|
4628
|
+
var idxL = /* @__PURE__ */ (() => idxLR[0])();
|
|
4629
|
+
var idxR = /* @__PURE__ */ (() => idxLR[1])();
|
|
4630
|
+
var shifts160 = /* @__PURE__ */ [
|
|
4631
|
+
[11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8],
|
|
4632
|
+
[12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7],
|
|
4633
|
+
[13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9],
|
|
4634
|
+
[14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6],
|
|
4635
|
+
[15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5]
|
|
4636
|
+
].map((i) => Uint8Array.from(i));
|
|
4637
|
+
var shiftsL160 = /* @__PURE__ */ idxL.map((idx, i) => idx.map((j) => shifts160[i][j]));
|
|
4638
|
+
var shiftsR160 = /* @__PURE__ */ idxR.map((idx, i) => idx.map((j) => shifts160[i][j]));
|
|
4639
|
+
var Kl160 = /* @__PURE__ */ Uint32Array.from([
|
|
4640
|
+
0,
|
|
4641
|
+
1518500249,
|
|
4642
|
+
1859775393,
|
|
4643
|
+
2400959708,
|
|
4644
|
+
2840853838
|
|
4645
|
+
]);
|
|
4646
|
+
var Kr160 = /* @__PURE__ */ Uint32Array.from([
|
|
4647
|
+
1352829926,
|
|
4648
|
+
1548603684,
|
|
4649
|
+
1836072691,
|
|
4650
|
+
2053994217,
|
|
4651
|
+
0
|
|
4652
|
+
]);
|
|
4653
|
+
function ripemd_f(group, x, y, z) {
|
|
4654
|
+
if (group === 0)
|
|
4655
|
+
return x ^ y ^ z;
|
|
4656
|
+
if (group === 1)
|
|
4657
|
+
return x & y | ~x & z;
|
|
4658
|
+
if (group === 2)
|
|
4659
|
+
return (x | ~y) ^ z;
|
|
4660
|
+
if (group === 3)
|
|
4661
|
+
return x & z | y & ~z;
|
|
4662
|
+
return x ^ (y | ~z);
|
|
4663
|
+
}
|
|
4664
|
+
var BUF_160 = /* @__PURE__ */ new Uint32Array(16);
|
|
4665
|
+
var RIPEMD160 = class extends HashMD {
|
|
4666
|
+
constructor() {
|
|
4667
|
+
super(64, 20, 8, true);
|
|
4668
|
+
this.h0 = 1732584193 | 0;
|
|
4669
|
+
this.h1 = 4023233417 | 0;
|
|
4670
|
+
this.h2 = 2562383102 | 0;
|
|
4671
|
+
this.h3 = 271733878 | 0;
|
|
4672
|
+
this.h4 = 3285377520 | 0;
|
|
4673
|
+
}
|
|
4674
|
+
get() {
|
|
4675
|
+
const { h0, h1, h2, h3, h4 } = this;
|
|
4676
|
+
return [h0, h1, h2, h3, h4];
|
|
4677
|
+
}
|
|
4678
|
+
set(h0, h1, h2, h3, h4) {
|
|
4679
|
+
this.h0 = h0 | 0;
|
|
4680
|
+
this.h1 = h1 | 0;
|
|
4681
|
+
this.h2 = h2 | 0;
|
|
4682
|
+
this.h3 = h3 | 0;
|
|
4683
|
+
this.h4 = h4 | 0;
|
|
4684
|
+
}
|
|
4685
|
+
process(view, offset) {
|
|
4686
|
+
for (let i = 0; i < 16; i++, offset += 4)
|
|
4687
|
+
BUF_160[i] = view.getUint32(offset, true);
|
|
4688
|
+
let al = this.h0 | 0, ar = al, bl = this.h1 | 0, br = bl, cl = this.h2 | 0, cr = cl, dl = this.h3 | 0, dr = dl, el = this.h4 | 0, er = el;
|
|
4689
|
+
for (let group = 0; group < 5; group++) {
|
|
4690
|
+
const rGroup = 4 - group;
|
|
4691
|
+
const hbl = Kl160[group], hbr = Kr160[group];
|
|
4692
|
+
const rl = idxL[group], rr = idxR[group];
|
|
4693
|
+
const sl = shiftsL160[group], sr = shiftsR160[group];
|
|
4694
|
+
for (let i = 0; i < 16; i++) {
|
|
4695
|
+
const tl = rotl(al + ripemd_f(group, bl, cl, dl) + BUF_160[rl[i]] + hbl, sl[i]) + el | 0;
|
|
4696
|
+
al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl;
|
|
4697
|
+
}
|
|
4698
|
+
for (let i = 0; i < 16; i++) {
|
|
4699
|
+
const tr = rotl(ar + ripemd_f(rGroup, br, cr, dr) + BUF_160[rr[i]] + hbr, sr[i]) + er | 0;
|
|
4700
|
+
ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr;
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4703
|
+
this.set(this.h1 + cl + dr | 0, this.h2 + dl + er | 0, this.h3 + el + ar | 0, this.h4 + al + br | 0, this.h0 + bl + cr | 0);
|
|
4704
|
+
}
|
|
4705
|
+
roundClean() {
|
|
4706
|
+
clean(BUF_160);
|
|
4707
|
+
}
|
|
4708
|
+
destroy() {
|
|
4709
|
+
this.destroyed = true;
|
|
4710
|
+
clean(this.buffer);
|
|
4711
|
+
this.set(0, 0, 0, 0, 0);
|
|
4712
|
+
}
|
|
4713
|
+
};
|
|
4714
|
+
var ripemd160 = /* @__PURE__ */ createHasher(() => new RIPEMD160());
|
|
4715
|
+
|
|
4716
|
+
// node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/ripemd160.js
|
|
4717
|
+
var ripemd1602 = ripemd160;
|
|
4718
|
+
|
|
4719
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/hash/ripemd160.js
|
|
4720
|
+
function ripemd1603(value, to_) {
|
|
3992
4721
|
const to = to_ || "hex";
|
|
3993
|
-
const bytes =
|
|
4722
|
+
const bytes = ripemd1602(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
3994
4723
|
if (to === "bytes")
|
|
3995
4724
|
return bytes;
|
|
3996
4725
|
return toHex(bytes);
|
|
3997
4726
|
}
|
|
3998
4727
|
|
|
3999
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4728
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/nonceManager.js
|
|
4729
|
+
function createNonceManager(parameters) {
|
|
4730
|
+
const { source } = parameters;
|
|
4731
|
+
const deltaMap = /* @__PURE__ */ new Map();
|
|
4732
|
+
const nonceMap = new LruMap(8192);
|
|
4733
|
+
const promiseMap = /* @__PURE__ */ new Map();
|
|
4734
|
+
const getKey = ({ address, chainId }) => `${address}.${chainId}`;
|
|
4735
|
+
const resetCache = (key) => {
|
|
4736
|
+
deltaMap.delete(key);
|
|
4737
|
+
promiseMap.delete(key);
|
|
4738
|
+
};
|
|
4739
|
+
return {
|
|
4740
|
+
async consume({ address, chainId, client }) {
|
|
4741
|
+
const key = getKey({ address, chainId });
|
|
4742
|
+
const promise = this.get({ address, chainId, client });
|
|
4743
|
+
this.increment({ address, chainId });
|
|
4744
|
+
const nonce = await promise;
|
|
4745
|
+
await source.set({ address, chainId }, nonce);
|
|
4746
|
+
nonceMap.set(key, nonce);
|
|
4747
|
+
return nonce;
|
|
4748
|
+
},
|
|
4749
|
+
async increment({ address, chainId }) {
|
|
4750
|
+
const key = getKey({ address, chainId });
|
|
4751
|
+
const delta = deltaMap.get(key) ?? 0;
|
|
4752
|
+
deltaMap.set(key, delta + 1);
|
|
4753
|
+
},
|
|
4754
|
+
async get({ address, chainId, client }) {
|
|
4755
|
+
const key = getKey({ address, chainId });
|
|
4756
|
+
let promise = promiseMap.get(key);
|
|
4757
|
+
if (!promise) {
|
|
4758
|
+
promise = (async () => {
|
|
4759
|
+
try {
|
|
4760
|
+
const nonce = await source.get({ address, chainId, client });
|
|
4761
|
+
const previousNonce = nonceMap.get(key) ?? 0;
|
|
4762
|
+
if (previousNonce > 0 && nonce <= previousNonce)
|
|
4763
|
+
return previousNonce + 1;
|
|
4764
|
+
nonceMap.delete(key);
|
|
4765
|
+
return nonce;
|
|
4766
|
+
} finally {
|
|
4767
|
+
resetCache(key);
|
|
4768
|
+
}
|
|
4769
|
+
})();
|
|
4770
|
+
promiseMap.set(key, promise);
|
|
4771
|
+
}
|
|
4772
|
+
const delta = deltaMap.get(key) ?? 0;
|
|
4773
|
+
return delta + await promise;
|
|
4774
|
+
},
|
|
4775
|
+
reset({ address, chainId }) {
|
|
4776
|
+
const key = getKey({ address, chainId });
|
|
4777
|
+
nonceMap.delete(key);
|
|
4778
|
+
resetCache(key);
|
|
4779
|
+
}
|
|
4780
|
+
};
|
|
4781
|
+
}
|
|
4782
|
+
function jsonRpc() {
|
|
4783
|
+
return {
|
|
4784
|
+
async get(parameters) {
|
|
4785
|
+
const { address, client } = parameters;
|
|
4786
|
+
return getTransactionCount(client, {
|
|
4787
|
+
address,
|
|
4788
|
+
blockTag: "pending"
|
|
4789
|
+
});
|
|
4790
|
+
},
|
|
4791
|
+
set() {
|
|
4792
|
+
}
|
|
4793
|
+
};
|
|
4794
|
+
}
|
|
4795
|
+
var nonceManager = /* @__PURE__ */ createNonceManager({
|
|
4796
|
+
source: jsonRpc()
|
|
4797
|
+
});
|
|
4798
|
+
|
|
4799
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/promise/withTimeout.js
|
|
4000
4800
|
function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, signal }) {
|
|
4001
4801
|
return new Promise((resolve, reject) => {
|
|
4002
4802
|
;
|
|
@@ -4027,7 +4827,7 @@ function withTimeout(fn, { errorInstance = new Error("timed out"), timeout, sign
|
|
|
4027
4827
|
});
|
|
4028
4828
|
}
|
|
4029
4829
|
|
|
4030
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4830
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/rpc/id.js
|
|
4031
4831
|
function createIdStore() {
|
|
4032
4832
|
return {
|
|
4033
4833
|
current: 0,
|
|
@@ -4041,7 +4841,7 @@ function createIdStore() {
|
|
|
4041
4841
|
}
|
|
4042
4842
|
var idCache = /* @__PURE__ */ createIdStore();
|
|
4043
4843
|
|
|
4044
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
4844
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/rpc/http.js
|
|
4045
4845
|
var defaultMaxResponseBodySize = 10485760;
|
|
4046
4846
|
function getHttpRpcClient(url_, options = {}) {
|
|
4047
4847
|
const { url, headers: headers_url } = parseUrl(url_);
|
|
@@ -4201,7 +5001,7 @@ function parseUrl(url_) {
|
|
|
4201
5001
|
}
|
|
4202
5002
|
}
|
|
4203
5003
|
|
|
4204
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
5004
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/rpc/socket.js
|
|
4205
5005
|
var socketClientCache = /* @__PURE__ */ new Map();
|
|
4206
5006
|
async function getSocketRpcClient(parameters) {
|
|
4207
5007
|
const { getSocket: getSocket2, keepAlive = true, key = "socket", reconnect = true, url } = parameters;
|
|
@@ -4366,12 +5166,12 @@ async function getSocketRpcClient(parameters) {
|
|
|
4366
5166
|
return socketClient_;
|
|
4367
5167
|
}
|
|
4368
5168
|
|
|
4369
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
5169
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/rpc/webSocket.js
|
|
4370
5170
|
async function getWebSocketRpcClient(url, options = {}) {
|
|
4371
5171
|
const { keepAlive, reconnect } = options;
|
|
4372
5172
|
return getSocketRpcClient({
|
|
4373
5173
|
async getSocket({ onClose, onError, onOpen, onResponse }) {
|
|
4374
|
-
const WebSocket = await import("./
|
|
5174
|
+
const WebSocket = await import("./isows-native-Q2UDIVPT.js").then((module) => module.WebSocket);
|
|
4375
5175
|
const socket = new WebSocket(url);
|
|
4376
5176
|
function onClose_() {
|
|
4377
5177
|
socket.removeEventListener("close", onClose_);
|
|
@@ -4443,7 +5243,7 @@ async function getWebSocketRpcClient(url, options = {}) {
|
|
|
4443
5243
|
});
|
|
4444
5244
|
}
|
|
4445
5245
|
|
|
4446
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
5246
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/rpc/compat.js
|
|
4447
5247
|
async function getSocket(url) {
|
|
4448
5248
|
const client = await getWebSocketRpcClient(url);
|
|
4449
5249
|
return Object.assign(client.socket, {
|
|
@@ -4452,21 +5252,275 @@ async function getSocket(url) {
|
|
|
4452
5252
|
});
|
|
4453
5253
|
}
|
|
4454
5254
|
|
|
4455
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
5255
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/strings.js
|
|
5256
|
+
var presignMessagePrefix = "Ethereum Signed Message:\n";
|
|
5257
|
+
|
|
5258
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/toPrefixedMessage.js
|
|
5259
|
+
function toPrefixedMessage(message_) {
|
|
5260
|
+
const message = (() => {
|
|
5261
|
+
if (typeof message_ === "string")
|
|
5262
|
+
return stringToHex(message_);
|
|
5263
|
+
if (typeof message_.raw === "string")
|
|
5264
|
+
return message_.raw;
|
|
5265
|
+
return bytesToHex(message_.raw);
|
|
5266
|
+
})();
|
|
5267
|
+
const prefix = stringToHex(`${presignMessagePrefix}${size(message)}`);
|
|
5268
|
+
return concat([prefix, message]);
|
|
5269
|
+
}
|
|
5270
|
+
|
|
5271
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/hashMessage.js
|
|
5272
|
+
function hashMessage(message, to_) {
|
|
5273
|
+
return keccak256(toPrefixedMessage(message), to_);
|
|
5274
|
+
}
|
|
5275
|
+
|
|
5276
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/typedData.js
|
|
5277
|
+
var InvalidDomainError = class extends BaseError {
|
|
5278
|
+
constructor({ domain }) {
|
|
5279
|
+
super(`Invalid domain "${stringify(domain)}".`, {
|
|
5280
|
+
metaMessages: ["Must be a valid EIP-712 domain."]
|
|
5281
|
+
});
|
|
5282
|
+
}
|
|
5283
|
+
};
|
|
5284
|
+
var InvalidPrimaryTypeError = class extends BaseError {
|
|
5285
|
+
constructor({ primaryType, types }) {
|
|
5286
|
+
super(`Invalid primary type \`${primaryType}\` must be one of \`${JSON.stringify(Object.keys(types))}\`.`, {
|
|
5287
|
+
docsPath: "/api/glossary/Errors#typeddatainvalidprimarytypeerror",
|
|
5288
|
+
metaMessages: ["Check that the primary type is a key in `types`."]
|
|
5289
|
+
});
|
|
5290
|
+
}
|
|
5291
|
+
};
|
|
5292
|
+
var InvalidStructTypeError = class extends BaseError {
|
|
5293
|
+
constructor({ type }) {
|
|
5294
|
+
super(`Struct type "${type}" is invalid.`, {
|
|
5295
|
+
metaMessages: ["Struct type must not be a Solidity type."],
|
|
5296
|
+
name: "InvalidStructTypeError"
|
|
5297
|
+
});
|
|
5298
|
+
}
|
|
5299
|
+
};
|
|
5300
|
+
|
|
5301
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/typedData.js
|
|
5302
|
+
function serializeTypedData(parameters) {
|
|
5303
|
+
const { domain: domain_, message: message_, primaryType, types } = parameters;
|
|
5304
|
+
const normalizeData = (struct, data_) => {
|
|
5305
|
+
const data = { ...data_ };
|
|
5306
|
+
for (const param of struct) {
|
|
5307
|
+
const { name, type } = param;
|
|
5308
|
+
if (type === "address")
|
|
5309
|
+
data[name] = data[name].toLowerCase();
|
|
5310
|
+
}
|
|
5311
|
+
return data;
|
|
5312
|
+
};
|
|
5313
|
+
const domain = (() => {
|
|
5314
|
+
if (!types.EIP712Domain)
|
|
5315
|
+
return {};
|
|
5316
|
+
if (!domain_)
|
|
5317
|
+
return {};
|
|
5318
|
+
return normalizeData(types.EIP712Domain, domain_);
|
|
5319
|
+
})();
|
|
5320
|
+
const message = (() => {
|
|
5321
|
+
if (primaryType === "EIP712Domain")
|
|
5322
|
+
return void 0;
|
|
5323
|
+
return normalizeData(types[primaryType], message_);
|
|
5324
|
+
})();
|
|
5325
|
+
return stringify({ domain, message, primaryType, types });
|
|
5326
|
+
}
|
|
5327
|
+
function validateTypedData(parameters) {
|
|
5328
|
+
const { domain, message, primaryType, types } = parameters;
|
|
5329
|
+
const validateData = (struct, data) => {
|
|
5330
|
+
for (const param of struct) {
|
|
5331
|
+
const { name, type } = param;
|
|
5332
|
+
const value = data[name];
|
|
5333
|
+
const integerMatch = type.match(integerRegex);
|
|
5334
|
+
if (integerMatch && (typeof value === "number" || typeof value === "bigint")) {
|
|
5335
|
+
const [_type, base, size_] = integerMatch;
|
|
5336
|
+
numberToHex(value, {
|
|
5337
|
+
signed: base === "int",
|
|
5338
|
+
size: Number.parseInt(size_, 10) / 8
|
|
5339
|
+
});
|
|
5340
|
+
}
|
|
5341
|
+
if (type === "address" && typeof value === "string" && !isAddress(value))
|
|
5342
|
+
throw new InvalidAddressError({ address: value });
|
|
5343
|
+
const bytesMatch = type.match(bytesRegex);
|
|
5344
|
+
if (bytesMatch) {
|
|
5345
|
+
const [_type, size_] = bytesMatch;
|
|
5346
|
+
if (size_ && size(value) !== Number.parseInt(size_, 10))
|
|
5347
|
+
throw new BytesSizeMismatchError({
|
|
5348
|
+
expectedSize: Number.parseInt(size_, 10),
|
|
5349
|
+
givenSize: size(value)
|
|
5350
|
+
});
|
|
5351
|
+
}
|
|
5352
|
+
const struct2 = types[type];
|
|
5353
|
+
if (struct2) {
|
|
5354
|
+
validateReference(type);
|
|
5355
|
+
validateData(struct2, value);
|
|
5356
|
+
}
|
|
5357
|
+
}
|
|
5358
|
+
};
|
|
5359
|
+
if (types.EIP712Domain && domain) {
|
|
5360
|
+
if (typeof domain !== "object")
|
|
5361
|
+
throw new InvalidDomainError({ domain });
|
|
5362
|
+
validateData(types.EIP712Domain, domain);
|
|
5363
|
+
}
|
|
5364
|
+
if (primaryType !== "EIP712Domain") {
|
|
5365
|
+
if (types[primaryType])
|
|
5366
|
+
validateData(types[primaryType], message);
|
|
5367
|
+
else
|
|
5368
|
+
throw new InvalidPrimaryTypeError({ primaryType, types });
|
|
5369
|
+
}
|
|
5370
|
+
}
|
|
5371
|
+
function getTypesForEIP712Domain({ domain }) {
|
|
5372
|
+
return [
|
|
5373
|
+
typeof domain?.name === "string" && { name: "name", type: "string" },
|
|
5374
|
+
domain?.version && { name: "version", type: "string" },
|
|
5375
|
+
(typeof domain?.chainId === "number" || typeof domain?.chainId === "bigint") && {
|
|
5376
|
+
name: "chainId",
|
|
5377
|
+
type: "uint256"
|
|
5378
|
+
},
|
|
5379
|
+
domain?.verifyingContract && {
|
|
5380
|
+
name: "verifyingContract",
|
|
5381
|
+
type: "address"
|
|
5382
|
+
},
|
|
5383
|
+
domain?.salt && { name: "salt", type: "bytes32" }
|
|
5384
|
+
].filter(Boolean);
|
|
5385
|
+
}
|
|
5386
|
+
function domainSeparator({ domain }) {
|
|
5387
|
+
return hashDomain({
|
|
5388
|
+
domain,
|
|
5389
|
+
types: {
|
|
5390
|
+
EIP712Domain: getTypesForEIP712Domain({ domain })
|
|
5391
|
+
}
|
|
5392
|
+
});
|
|
5393
|
+
}
|
|
5394
|
+
function validateReference(type) {
|
|
5395
|
+
if (type === "address" || type === "bool" || type === "string" || type.startsWith("bytes") || type.startsWith("uint") || type.startsWith("int"))
|
|
5396
|
+
throw new InvalidStructTypeError({ type });
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/hashTypedData.js
|
|
5400
|
+
function hashTypedData(parameters) {
|
|
5401
|
+
const { domain = {}, message, primaryType } = parameters;
|
|
5402
|
+
const types = {
|
|
5403
|
+
EIP712Domain: getTypesForEIP712Domain({ domain }),
|
|
5404
|
+
...parameters.types
|
|
5405
|
+
};
|
|
5406
|
+
validateTypedData({
|
|
5407
|
+
domain,
|
|
5408
|
+
message,
|
|
5409
|
+
primaryType,
|
|
5410
|
+
types
|
|
5411
|
+
});
|
|
5412
|
+
const parts = ["0x1901"];
|
|
5413
|
+
if (domain)
|
|
5414
|
+
parts.push(hashDomain({
|
|
5415
|
+
domain,
|
|
5416
|
+
types
|
|
5417
|
+
}));
|
|
5418
|
+
if (primaryType !== "EIP712Domain")
|
|
5419
|
+
parts.push(hashStruct({
|
|
5420
|
+
data: message,
|
|
5421
|
+
primaryType,
|
|
5422
|
+
types
|
|
5423
|
+
}));
|
|
5424
|
+
return keccak256(concat(parts));
|
|
5425
|
+
}
|
|
5426
|
+
function hashDomain({ domain, types }) {
|
|
5427
|
+
return hashStruct({
|
|
5428
|
+
data: domain,
|
|
5429
|
+
primaryType: "EIP712Domain",
|
|
5430
|
+
types
|
|
5431
|
+
});
|
|
5432
|
+
}
|
|
5433
|
+
function hashStruct({ data, primaryType, types }) {
|
|
5434
|
+
const encoded = encodeData({
|
|
5435
|
+
data,
|
|
5436
|
+
primaryType,
|
|
5437
|
+
types
|
|
5438
|
+
});
|
|
5439
|
+
return keccak256(encoded);
|
|
5440
|
+
}
|
|
5441
|
+
function encodeData({ data, primaryType, types }) {
|
|
5442
|
+
const encodedTypes = [{ type: "bytes32" }];
|
|
5443
|
+
const encodedValues = [hashType({ primaryType, types })];
|
|
5444
|
+
for (const field of types[primaryType]) {
|
|
5445
|
+
const [type, value] = encodeField({
|
|
5446
|
+
types,
|
|
5447
|
+
name: field.name,
|
|
5448
|
+
type: field.type,
|
|
5449
|
+
value: data[field.name]
|
|
5450
|
+
});
|
|
5451
|
+
encodedTypes.push(type);
|
|
5452
|
+
encodedValues.push(value);
|
|
5453
|
+
}
|
|
5454
|
+
return encodeAbiParameters(encodedTypes, encodedValues);
|
|
5455
|
+
}
|
|
5456
|
+
function hashType({ primaryType, types }) {
|
|
5457
|
+
const encodedHashType = toHex(encodeType({ primaryType, types }));
|
|
5458
|
+
return keccak256(encodedHashType);
|
|
5459
|
+
}
|
|
5460
|
+
function encodeType({ primaryType, types }) {
|
|
5461
|
+
let result = "";
|
|
5462
|
+
const unsortedDeps = findTypeDependencies({ primaryType, types });
|
|
5463
|
+
unsortedDeps.delete(primaryType);
|
|
5464
|
+
const deps = [primaryType, ...Array.from(unsortedDeps).sort()];
|
|
5465
|
+
for (const type of deps) {
|
|
5466
|
+
result += `${type}(${types[type].map(({ name, type: t }) => `${t} ${name}`).join(",")})`;
|
|
5467
|
+
}
|
|
5468
|
+
return result;
|
|
5469
|
+
}
|
|
5470
|
+
function findTypeDependencies({ primaryType: primaryType_, types }, results = /* @__PURE__ */ new Set()) {
|
|
5471
|
+
const match = primaryType_.match(/^\w*/u);
|
|
5472
|
+
const primaryType = match?.[0];
|
|
5473
|
+
if (results.has(primaryType) || types[primaryType] === void 0) {
|
|
5474
|
+
return results;
|
|
5475
|
+
}
|
|
5476
|
+
results.add(primaryType);
|
|
5477
|
+
for (const field of types[primaryType]) {
|
|
5478
|
+
findTypeDependencies({ primaryType: field.type, types }, results);
|
|
5479
|
+
}
|
|
5480
|
+
return results;
|
|
5481
|
+
}
|
|
5482
|
+
function encodeField({ types, name, type, value }) {
|
|
5483
|
+
if (types[type] !== void 0) {
|
|
5484
|
+
return [
|
|
5485
|
+
{ type: "bytes32" },
|
|
5486
|
+
keccak256(encodeData({ data: value, primaryType: type, types }))
|
|
5487
|
+
];
|
|
5488
|
+
}
|
|
5489
|
+
if (type === "bytes")
|
|
5490
|
+
return [{ type: "bytes32" }, keccak256(value)];
|
|
5491
|
+
if (type === "string")
|
|
5492
|
+
return [{ type: "bytes32" }, keccak256(toHex(value))];
|
|
5493
|
+
if (type.lastIndexOf("]") === type.length - 1) {
|
|
5494
|
+
const parsedType = type.slice(0, type.lastIndexOf("["));
|
|
5495
|
+
const typeValuePairs = value.map((item) => encodeField({
|
|
5496
|
+
name,
|
|
5497
|
+
type: parsedType,
|
|
5498
|
+
types,
|
|
5499
|
+
value: item
|
|
5500
|
+
}));
|
|
5501
|
+
return [
|
|
5502
|
+
{ type: "bytes32" },
|
|
5503
|
+
keccak256(encodeAbiParameters(typeValuePairs.map(([t]) => t), typeValuePairs.map(([, v]) => v)))
|
|
5504
|
+
];
|
|
5505
|
+
}
|
|
5506
|
+
return [{ type }, value];
|
|
5507
|
+
}
|
|
5508
|
+
|
|
5509
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/bytes.js
|
|
4456
5510
|
var erc6492MagicBytes = "0x6492649264926492649264926492649264926492649264926492649264926492";
|
|
4457
5511
|
var zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
4458
5512
|
|
|
4459
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
5513
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/isErc6492Signature.js
|
|
4460
5514
|
function isErc6492Signature(signature) {
|
|
4461
5515
|
return sliceHex(signature, -32) === erc6492MagicBytes;
|
|
4462
5516
|
}
|
|
4463
5517
|
|
|
4464
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5518
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/erc8010/SignatureErc8010.js
|
|
4465
5519
|
var SignatureErc8010_exports = {};
|
|
4466
5520
|
__export(SignatureErc8010_exports, {
|
|
4467
5521
|
InvalidWrappedSignatureError: () => InvalidWrappedSignatureError,
|
|
4468
5522
|
assert: () => assert4,
|
|
4469
|
-
from: () =>
|
|
5523
|
+
from: () => from9,
|
|
4470
5524
|
magicBytes: () => magicBytes,
|
|
4471
5525
|
suffixParameters: () => suffixParameters,
|
|
4472
5526
|
unwrap: () => unwrap,
|
|
@@ -4474,7 +5528,7 @@ __export(SignatureErc8010_exports, {
|
|
|
4474
5528
|
wrap: () => wrap
|
|
4475
5529
|
});
|
|
4476
5530
|
|
|
4477
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5531
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/lru.js
|
|
4478
5532
|
var LruMap2 = class extends Map {
|
|
4479
5533
|
constructor(size5) {
|
|
4480
5534
|
super();
|
|
@@ -4505,13 +5559,22 @@ var LruMap2 = class extends Map {
|
|
|
4505
5559
|
}
|
|
4506
5560
|
};
|
|
4507
5561
|
|
|
4508
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5562
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Caches.js
|
|
4509
5563
|
var caches = {
|
|
4510
5564
|
checksum: /* @__PURE__ */ new LruMap2(8192)
|
|
4511
5565
|
};
|
|
4512
5566
|
var checksum = caches.checksum;
|
|
4513
5567
|
|
|
4514
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5568
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Hash.js
|
|
5569
|
+
function keccak2562(value, options = {}) {
|
|
5570
|
+
const { as = typeof value === "string" ? "Hex" : "Bytes" } = options;
|
|
5571
|
+
const bytes = keccak_256(from2(value));
|
|
5572
|
+
if (as === "Bytes")
|
|
5573
|
+
return bytes;
|
|
5574
|
+
return fromBytes(bytes);
|
|
5575
|
+
}
|
|
5576
|
+
|
|
5577
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/PublicKey.js
|
|
4515
5578
|
function assert(publicKey, options = {}) {
|
|
4516
5579
|
const { compressed } = options;
|
|
4517
5580
|
const { prefix, x, y } = publicKey;
|
|
@@ -4533,7 +5596,7 @@ function assert(publicKey, options = {}) {
|
|
|
4533
5596
|
}
|
|
4534
5597
|
throw new InvalidError({ publicKey });
|
|
4535
5598
|
}
|
|
4536
|
-
function
|
|
5599
|
+
function from3(value) {
|
|
4537
5600
|
const publicKey = (() => {
|
|
4538
5601
|
if (validate(value))
|
|
4539
5602
|
return fromHex2(value);
|
|
@@ -4660,7 +5723,7 @@ var InvalidSerializedSizeError = class extends BaseError2 {
|
|
|
4660
5723
|
}
|
|
4661
5724
|
};
|
|
4662
5725
|
|
|
4663
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5726
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Address.js
|
|
4664
5727
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
4665
5728
|
function assert2(value, options = {}) {
|
|
4666
5729
|
const { strict = true } = options;
|
|
@@ -4698,7 +5761,7 @@ function checksum2(address) {
|
|
|
4698
5761
|
checksum.set(address, result);
|
|
4699
5762
|
return result;
|
|
4700
5763
|
}
|
|
4701
|
-
function
|
|
5764
|
+
function from4(address, options = {}) {
|
|
4702
5765
|
const { checksum: checksumVal = false } = options;
|
|
4703
5766
|
assert2(address);
|
|
4704
5767
|
if (checksumVal)
|
|
@@ -4707,7 +5770,7 @@ function from3(address, options = {}) {
|
|
|
4707
5770
|
}
|
|
4708
5771
|
function fromPublicKey(publicKey, options = {}) {
|
|
4709
5772
|
const address = keccak2562(`0x${toHex2(publicKey).slice(4)}`).substring(26);
|
|
4710
|
-
return
|
|
5773
|
+
return from4(`0x${address}`, options);
|
|
4711
5774
|
}
|
|
4712
5775
|
function validate3(address, options = {}) {
|
|
4713
5776
|
const { strict = true } = options ?? {};
|
|
@@ -4754,7 +5817,7 @@ var InvalidChecksumError = class extends BaseError2 {
|
|
|
4754
5817
|
}
|
|
4755
5818
|
};
|
|
4756
5819
|
|
|
4757
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5820
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Solidity.js
|
|
4758
5821
|
var arrayRegex2 = /^(.*)\[([0-9]*)\]$/;
|
|
4759
5822
|
var bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
4760
5823
|
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)?$/;
|
|
@@ -4853,9 +5916,9 @@ var maxUint224 = 2n ** 224n - 1n;
|
|
|
4853
5916
|
var maxUint232 = 2n ** 232n - 1n;
|
|
4854
5917
|
var maxUint240 = 2n ** 240n - 1n;
|
|
4855
5918
|
var maxUint248 = 2n ** 248n - 1n;
|
|
4856
|
-
var
|
|
5919
|
+
var maxUint2562 = 2n ** 256n - 1n;
|
|
4857
5920
|
|
|
4858
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5921
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/abiParameters.js
|
|
4859
5922
|
function decodeParameter(cursor, param, options) {
|
|
4860
5923
|
const { checksumAddress: checksumAddress2, staticPosition } = options;
|
|
4861
5924
|
const arrayComponents = getArrayComponents(param.type);
|
|
@@ -5244,7 +6307,7 @@ function hasDynamicChild(param) {
|
|
|
5244
6307
|
return false;
|
|
5245
6308
|
}
|
|
5246
6309
|
|
|
5247
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
6310
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/cursor.js
|
|
5248
6311
|
var staticCursor = {
|
|
5249
6312
|
bytes: new Uint8Array(),
|
|
5250
6313
|
dataView: new DataView(new ArrayBuffer(0)),
|
|
@@ -5446,7 +6509,7 @@ var RecursiveReadLimitExceededError = class extends BaseError2 {
|
|
|
5446
6509
|
}
|
|
5447
6510
|
};
|
|
5448
6511
|
|
|
5449
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
6512
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/AbiParameters.js
|
|
5450
6513
|
function decode(parameters, data, options = {}) {
|
|
5451
6514
|
const { as = "Array", checksumAddress: checksumAddress2 = false } = options;
|
|
5452
6515
|
const bytes = typeof data === "string" ? fromHex(data) : data;
|
|
@@ -5554,7 +6617,7 @@ function encodePacked2(types, values) {
|
|
|
5554
6617
|
}
|
|
5555
6618
|
encodePacked3.encode = encode5;
|
|
5556
6619
|
})(encodePacked2 || (encodePacked2 = {}));
|
|
5557
|
-
function
|
|
6620
|
+
function from5(parameters) {
|
|
5558
6621
|
if (Array.isArray(parameters) && typeof parameters[0] === "string")
|
|
5559
6622
|
return parseAbiParameters(parameters);
|
|
5560
6623
|
if (typeof parameters === "string")
|
|
@@ -5648,10 +6711,10 @@ var InvalidTypeError = class extends BaseError2 {
|
|
|
5648
6711
|
}
|
|
5649
6712
|
};
|
|
5650
6713
|
|
|
5651
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5652
|
-
function
|
|
6714
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Rlp.js
|
|
6715
|
+
function from6(value, options) {
|
|
5653
6716
|
const { as } = options;
|
|
5654
|
-
const encodable =
|
|
6717
|
+
const encodable = getEncodable2(value);
|
|
5655
6718
|
const cursor = create(new Uint8Array(encodable.length));
|
|
5656
6719
|
encodable.encode(cursor);
|
|
5657
6720
|
if (as === "Hex")
|
|
@@ -5660,16 +6723,16 @@ function from5(value, options) {
|
|
|
5660
6723
|
}
|
|
5661
6724
|
function fromHex3(hex, options = {}) {
|
|
5662
6725
|
const { as = "Hex" } = options;
|
|
5663
|
-
return
|
|
6726
|
+
return from6(hex, { as });
|
|
5664
6727
|
}
|
|
5665
|
-
function
|
|
6728
|
+
function getEncodable2(bytes) {
|
|
5666
6729
|
if (Array.isArray(bytes))
|
|
5667
|
-
return
|
|
5668
|
-
return
|
|
6730
|
+
return getEncodableList2(bytes.map((x) => getEncodable2(x)));
|
|
6731
|
+
return getEncodableBytes2(bytes);
|
|
5669
6732
|
}
|
|
5670
|
-
function
|
|
6733
|
+
function getEncodableList2(list) {
|
|
5671
6734
|
const bodyLength = list.reduce((acc, x) => acc + x.length, 0);
|
|
5672
|
-
const sizeOfBodyLength =
|
|
6735
|
+
const sizeOfBodyLength = getSizeOfLength2(bodyLength);
|
|
5673
6736
|
const length = (() => {
|
|
5674
6737
|
if (bodyLength <= 55)
|
|
5675
6738
|
return 1 + bodyLength;
|
|
@@ -5697,9 +6760,9 @@ function getEncodableList(list) {
|
|
|
5697
6760
|
}
|
|
5698
6761
|
};
|
|
5699
6762
|
}
|
|
5700
|
-
function
|
|
6763
|
+
function getEncodableBytes2(bytesOrHex) {
|
|
5701
6764
|
const bytes = typeof bytesOrHex === "string" ? fromHex(bytesOrHex) : bytesOrHex;
|
|
5702
|
-
const sizeOfBytesLength =
|
|
6765
|
+
const sizeOfBytesLength = getSizeOfLength2(bytes.length);
|
|
5703
6766
|
const length = (() => {
|
|
5704
6767
|
if (bytes.length === 1 && bytes[0] < 128)
|
|
5705
6768
|
return 1;
|
|
@@ -5730,7 +6793,7 @@ function getEncodableBytes(bytesOrHex) {
|
|
|
5730
6793
|
}
|
|
5731
6794
|
};
|
|
5732
6795
|
}
|
|
5733
|
-
function
|
|
6796
|
+
function getSizeOfLength2(length) {
|
|
5734
6797
|
if (length <= 255)
|
|
5735
6798
|
return 1;
|
|
5736
6799
|
if (length <= 65535)
|
|
@@ -5742,7 +6805,7 @@ function getSizeOfLength(length) {
|
|
|
5742
6805
|
throw new BaseError2("Length is too large.");
|
|
5743
6806
|
}
|
|
5744
6807
|
|
|
5745
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
6808
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Signature.js
|
|
5746
6809
|
function assert3(signature, options = {}) {
|
|
5747
6810
|
const { recovered } = options;
|
|
5748
6811
|
if (typeof signature.r === "undefined")
|
|
@@ -5751,9 +6814,9 @@ function assert3(signature, options = {}) {
|
|
|
5751
6814
|
throw new MissingPropertiesError({ signature });
|
|
5752
6815
|
if (recovered && typeof signature.yParity === "undefined")
|
|
5753
6816
|
throw new MissingPropertiesError({ signature });
|
|
5754
|
-
if (signature.r < 0n || signature.r >
|
|
6817
|
+
if (signature.r < 0n || signature.r > maxUint2562)
|
|
5755
6818
|
throw new InvalidRError({ value: signature.r });
|
|
5756
|
-
if (signature.s < 0n || signature.s >
|
|
6819
|
+
if (signature.s < 0n || signature.s > maxUint2562)
|
|
5757
6820
|
throw new InvalidSError({ value: signature.s });
|
|
5758
6821
|
if (typeof signature.yParity === "number" && signature.yParity !== 0 && signature.yParity !== 1)
|
|
5759
6822
|
throw new InvalidYParityError2({ value: signature.yParity });
|
|
@@ -5792,9 +6855,9 @@ function extract2(value) {
|
|
|
5792
6855
|
return void 0;
|
|
5793
6856
|
if (typeof value.s === "undefined")
|
|
5794
6857
|
return void 0;
|
|
5795
|
-
return
|
|
6858
|
+
return from7(value);
|
|
5796
6859
|
}
|
|
5797
|
-
function
|
|
6860
|
+
function from7(signature) {
|
|
5798
6861
|
const signature_ = (() => {
|
|
5799
6862
|
if (typeof signature === "string")
|
|
5800
6863
|
return fromHex4(signature);
|
|
@@ -5925,8 +6988,8 @@ var InvalidVError = class extends BaseError2 {
|
|
|
5925
6988
|
}
|
|
5926
6989
|
};
|
|
5927
6990
|
|
|
5928
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
5929
|
-
function
|
|
6991
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Authorization.js
|
|
6992
|
+
function from8(authorization, options = {}) {
|
|
5930
6993
|
if (typeof authorization.chainId === "string")
|
|
5931
6994
|
return fromRpc2(authorization);
|
|
5932
6995
|
return { ...authorization, ...options.signature };
|
|
@@ -5963,7 +7026,7 @@ function toTuple2(authorization) {
|
|
|
5963
7026
|
];
|
|
5964
7027
|
}
|
|
5965
7028
|
|
|
5966
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
7029
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/Secp256k1.js
|
|
5967
7030
|
function recoverAddress2(options) {
|
|
5968
7031
|
return fromPublicKey(recoverPublicKey2(options));
|
|
5969
7032
|
}
|
|
@@ -5972,12 +7035,12 @@ function recoverPublicKey2(options) {
|
|
|
5972
7035
|
const { r, s, yParity } = signature;
|
|
5973
7036
|
const signature_ = new secp256k1.Signature(BigInt(r), BigInt(s)).addRecoveryBit(yParity);
|
|
5974
7037
|
const point = signature_.recoverPublicKey(from(payload).substring(2));
|
|
5975
|
-
return
|
|
7038
|
+
return from3(point);
|
|
5976
7039
|
}
|
|
5977
7040
|
|
|
5978
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
7041
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/erc8010/SignatureErc8010.js
|
|
5979
7042
|
var magicBytes = "0x8010801080108010801080108010801080108010801080108010801080108010";
|
|
5980
|
-
var suffixParameters =
|
|
7043
|
+
var suffixParameters = from5("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");
|
|
5981
7044
|
function assert4(value) {
|
|
5982
7045
|
if (typeof value === "string") {
|
|
5983
7046
|
if (slice2(value, -32) !== magicBytes)
|
|
@@ -5985,7 +7048,7 @@ function assert4(value) {
|
|
|
5985
7048
|
} else
|
|
5986
7049
|
assert3(value.authorization);
|
|
5987
7050
|
}
|
|
5988
|
-
function
|
|
7051
|
+
function from9(value) {
|
|
5989
7052
|
if (typeof value === "string")
|
|
5990
7053
|
return unwrap(value);
|
|
5991
7054
|
return value;
|
|
@@ -5996,7 +7059,7 @@ function unwrap(wrapped) {
|
|
|
5996
7059
|
const suffix = slice2(wrapped, -suffixLength - 64, -64);
|
|
5997
7060
|
const signature = slice2(wrapped, 0, -suffixLength - 64);
|
|
5998
7061
|
const [auth, to, data] = decode(suffixParameters, suffix);
|
|
5999
|
-
const authorization =
|
|
7062
|
+
const authorization = from8({
|
|
6000
7063
|
address: auth.delegation,
|
|
6001
7064
|
chainId: Number(auth.chainId),
|
|
6002
7065
|
nonce: auth.nonce,
|
|
@@ -6015,7 +7078,7 @@ function wrap(value) {
|
|
|
6015
7078
|
assert4(value);
|
|
6016
7079
|
const self = recoverAddress2({
|
|
6017
7080
|
payload: getSignPayload(value.authorization),
|
|
6018
|
-
signature:
|
|
7081
|
+
signature: from7(value.authorization)
|
|
6019
7082
|
});
|
|
6020
7083
|
const suffix = encode3(suffixParameters, [
|
|
6021
7084
|
{
|
|
@@ -6049,12 +7112,12 @@ var InvalidWrappedSignatureError = class extends BaseError2 {
|
|
|
6049
7112
|
}
|
|
6050
7113
|
};
|
|
6051
7114
|
|
|
6052
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7115
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/isErc8010Signature.js
|
|
6053
7116
|
function isErc8010Signature(signature) {
|
|
6054
7117
|
return SignatureErc8010_exports.validate(signature);
|
|
6055
7118
|
}
|
|
6056
7119
|
|
|
6057
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7120
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/parseErc6492Signature.js
|
|
6058
7121
|
function parseErc6492Signature(signature) {
|
|
6059
7122
|
if (!isErc6492Signature(signature))
|
|
6060
7123
|
return { signature };
|
|
@@ -6062,7 +7125,7 @@ function parseErc6492Signature(signature) {
|
|
|
6062
7125
|
return { address, data, signature: signature_ };
|
|
6063
7126
|
}
|
|
6064
7127
|
|
|
6065
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7128
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/parseErc8010Signature.js
|
|
6066
7129
|
function parseErc8010Signature(signature) {
|
|
6067
7130
|
if (!isErc8010Signature(signature))
|
|
6068
7131
|
return { signature };
|
|
@@ -6081,12 +7144,12 @@ function parseErc8010Signature(signature) {
|
|
|
6081
7144
|
};
|
|
6082
7145
|
}
|
|
6083
7146
|
|
|
6084
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7147
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/recoverMessageAddress.js
|
|
6085
7148
|
async function recoverMessageAddress({ message, signature }) {
|
|
6086
7149
|
return recoverAddress({ hash: hashMessage(message), signature });
|
|
6087
7150
|
}
|
|
6088
7151
|
|
|
6089
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7152
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/recoverTypedDataAddress.js
|
|
6090
7153
|
async function recoverTypedDataAddress(parameters) {
|
|
6091
7154
|
const { domain, message, primaryType, signature, types } = parameters;
|
|
6092
7155
|
return recoverAddress({
|
|
@@ -6100,7 +7163,7 @@ async function recoverTypedDataAddress(parameters) {
|
|
|
6100
7163
|
});
|
|
6101
7164
|
}
|
|
6102
7165
|
|
|
6103
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7166
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/serializeErc6492Signature.js
|
|
6104
7167
|
function serializeErc6492Signature(parameters) {
|
|
6105
7168
|
const { address, data, signature, to = "hex" } = parameters;
|
|
6106
7169
|
const signature_ = concatHex([
|
|
@@ -6112,7 +7175,7 @@ function serializeErc6492Signature(parameters) {
|
|
|
6112
7175
|
return hexToBytes(signature_);
|
|
6113
7176
|
}
|
|
6114
7177
|
|
|
6115
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7178
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/serializeErc8010Signature.js
|
|
6116
7179
|
function serializeErc8010Signature(parameters) {
|
|
6117
7180
|
const { address, data, signature, to = "hex" } = parameters;
|
|
6118
7181
|
const signature_ = SignatureErc8010_exports.wrap({
|
|
@@ -6133,17 +7196,17 @@ function serializeErc8010Signature(parameters) {
|
|
|
6133
7196
|
return hexToBytes(signature_);
|
|
6134
7197
|
}
|
|
6135
7198
|
|
|
6136
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7199
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/verifyHash.js
|
|
6137
7200
|
async function verifyHash({ address, hash: hash2, signature }) {
|
|
6138
7201
|
return isAddressEqual(getAddress(address), await recoverAddress({ hash: hash2, signature }));
|
|
6139
7202
|
}
|
|
6140
7203
|
|
|
6141
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7204
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/verifyMessage.js
|
|
6142
7205
|
async function verifyMessage({ address, message, signature }) {
|
|
6143
7206
|
return isAddressEqual(getAddress(address), await recoverMessageAddress({ message, signature }));
|
|
6144
7207
|
}
|
|
6145
7208
|
|
|
6146
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7209
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/verifyTypedData.js
|
|
6147
7210
|
async function verifyTypedData(parameters) {
|
|
6148
7211
|
const { address, domain, message, primaryType, signature, types } = parameters;
|
|
6149
7212
|
return isAddressEqual(getAddress(address), await recoverTypedDataAddress({
|
|
@@ -6155,7 +7218,7 @@ async function verifyTypedData(parameters) {
|
|
|
6155
7218
|
}));
|
|
6156
7219
|
}
|
|
6157
7220
|
|
|
6158
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7221
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/transaction/getSerializedTransactionType.js
|
|
6159
7222
|
function getSerializedTransactionType(serializedTransaction) {
|
|
6160
7223
|
const serializedType = sliceHex(serializedTransaction, 0, 1);
|
|
6161
7224
|
if (serializedType === "0x04")
|
|
@@ -6171,7 +7234,7 @@ function getSerializedTransactionType(serializedTransaction) {
|
|
|
6171
7234
|
throw new InvalidSerializedTransactionTypeError({ serializedType });
|
|
6172
7235
|
}
|
|
6173
7236
|
|
|
6174
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7237
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/transaction/parseTransaction.js
|
|
6175
7238
|
function parseTransaction(serializedTransaction) {
|
|
6176
7239
|
const type = getSerializedTransactionType(serializedTransaction);
|
|
6177
7240
|
if (type === "eip1559")
|
|
@@ -6488,7 +7551,7 @@ function parseEIP155Signature(transactionArray) {
|
|
|
6488
7551
|
};
|
|
6489
7552
|
}
|
|
6490
7553
|
|
|
6491
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7554
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/unit.js
|
|
6492
7555
|
var InvalidDecimalNumberError = class extends BaseError {
|
|
6493
7556
|
constructor({ value }) {
|
|
6494
7557
|
super(`Number \`${value}\` is not a valid decimal number.`, {
|
|
@@ -6497,7 +7560,7 @@ var InvalidDecimalNumberError = class extends BaseError {
|
|
|
6497
7560
|
}
|
|
6498
7561
|
};
|
|
6499
7562
|
|
|
6500
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7563
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/unit/parseUnits.js
|
|
6501
7564
|
function parseUnits(value, decimals) {
|
|
6502
7565
|
if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
|
|
6503
7566
|
throw new InvalidDecimalNumberError({ value });
|
|
@@ -6532,17 +7595,17 @@ function parseUnits(value, decimals) {
|
|
|
6532
7595
|
return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
|
|
6533
7596
|
}
|
|
6534
7597
|
|
|
6535
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7598
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/unit/parseEther.js
|
|
6536
7599
|
function parseEther(ether, unit = "wei") {
|
|
6537
7600
|
return parseUnits(ether, etherUnits[unit]);
|
|
6538
7601
|
}
|
|
6539
7602
|
|
|
6540
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7603
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/unit/parseGwei.js
|
|
6541
7604
|
function parseGwei(ether, unit = "wei") {
|
|
6542
7605
|
return parseUnits(ether, gweiUnits[unit]);
|
|
6543
7606
|
}
|
|
6544
7607
|
|
|
6545
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7608
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/formatters/proof.js
|
|
6546
7609
|
function formatStorageProof(storageProof) {
|
|
6547
7610
|
return storageProof.map((proof) => ({
|
|
6548
7611
|
...proof,
|
|
@@ -6558,7 +7621,7 @@ function formatProof(proof) {
|
|
|
6558
7621
|
};
|
|
6559
7622
|
}
|
|
6560
7623
|
|
|
6561
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7624
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getProof.js
|
|
6562
7625
|
async function getProof(client, { address, blockHash, blockNumber, blockTag = "latest", requireCanonical, storageKeys }) {
|
|
6563
7626
|
const block = formatBlockParameter({
|
|
6564
7627
|
blockHash,
|
|
@@ -6573,7 +7636,7 @@ async function getProof(client, { address, blockHash, blockNumber, blockTag = "l
|
|
|
6573
7636
|
return formatProof(proof);
|
|
6574
7637
|
}
|
|
6575
7638
|
|
|
6576
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7639
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getRawTransaction.js
|
|
6577
7640
|
async function getRawTransaction(client, { hash: hash2 }) {
|
|
6578
7641
|
const rawTransaction = await client.request({
|
|
6579
7642
|
method: "eth_getRawTransactionByHash",
|
|
@@ -6584,7 +7647,7 @@ async function getRawTransaction(client, { hash: hash2 }) {
|
|
|
6584
7647
|
return rawTransaction;
|
|
6585
7648
|
}
|
|
6586
7649
|
|
|
6587
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7650
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getStorageAt.js
|
|
6588
7651
|
async function getStorageAt(client, { address, blockHash, blockNumber, blockTag = "latest", requireCanonical, slot }) {
|
|
6589
7652
|
const block = formatBlockParameter({
|
|
6590
7653
|
blockHash,
|
|
@@ -6599,7 +7662,7 @@ async function getStorageAt(client, { address, blockHash, blockNumber, blockTag
|
|
|
6599
7662
|
return data;
|
|
6600
7663
|
}
|
|
6601
7664
|
|
|
6602
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7665
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getTransaction.js
|
|
6603
7666
|
async function getTransaction(client, { blockHash, blockNumber, blockTag: blockTag_, hash: hash2, index: index2, sender, nonce }) {
|
|
6604
7667
|
const blockTag = blockTag_ || "latest";
|
|
6605
7668
|
const blockNumberHex = blockNumber !== void 0 ? numberToHex(blockNumber) : void 0;
|
|
@@ -6637,7 +7700,7 @@ async function getTransaction(client, { blockHash, blockNumber, blockTag: blockT
|
|
|
6637
7700
|
return format(transaction, "getTransaction");
|
|
6638
7701
|
}
|
|
6639
7702
|
|
|
6640
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7703
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js
|
|
6641
7704
|
async function getTransactionConfirmations(client, { hash: hash2, transactionReceipt }) {
|
|
6642
7705
|
const [blockNumber, transaction] = await Promise.all([
|
|
6643
7706
|
getAction(client, getBlockNumber, "getBlockNumber")({}),
|
|
@@ -6649,7 +7712,7 @@ async function getTransactionConfirmations(client, { hash: hash2, transactionRec
|
|
|
6649
7712
|
return blockNumber - transactionBlockNumber + 1n;
|
|
6650
7713
|
}
|
|
6651
7714
|
|
|
6652
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7715
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/getTransactionReceipt.js
|
|
6653
7716
|
async function getTransactionReceipt(client, { hash: hash2 }) {
|
|
6654
7717
|
const receipt = await client.request({
|
|
6655
7718
|
method: "eth_getTransactionReceipt",
|
|
@@ -6661,7 +7724,7 @@ async function getTransactionReceipt(client, { hash: hash2 }) {
|
|
|
6661
7724
|
return format(receipt, "getTransactionReceipt");
|
|
6662
7725
|
}
|
|
6663
7726
|
|
|
6664
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7727
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/multicall.js
|
|
6665
7728
|
async function multicall(client, parameters) {
|
|
6666
7729
|
const { account, authorizationList, allowFailure = true, blockHash, blockNumber, blockOverrides, blockTag, requireCanonical, stateOverride } = parameters;
|
|
6667
7730
|
const contracts = parameters.contracts;
|
|
@@ -6794,7 +7857,7 @@ async function multicall(client, parameters) {
|
|
|
6794
7857
|
return results;
|
|
6795
7858
|
}
|
|
6796
7859
|
|
|
6797
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
7860
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/simulateBlocks.js
|
|
6798
7861
|
async function simulateBlocks(client, parameters) {
|
|
6799
7862
|
const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", blocks, returnFullTransactions, traceTransfers, validation } = parameters;
|
|
6800
7863
|
try {
|
|
@@ -6882,7 +7945,7 @@ async function simulateBlocks(client, parameters) {
|
|
|
6882
7945
|
}
|
|
6883
7946
|
}
|
|
6884
7947
|
|
|
6885
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
7948
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/internal/abiItem.js
|
|
6886
7949
|
function normalizeSignature(signature) {
|
|
6887
7950
|
let active = true;
|
|
6888
7951
|
let current = "";
|
|
@@ -6983,8 +8046,8 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
|
|
|
6983
8046
|
return;
|
|
6984
8047
|
}
|
|
6985
8048
|
|
|
6986
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
6987
|
-
function
|
|
8049
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/AbiItem.js
|
|
8050
|
+
function from10(abiItem, options = {}) {
|
|
6988
8051
|
const { prepare = true } = options;
|
|
6989
8052
|
const item = (() => {
|
|
6990
8053
|
if (Array.isArray(abiItem))
|
|
@@ -7146,7 +8209,7 @@ var NotFoundError = class extends BaseError2 {
|
|
|
7146
8209
|
}
|
|
7147
8210
|
};
|
|
7148
8211
|
|
|
7149
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
8212
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/AbiConstructor.js
|
|
7150
8213
|
function encode4(...parameters) {
|
|
7151
8214
|
const [abiConstructor, options] = (() => {
|
|
7152
8215
|
if (Array.isArray(parameters[0])) {
|
|
@@ -7158,8 +8221,8 @@ function encode4(...parameters) {
|
|
|
7158
8221
|
const { bytecode, args } = options;
|
|
7159
8222
|
return concat2(bytecode, abiConstructor.inputs?.length && args?.length ? encode3(abiConstructor.inputs, args) : "0x");
|
|
7160
8223
|
}
|
|
7161
|
-
function
|
|
7162
|
-
return
|
|
8224
|
+
function from11(abiConstructor) {
|
|
8225
|
+
return from10(abiConstructor);
|
|
7163
8226
|
}
|
|
7164
8227
|
function fromAbi2(abi2) {
|
|
7165
8228
|
const item = abi2.find((item2) => item2.type === "constructor");
|
|
@@ -7168,8 +8231,8 @@ function fromAbi2(abi2) {
|
|
|
7168
8231
|
return item;
|
|
7169
8232
|
}
|
|
7170
8233
|
|
|
7171
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
7172
|
-
function
|
|
8234
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/core/AbiFunction.js
|
|
8235
|
+
function encodeData2(...parameters) {
|
|
7173
8236
|
const [abiFunction, args = []] = (() => {
|
|
7174
8237
|
if (Array.isArray(parameters[0])) {
|
|
7175
8238
|
const [abi2, name, args3] = parameters;
|
|
@@ -7186,8 +8249,8 @@ function encodeData(...parameters) {
|
|
|
7186
8249
|
const data = args.length > 0 ? encode3(item.inputs, args) : void 0;
|
|
7187
8250
|
return data ? concat2(selector, data) : selector;
|
|
7188
8251
|
}
|
|
7189
|
-
function
|
|
7190
|
-
return
|
|
8252
|
+
function from12(abiFunction, options = {}) {
|
|
8253
|
+
return from10(abiFunction, options);
|
|
7191
8254
|
}
|
|
7192
8255
|
function fromAbi3(abi2, name, options) {
|
|
7193
8256
|
const item = fromAbi(abi2, name, options);
|
|
@@ -7199,22 +8262,22 @@ function getSelector2(abiItem) {
|
|
|
7199
8262
|
return getSelector(abiItem);
|
|
7200
8263
|
}
|
|
7201
8264
|
|
|
7202
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
8265
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/constants/address.js
|
|
7203
8266
|
var ethAddress = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
|
|
7204
8267
|
var zeroAddress = "0x0000000000000000000000000000000000000000";
|
|
7205
8268
|
|
|
7206
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
8269
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/simulateCalls.js
|
|
7207
8270
|
var getBalanceCode = "0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033";
|
|
7208
8271
|
async function simulateCalls(client, parameters) {
|
|
7209
8272
|
const { blockNumber, blockTag, calls, stateOverrides, traceAssetChanges, traceTransfers, validation } = parameters;
|
|
7210
8273
|
const account = parameters.account ? parseAccount(parameters.account) : void 0;
|
|
7211
8274
|
if (traceAssetChanges && !account)
|
|
7212
8275
|
throw new BaseError("`account` is required when `traceAssetChanges` is true");
|
|
7213
|
-
const getBalanceData = account ? encode4(
|
|
8276
|
+
const getBalanceData = account ? encode4(from11("constructor(bytes, bytes)"), {
|
|
7214
8277
|
bytecode: deploylessCallViaBytecodeBytecode,
|
|
7215
8278
|
args: [
|
|
7216
8279
|
getBalanceCode,
|
|
7217
|
-
|
|
8280
|
+
encodeData2(from12("function getBalance(address)"), [account.address])
|
|
7218
8281
|
]
|
|
7219
8282
|
}) : void 0;
|
|
7220
8283
|
const assetAddresses = traceAssetChanges ? await Promise.all(parameters.calls.map(async (call2) => {
|
|
@@ -7241,7 +8304,7 @@ async function simulateCalls(client, parameters) {
|
|
|
7241
8304
|
{
|
|
7242
8305
|
calls: assetAddresses.map((address, i) => ({
|
|
7243
8306
|
abi: [
|
|
7244
|
-
|
|
8307
|
+
from12("function balanceOf(address) returns (uint256)")
|
|
7245
8308
|
],
|
|
7246
8309
|
functionName: "balanceOf",
|
|
7247
8310
|
args: [account.address],
|
|
@@ -7273,7 +8336,7 @@ async function simulateCalls(client, parameters) {
|
|
|
7273
8336
|
{
|
|
7274
8337
|
calls: assetAddresses.map((address, i) => ({
|
|
7275
8338
|
abi: [
|
|
7276
|
-
|
|
8339
|
+
from12("function balanceOf(address) returns (uint256)")
|
|
7277
8340
|
],
|
|
7278
8341
|
functionName: "balanceOf",
|
|
7279
8342
|
args: [account.address],
|
|
@@ -7293,7 +8356,7 @@ async function simulateCalls(client, parameters) {
|
|
|
7293
8356
|
calls: assetAddresses.map((address, i) => ({
|
|
7294
8357
|
to: address,
|
|
7295
8358
|
abi: [
|
|
7296
|
-
|
|
8359
|
+
from12("function decimals() returns (uint256)")
|
|
7297
8360
|
],
|
|
7298
8361
|
functionName: "decimals",
|
|
7299
8362
|
from: zeroAddress,
|
|
@@ -7311,7 +8374,7 @@ async function simulateCalls(client, parameters) {
|
|
|
7311
8374
|
calls: assetAddresses.map((address, i) => ({
|
|
7312
8375
|
to: address,
|
|
7313
8376
|
abi: [
|
|
7314
|
-
|
|
8377
|
+
from12("function tokenURI(uint256) returns (string)")
|
|
7315
8378
|
],
|
|
7316
8379
|
functionName: "tokenURI",
|
|
7317
8380
|
args: [0n],
|
|
@@ -7329,7 +8392,7 @@ async function simulateCalls(client, parameters) {
|
|
|
7329
8392
|
{
|
|
7330
8393
|
calls: assetAddresses.map((address, i) => ({
|
|
7331
8394
|
to: address,
|
|
7332
|
-
abi: [
|
|
8395
|
+
abi: [from12("function symbol() returns (string)")],
|
|
7333
8396
|
functionName: "symbol",
|
|
7334
8397
|
from: zeroAddress,
|
|
7335
8398
|
nonce: i
|
|
@@ -7400,12 +8463,12 @@ async function simulateCalls(client, parameters) {
|
|
|
7400
8463
|
};
|
|
7401
8464
|
}
|
|
7402
8465
|
|
|
7403
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.
|
|
8466
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.6.7/node_modules/ox/_esm/erc6492/SignatureErc6492.js
|
|
7404
8467
|
var SignatureErc6492_exports = {};
|
|
7405
8468
|
__export(SignatureErc6492_exports, {
|
|
7406
8469
|
InvalidWrappedSignatureError: () => InvalidWrappedSignatureError2,
|
|
7407
8470
|
assert: () => assert5,
|
|
7408
|
-
from: () =>
|
|
8471
|
+
from: () => from13,
|
|
7409
8472
|
magicBytes: () => magicBytes2,
|
|
7410
8473
|
universalSignatureValidatorAbi: () => universalSignatureValidatorAbi,
|
|
7411
8474
|
universalSignatureValidatorBytecode: () => universalSignatureValidatorBytecode,
|
|
@@ -7463,19 +8526,19 @@ function assert5(wrapped) {
|
|
|
7463
8526
|
if (slice2(wrapped, -32) !== magicBytes2)
|
|
7464
8527
|
throw new InvalidWrappedSignatureError2(wrapped);
|
|
7465
8528
|
}
|
|
7466
|
-
function
|
|
8529
|
+
function from13(wrapped) {
|
|
7467
8530
|
if (typeof wrapped === "string")
|
|
7468
8531
|
return unwrap2(wrapped);
|
|
7469
8532
|
return wrapped;
|
|
7470
8533
|
}
|
|
7471
8534
|
function unwrap2(wrapped) {
|
|
7472
8535
|
assert5(wrapped);
|
|
7473
|
-
const [to, data, signature] = decode(
|
|
8536
|
+
const [to, data, signature] = decode(from5("address, bytes, bytes"), wrapped);
|
|
7474
8537
|
return { data, signature, to };
|
|
7475
8538
|
}
|
|
7476
8539
|
function wrap2(value) {
|
|
7477
8540
|
const { data, signature, to } = value;
|
|
7478
|
-
return concat2(encode3(
|
|
8541
|
+
return concat2(encode3(from5("address, bytes, bytes"), [
|
|
7479
8542
|
to,
|
|
7480
8543
|
data,
|
|
7481
8544
|
signature
|
|
@@ -7501,7 +8564,22 @@ var InvalidWrappedSignatureError2 = class extends BaseError2 {
|
|
|
7501
8564
|
}
|
|
7502
8565
|
};
|
|
7503
8566
|
|
|
7504
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
8567
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/serializeSignature.js
|
|
8568
|
+
function serializeSignature({ r, s, to = "hex", v, yParity }) {
|
|
8569
|
+
const yParity_ = (() => {
|
|
8570
|
+
if (yParity === 0 || yParity === 1)
|
|
8571
|
+
return yParity;
|
|
8572
|
+
if (v && (v === 27n || v === 28n || v >= 35n))
|
|
8573
|
+
return v % 2n === 0n ? 1 : 0;
|
|
8574
|
+
throw new Error("Invalid `v` or `yParity` value");
|
|
8575
|
+
})();
|
|
8576
|
+
const signature = `0x${new secp256k1.Signature(hexToBigInt(r), hexToBigInt(s)).toCompactHex()}${yParity_ === 0 ? "1b" : "1c"}`;
|
|
8577
|
+
if (to === "hex")
|
|
8578
|
+
return signature;
|
|
8579
|
+
return hexToBytes(signature);
|
|
8580
|
+
}
|
|
8581
|
+
|
|
8582
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/verifyHash.js
|
|
7505
8583
|
async function verifyHash2(client, parameters) {
|
|
7506
8584
|
const { address, chain = client.chain, hash: hash2, erc6492VerifierAddress: verifierAddress = parameters.universalSignatureVerifierAddress ?? chain?.contracts?.erc6492Verifier?.address, multicallAddress = parameters.multicallAddress ?? chain?.contracts?.multicall3?.address, mode = "auto" } = parameters;
|
|
7507
8585
|
if (chain?.verifyHash)
|
|
@@ -7674,7 +8752,7 @@ async function verifyErc1271(client, parameters) {
|
|
|
7674
8752
|
var VerificationError = class extends Error {
|
|
7675
8753
|
};
|
|
7676
8754
|
|
|
7677
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
8755
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/verifyMessage.js
|
|
7678
8756
|
async function verifyMessage2(client, { address, message, factory, factoryData, signature, ...callRequest }) {
|
|
7679
8757
|
const hash2 = hashMessage(message);
|
|
7680
8758
|
return getAction(client, verifyHash2, "verifyHash")({
|
|
@@ -7687,7 +8765,7 @@ async function verifyMessage2(client, { address, message, factory, factoryData,
|
|
|
7687
8765
|
});
|
|
7688
8766
|
}
|
|
7689
8767
|
|
|
7690
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
8768
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/verifyTypedData.js
|
|
7691
8769
|
async function verifyTypedData2(client, parameters) {
|
|
7692
8770
|
const { address, factory, factoryData, signature, message, primaryType, types, domain, ...callRequest } = parameters;
|
|
7693
8771
|
const hash2 = hashTypedData({ message, primaryType, types, domain });
|
|
@@ -7701,7 +8779,7 @@ async function verifyTypedData2(client, parameters) {
|
|
|
7701
8779
|
});
|
|
7702
8780
|
}
|
|
7703
8781
|
|
|
7704
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
8782
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/watchBlockNumber.js
|
|
7705
8783
|
function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onBlockNumber, onError, poll: poll_, pollingInterval = client.pollingInterval }) {
|
|
7706
8784
|
const enablePolling = (() => {
|
|
7707
8785
|
if (typeof poll_ !== "undefined")
|
|
@@ -7793,7 +8871,7 @@ function watchBlockNumber(client, { emitOnBegin = false, emitMissed = false, onB
|
|
|
7793
8871
|
return enablePolling ? pollBlockNumber() : subscribeBlockNumber();
|
|
7794
8872
|
}
|
|
7795
8873
|
|
|
7796
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
8874
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js
|
|
7797
8875
|
async function waitForTransactionReceipt(client, parameters) {
|
|
7798
8876
|
const {
|
|
7799
8877
|
checkReplacement = client.chain?.supportsTransactionReplacementDetection ?? true,
|
|
@@ -7889,7 +8967,7 @@ async function waitForTransactionReceipt(client, parameters) {
|
|
|
7889
8967
|
shouldRetry: ({ error }) => error instanceof BlockNotFoundError
|
|
7890
8968
|
});
|
|
7891
8969
|
retrying = false;
|
|
7892
|
-
const replacementTransaction = block.transactions.find(({ from:
|
|
8970
|
+
const replacementTransaction = block.transactions.find(({ from: from14, nonce }) => from14 === replacedTransaction.from && nonce === replacedTransaction.nonce);
|
|
7893
8971
|
if (!replacementTransaction)
|
|
7894
8972
|
return;
|
|
7895
8973
|
receipt = await getAction(client, getTransactionReceipt, "getTransactionReceipt")({
|
|
@@ -7925,7 +9003,7 @@ async function waitForTransactionReceipt(client, parameters) {
|
|
|
7925
9003
|
return promise;
|
|
7926
9004
|
}
|
|
7927
9005
|
|
|
7928
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9006
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/watchBlocks.js
|
|
7929
9007
|
function watchBlocks(client, { blockTag = client.experimental_blockTag ?? "latest", emitMissed = false, emitOnBegin = false, onBlock, onError, includeTransactions: includeTransactions_, poll: poll_, pollingInterval = client.pollingInterval }) {
|
|
7930
9008
|
const enablePolling = (() => {
|
|
7931
9009
|
if (typeof poll_ !== "undefined")
|
|
@@ -8046,7 +9124,7 @@ function watchBlocks(client, { blockTag = client.experimental_blockTag ?? "lates
|
|
|
8046
9124
|
return enablePolling ? pollBlocks() : subscribeBlocks();
|
|
8047
9125
|
}
|
|
8048
9126
|
|
|
8049
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9127
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/watchEvent.js
|
|
8050
9128
|
function watchEvent(client, { address, args, batch = true, event, events, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ }) {
|
|
8051
9129
|
const enablePolling = (() => {
|
|
8052
9130
|
if (typeof poll_ !== "undefined")
|
|
@@ -8209,7 +9287,7 @@ function watchEvent(client, { address, args, batch = true, event, events, fromBl
|
|
|
8209
9287
|
return enablePolling ? pollEvent() : subscribeEvent();
|
|
8210
9288
|
}
|
|
8211
9289
|
|
|
8212
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9290
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/public/watchPendingTransactions.js
|
|
8213
9291
|
function watchPendingTransactions(client, { batch = true, onError, onTransactions, poll: poll_, pollingInterval = client.pollingInterval }) {
|
|
8214
9292
|
const enablePolling = typeof poll_ !== "undefined" ? poll_ : client.transport.type !== "webSocket" && client.transport.type !== "ipc";
|
|
8215
9293
|
const pollPendingTransactions = () => {
|
|
@@ -8283,7 +9361,7 @@ function watchPendingTransactions(client, { batch = true, onError, onTransaction
|
|
|
8283
9361
|
return enablePolling ? pollPendingTransactions() : subscribePendingTransactions();
|
|
8284
9362
|
}
|
|
8285
9363
|
|
|
8286
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9364
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/siwe/parseSiweMessage.js
|
|
8287
9365
|
function parseSiweMessage(message) {
|
|
8288
9366
|
const { scheme, statement, ...prefix } = message.match(prefixRegex)?.groups ?? {};
|
|
8289
9367
|
const { chainId, expirationTime, issuedAt, notBefore, requestId, ...suffix } = message.match(suffixRegex)?.groups ?? {};
|
|
@@ -8304,7 +9382,7 @@ function parseSiweMessage(message) {
|
|
|
8304
9382
|
var prefixRegex = /^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/;
|
|
8305
9383
|
var suffixRegex = /(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;
|
|
8306
9384
|
|
|
8307
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9385
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/siwe/validateSiweMessage.js
|
|
8308
9386
|
function validateSiweMessage(parameters) {
|
|
8309
9387
|
const { address, domain, message, nonce, scheme, time = /* @__PURE__ */ new Date() } = parameters;
|
|
8310
9388
|
if (domain && message.domain !== domain)
|
|
@@ -8330,7 +9408,7 @@ function validateSiweMessage(parameters) {
|
|
|
8330
9408
|
return true;
|
|
8331
9409
|
}
|
|
8332
9410
|
|
|
8333
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9411
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/siwe/verifySiweMessage.js
|
|
8334
9412
|
async function verifySiweMessage(client, parameters) {
|
|
8335
9413
|
const { address, domain, message, nonce, scheme, signature, time = /* @__PURE__ */ new Date(), ...callRequest } = parameters;
|
|
8336
9414
|
const parsed = parseSiweMessage(message);
|
|
@@ -8355,7 +9433,7 @@ async function verifySiweMessage(client, parameters) {
|
|
|
8355
9433
|
});
|
|
8356
9434
|
}
|
|
8357
9435
|
|
|
8358
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9436
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/internal.js
|
|
8359
9437
|
function toAmount(amount, decimals) {
|
|
8360
9438
|
return { amount, decimals, formatted: formatUnits(amount, decimals) };
|
|
8361
9439
|
}
|
|
@@ -8463,7 +9541,7 @@ function defineCall(call2) {
|
|
|
8463
9541
|
};
|
|
8464
9542
|
}
|
|
8465
9543
|
|
|
8466
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9544
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/approve.js
|
|
8467
9545
|
async function approve(client, parameters) {
|
|
8468
9546
|
return approve.inner(writeContract, client, parameters);
|
|
8469
9547
|
}
|
|
@@ -8517,7 +9595,7 @@ function getCall(client, parameters) {
|
|
|
8517
9595
|
};
|
|
8518
9596
|
}
|
|
8519
9597
|
|
|
8520
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9598
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/sendRawTransactionSync.js
|
|
8521
9599
|
async function sendRawTransactionSync(client, { serializedTransaction, throwOnReceiptRevert, timeout }) {
|
|
8522
9600
|
const receipt = await client.request({
|
|
8523
9601
|
method: "eth_sendRawTransactionSync",
|
|
@@ -8530,7 +9608,7 @@ async function sendRawTransactionSync(client, { serializedTransaction, throwOnRe
|
|
|
8530
9608
|
return formatted;
|
|
8531
9609
|
}
|
|
8532
9610
|
|
|
8533
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9611
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/sendTransactionSync.js
|
|
8534
9612
|
var supportsWalletNamespace2 = new LruMap(128);
|
|
8535
9613
|
async function sendTransactionSync(client, parameters) {
|
|
8536
9614
|
const { account: account_ = client.account, assertChainId = true, chain = client.chain, accessList, authorizationList, blobs, data, dataSuffix = typeof client.dataSuffix === "string" ? client.dataSuffix : client.dataSuffix?.value, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, pollingInterval, throwOnReceiptRevert, type, value, ...rest } = parameters;
|
|
@@ -8695,12 +9773,12 @@ async function sendTransactionSync(client, parameters) {
|
|
|
8695
9773
|
}
|
|
8696
9774
|
}
|
|
8697
9775
|
|
|
8698
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9776
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/writeContractSync.js
|
|
8699
9777
|
async function writeContractSync(client, parameters) {
|
|
8700
9778
|
return writeContract.internal(client, sendTransactionSync, "sendTransactionSync", parameters);
|
|
8701
9779
|
}
|
|
8702
9780
|
|
|
8703
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9781
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/approveSync.js
|
|
8704
9782
|
async function approveSync(client, parameters) {
|
|
8705
9783
|
const { amount, token, throwOnReceiptRevert = true } = parameters;
|
|
8706
9784
|
const { decimals } = resolveToken(client, { token });
|
|
@@ -8717,7 +9795,7 @@ async function approveSync(client, parameters) {
|
|
|
8717
9795
|
};
|
|
8718
9796
|
}
|
|
8719
9797
|
|
|
8720
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9798
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/getAllowance.js
|
|
8721
9799
|
async function getAllowance(client, parameters) {
|
|
8722
9800
|
const { account, decimals, spender, token, ...rest } = parameters;
|
|
8723
9801
|
const [amount, { decimals: resolved }] = await Promise.all([
|
|
@@ -8744,7 +9822,7 @@ async function getAllowance(client, parameters) {
|
|
|
8744
9822
|
getAllowance2.call = call2;
|
|
8745
9823
|
})(getAllowance || (getAllowance = {}));
|
|
8746
9824
|
|
|
8747
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9825
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/getBalance.js
|
|
8748
9826
|
async function getBalance2(client, parameters) {
|
|
8749
9827
|
const { account: account_ = client.account, decimals, token, ...rest } = parameters;
|
|
8750
9828
|
if (!account_)
|
|
@@ -8778,7 +9856,7 @@ async function getBalance2(client, parameters) {
|
|
|
8778
9856
|
getBalance3.call = call2;
|
|
8779
9857
|
})(getBalance2 || (getBalance2 = {}));
|
|
8780
9858
|
|
|
8781
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9859
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/getMetadata.js
|
|
8782
9860
|
async function getMetadata(client, parameters) {
|
|
8783
9861
|
const { token, ...rest } = parameters;
|
|
8784
9862
|
const { address } = resolveToken(client, { token });
|
|
@@ -8810,7 +9888,7 @@ async function getMetadata(client, parameters) {
|
|
|
8810
9888
|
};
|
|
8811
9889
|
}
|
|
8812
9890
|
|
|
8813
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9891
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/getTotalSupply.js
|
|
8814
9892
|
async function getTotalSupply(client, parameters) {
|
|
8815
9893
|
const { decimals, token, ...rest } = parameters;
|
|
8816
9894
|
const [amount, { decimals: resolved }] = await Promise.all([
|
|
@@ -8837,7 +9915,7 @@ async function getTotalSupply(client, parameters) {
|
|
|
8837
9915
|
getTotalSupply2.call = call2;
|
|
8838
9916
|
})(getTotalSupply || (getTotalSupply = {}));
|
|
8839
9917
|
|
|
8840
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9918
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/transfer.js
|
|
8841
9919
|
async function transfer(client, parameters) {
|
|
8842
9920
|
return transfer.inner(writeContract, client, parameters);
|
|
8843
9921
|
}
|
|
@@ -8881,14 +9959,14 @@ async function transfer(client, parameters) {
|
|
|
8881
9959
|
transfer2.extractEvent = extractEvent;
|
|
8882
9960
|
})(transfer || (transfer = {}));
|
|
8883
9961
|
function getCall2(client, parameters) {
|
|
8884
|
-
const { amount, from:
|
|
9962
|
+
const { amount, from: from14, to, token } = parameters;
|
|
8885
9963
|
const { address, decimals } = resolveToken(client, { token });
|
|
8886
9964
|
const value = toBaseUnits(amount, decimals);
|
|
8887
|
-
if (
|
|
9965
|
+
if (from14)
|
|
8888
9966
|
return {
|
|
8889
9967
|
abi: erc20Abi,
|
|
8890
9968
|
address,
|
|
8891
|
-
args: [
|
|
9969
|
+
args: [from14, to, value],
|
|
8892
9970
|
functionName: "transferFrom"
|
|
8893
9971
|
};
|
|
8894
9972
|
return {
|
|
@@ -8899,7 +9977,7 @@ function getCall2(client, parameters) {
|
|
|
8899
9977
|
};
|
|
8900
9978
|
}
|
|
8901
9979
|
|
|
8902
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9980
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/token/transferSync.js
|
|
8903
9981
|
async function transferSync(client, parameters) {
|
|
8904
9982
|
const { amount, token, throwOnReceiptRevert = true } = parameters;
|
|
8905
9983
|
const { decimals } = resolveToken(client, { token });
|
|
@@ -8916,7 +9994,7 @@ async function transferSync(client, parameters) {
|
|
|
8916
9994
|
};
|
|
8917
9995
|
}
|
|
8918
9996
|
|
|
8919
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
9997
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/decorators/public.js
|
|
8920
9998
|
function publicActions(client) {
|
|
8921
9999
|
return {
|
|
8922
10000
|
call: (args) => call(client, args),
|
|
@@ -8991,7 +10069,7 @@ function bindPublicToken(client) {
|
|
|
8991
10069
|
};
|
|
8992
10070
|
}
|
|
8993
10071
|
|
|
8994
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10072
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/createPublicClient.js
|
|
8995
10073
|
function createPublicClient(parameters) {
|
|
8996
10074
|
const { key = "public", name = "Public Client" } = parameters;
|
|
8997
10075
|
const client = createClient({
|
|
@@ -9003,7 +10081,7 @@ function createPublicClient(parameters) {
|
|
|
9003
10081
|
return client.extend(publicActions);
|
|
9004
10082
|
}
|
|
9005
10083
|
|
|
9006
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10084
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/dropTransaction.js
|
|
9007
10085
|
async function dropTransaction(client, { hash: hash2 }) {
|
|
9008
10086
|
await client.request({
|
|
9009
10087
|
method: `${client.mode}_dropTransaction`,
|
|
@@ -9011,14 +10089,14 @@ async function dropTransaction(client, { hash: hash2 }) {
|
|
|
9011
10089
|
});
|
|
9012
10090
|
}
|
|
9013
10091
|
|
|
9014
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10092
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/dumpState.js
|
|
9015
10093
|
async function dumpState(client) {
|
|
9016
10094
|
return client.request({
|
|
9017
10095
|
method: `${client.mode}_dumpState`
|
|
9018
10096
|
});
|
|
9019
10097
|
}
|
|
9020
10098
|
|
|
9021
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10099
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/getAutomine.js
|
|
9022
10100
|
async function getAutomine(client) {
|
|
9023
10101
|
if (client.mode === "ganache")
|
|
9024
10102
|
return await client.request({
|
|
@@ -9029,14 +10107,14 @@ async function getAutomine(client) {
|
|
|
9029
10107
|
});
|
|
9030
10108
|
}
|
|
9031
10109
|
|
|
9032
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10110
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/getTxpoolContent.js
|
|
9033
10111
|
async function getTxpoolContent(client) {
|
|
9034
10112
|
return await client.request({
|
|
9035
10113
|
method: "txpool_content"
|
|
9036
10114
|
});
|
|
9037
10115
|
}
|
|
9038
10116
|
|
|
9039
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10117
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/getTxpoolStatus.js
|
|
9040
10118
|
async function getTxpoolStatus(client) {
|
|
9041
10119
|
const { pending, queued } = await client.request({
|
|
9042
10120
|
method: "txpool_status"
|
|
@@ -9047,7 +10125,7 @@ async function getTxpoolStatus(client) {
|
|
|
9047
10125
|
};
|
|
9048
10126
|
}
|
|
9049
10127
|
|
|
9050
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10128
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/impersonateAccount.js
|
|
9051
10129
|
async function impersonateAccount(client, { address }) {
|
|
9052
10130
|
await client.request({
|
|
9053
10131
|
method: `${client.mode}_impersonateAccount`,
|
|
@@ -9055,7 +10133,7 @@ async function impersonateAccount(client, { address }) {
|
|
|
9055
10133
|
});
|
|
9056
10134
|
}
|
|
9057
10135
|
|
|
9058
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10136
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/increaseTime.js
|
|
9059
10137
|
async function increaseTime(client, { seconds }) {
|
|
9060
10138
|
return await client.request({
|
|
9061
10139
|
method: "evm_increaseTime",
|
|
@@ -9063,14 +10141,14 @@ async function increaseTime(client, { seconds }) {
|
|
|
9063
10141
|
});
|
|
9064
10142
|
}
|
|
9065
10143
|
|
|
9066
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10144
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/inspectTxpool.js
|
|
9067
10145
|
async function inspectTxpool(client) {
|
|
9068
10146
|
return await client.request({
|
|
9069
10147
|
method: "txpool_inspect"
|
|
9070
10148
|
});
|
|
9071
10149
|
}
|
|
9072
10150
|
|
|
9073
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10151
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/loadState.js
|
|
9074
10152
|
async function loadState(client, { state }) {
|
|
9075
10153
|
await client.request({
|
|
9076
10154
|
method: `${client.mode}_loadState`,
|
|
@@ -9078,7 +10156,7 @@ async function loadState(client, { state }) {
|
|
|
9078
10156
|
});
|
|
9079
10157
|
}
|
|
9080
10158
|
|
|
9081
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10159
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/mine.js
|
|
9082
10160
|
async function mine(client, { blocks, interval }) {
|
|
9083
10161
|
if (client.mode === "ganache")
|
|
9084
10162
|
await client.request({
|
|
@@ -9092,14 +10170,14 @@ async function mine(client, { blocks, interval }) {
|
|
|
9092
10170
|
});
|
|
9093
10171
|
}
|
|
9094
10172
|
|
|
9095
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10173
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/removeBlockTimestampInterval.js
|
|
9096
10174
|
async function removeBlockTimestampInterval(client) {
|
|
9097
10175
|
await client.request({
|
|
9098
10176
|
method: `${client.mode}_removeBlockTimestampInterval`
|
|
9099
10177
|
});
|
|
9100
10178
|
}
|
|
9101
10179
|
|
|
9102
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10180
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/reset.js
|
|
9103
10181
|
async function reset(client, { blockNumber, jsonRpcUrl } = {}) {
|
|
9104
10182
|
await client.request({
|
|
9105
10183
|
method: `${client.mode}_reset`,
|
|
@@ -9107,7 +10185,7 @@ async function reset(client, { blockNumber, jsonRpcUrl } = {}) {
|
|
|
9107
10185
|
});
|
|
9108
10186
|
}
|
|
9109
10187
|
|
|
9110
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10188
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/revert.js
|
|
9111
10189
|
async function revert(client, { id }) {
|
|
9112
10190
|
await client.request({
|
|
9113
10191
|
method: "evm_revert",
|
|
@@ -9115,9 +10193,9 @@ async function revert(client, { id }) {
|
|
|
9115
10193
|
});
|
|
9116
10194
|
}
|
|
9117
10195
|
|
|
9118
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10196
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/sendUnsignedTransaction.js
|
|
9119
10197
|
async function sendUnsignedTransaction(client, args) {
|
|
9120
|
-
const { accessList, data, from:
|
|
10198
|
+
const { accessList, data, from: from14, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, ...rest } = args;
|
|
9121
10199
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
|
9122
10200
|
const format = chainFormat || formatTransactionRequest;
|
|
9123
10201
|
const request = format({
|
|
@@ -9125,7 +10203,7 @@ async function sendUnsignedTransaction(client, args) {
|
|
|
9125
10203
|
...extract(rest, { format: chainFormat }),
|
|
9126
10204
|
accessList,
|
|
9127
10205
|
data,
|
|
9128
|
-
from:
|
|
10206
|
+
from: from14,
|
|
9129
10207
|
gas,
|
|
9130
10208
|
gasPrice,
|
|
9131
10209
|
maxFeePerGas,
|
|
@@ -9141,7 +10219,7 @@ async function sendUnsignedTransaction(client, args) {
|
|
|
9141
10219
|
return hash2;
|
|
9142
10220
|
}
|
|
9143
10221
|
|
|
9144
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10222
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setAutomine.js
|
|
9145
10223
|
async function setAutomine(client, enabled) {
|
|
9146
10224
|
if (client.mode === "ganache") {
|
|
9147
10225
|
if (enabled)
|
|
@@ -9155,7 +10233,7 @@ async function setAutomine(client, enabled) {
|
|
|
9155
10233
|
});
|
|
9156
10234
|
}
|
|
9157
10235
|
|
|
9158
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10236
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setBalance.js
|
|
9159
10237
|
async function setBalance(client, { address, value }) {
|
|
9160
10238
|
if (client.mode === "ganache")
|
|
9161
10239
|
await client.request({
|
|
@@ -9169,7 +10247,7 @@ async function setBalance(client, { address, value }) {
|
|
|
9169
10247
|
});
|
|
9170
10248
|
}
|
|
9171
10249
|
|
|
9172
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10250
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setBlockGasLimit.js
|
|
9173
10251
|
async function setBlockGasLimit(client, { gasLimit }) {
|
|
9174
10252
|
await client.request({
|
|
9175
10253
|
method: "evm_setBlockGasLimit",
|
|
@@ -9177,7 +10255,7 @@ async function setBlockGasLimit(client, { gasLimit }) {
|
|
|
9177
10255
|
});
|
|
9178
10256
|
}
|
|
9179
10257
|
|
|
9180
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10258
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setBlockTimestampInterval.js
|
|
9181
10259
|
async function setBlockTimestampInterval(client, { interval }) {
|
|
9182
10260
|
const interval_ = (() => {
|
|
9183
10261
|
if (client.mode === "hardhat")
|
|
@@ -9190,7 +10268,7 @@ async function setBlockTimestampInterval(client, { interval }) {
|
|
|
9190
10268
|
});
|
|
9191
10269
|
}
|
|
9192
10270
|
|
|
9193
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10271
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setCode.js
|
|
9194
10272
|
async function setCode(client, { address, bytecode }) {
|
|
9195
10273
|
if (client.mode === "ganache")
|
|
9196
10274
|
await client.request({
|
|
@@ -9204,7 +10282,7 @@ async function setCode(client, { address, bytecode }) {
|
|
|
9204
10282
|
});
|
|
9205
10283
|
}
|
|
9206
10284
|
|
|
9207
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10285
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setCoinbase.js
|
|
9208
10286
|
async function setCoinbase(client, { address }) {
|
|
9209
10287
|
await client.request({
|
|
9210
10288
|
method: `${client.mode}_setCoinbase`,
|
|
@@ -9212,7 +10290,7 @@ async function setCoinbase(client, { address }) {
|
|
|
9212
10290
|
});
|
|
9213
10291
|
}
|
|
9214
10292
|
|
|
9215
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10293
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setIntervalMining.js
|
|
9216
10294
|
async function setIntervalMining(client, { interval }) {
|
|
9217
10295
|
const interval_ = (() => {
|
|
9218
10296
|
if (client.mode === "hardhat")
|
|
@@ -9225,7 +10303,7 @@ async function setIntervalMining(client, { interval }) {
|
|
|
9225
10303
|
});
|
|
9226
10304
|
}
|
|
9227
10305
|
|
|
9228
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10306
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setLoggingEnabled.js
|
|
9229
10307
|
async function setLoggingEnabled(client, enabled) {
|
|
9230
10308
|
await client.request({
|
|
9231
10309
|
method: `${client.mode}_setLoggingEnabled`,
|
|
@@ -9233,7 +10311,7 @@ async function setLoggingEnabled(client, enabled) {
|
|
|
9233
10311
|
});
|
|
9234
10312
|
}
|
|
9235
10313
|
|
|
9236
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10314
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setMinGasPrice.js
|
|
9237
10315
|
async function setMinGasPrice(client, { gasPrice }) {
|
|
9238
10316
|
await client.request({
|
|
9239
10317
|
method: `${client.mode}_setMinGasPrice`,
|
|
@@ -9241,7 +10319,7 @@ async function setMinGasPrice(client, { gasPrice }) {
|
|
|
9241
10319
|
});
|
|
9242
10320
|
}
|
|
9243
10321
|
|
|
9244
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10322
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setNextBlockBaseFeePerGas.js
|
|
9245
10323
|
async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
|
|
9246
10324
|
await client.request({
|
|
9247
10325
|
method: `${client.mode}_setNextBlockBaseFeePerGas`,
|
|
@@ -9249,7 +10327,7 @@ async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
|
|
|
9249
10327
|
});
|
|
9250
10328
|
}
|
|
9251
10329
|
|
|
9252
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10330
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setNextBlockTimestamp.js
|
|
9253
10331
|
async function setNextBlockTimestamp(client, { timestamp }) {
|
|
9254
10332
|
await client.request({
|
|
9255
10333
|
method: "evm_setNextBlockTimestamp",
|
|
@@ -9257,7 +10335,7 @@ async function setNextBlockTimestamp(client, { timestamp }) {
|
|
|
9257
10335
|
});
|
|
9258
10336
|
}
|
|
9259
10337
|
|
|
9260
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10338
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setNonce.js
|
|
9261
10339
|
async function setNonce(client, { address, nonce }) {
|
|
9262
10340
|
await client.request({
|
|
9263
10341
|
method: `${client.mode}_setNonce`,
|
|
@@ -9265,7 +10343,7 @@ async function setNonce(client, { address, nonce }) {
|
|
|
9265
10343
|
});
|
|
9266
10344
|
}
|
|
9267
10345
|
|
|
9268
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10346
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setRpcUrl.js
|
|
9269
10347
|
async function setRpcUrl(client, jsonRpcUrl) {
|
|
9270
10348
|
await client.request({
|
|
9271
10349
|
method: `${client.mode}_setRpcUrl`,
|
|
@@ -9273,7 +10351,7 @@ async function setRpcUrl(client, jsonRpcUrl) {
|
|
|
9273
10351
|
});
|
|
9274
10352
|
}
|
|
9275
10353
|
|
|
9276
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10354
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/setStorageAt.js
|
|
9277
10355
|
async function setStorageAt(client, { address, index: index2, value }) {
|
|
9278
10356
|
await client.request({
|
|
9279
10357
|
method: `${client.mode}_setStorageAt`,
|
|
@@ -9285,14 +10363,14 @@ async function setStorageAt(client, { address, index: index2, value }) {
|
|
|
9285
10363
|
});
|
|
9286
10364
|
}
|
|
9287
10365
|
|
|
9288
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10366
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/snapshot.js
|
|
9289
10367
|
async function snapshot(client) {
|
|
9290
10368
|
return await client.request({
|
|
9291
10369
|
method: "evm_snapshot"
|
|
9292
10370
|
});
|
|
9293
10371
|
}
|
|
9294
10372
|
|
|
9295
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10373
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/test/stopImpersonatingAccount.js
|
|
9296
10374
|
async function stopImpersonatingAccount(client, { address }) {
|
|
9297
10375
|
await client.request({
|
|
9298
10376
|
method: `${client.mode}_stopImpersonatingAccount`,
|
|
@@ -9300,7 +10378,7 @@ async function stopImpersonatingAccount(client, { address }) {
|
|
|
9300
10378
|
});
|
|
9301
10379
|
}
|
|
9302
10380
|
|
|
9303
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10381
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/decorators/test.js
|
|
9304
10382
|
function testActions({ mode }) {
|
|
9305
10383
|
return (client_) => {
|
|
9306
10384
|
const client = client_.extend(() => ({
|
|
@@ -9341,7 +10419,7 @@ function testActions({ mode }) {
|
|
|
9341
10419
|
};
|
|
9342
10420
|
}
|
|
9343
10421
|
|
|
9344
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10422
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/createTestClient.js
|
|
9345
10423
|
function createTestClient(parameters) {
|
|
9346
10424
|
const { key = "test", name = "Test Client", mode } = parameters;
|
|
9347
10425
|
const client = createClient({
|
|
@@ -9356,7 +10434,7 @@ function createTestClient(parameters) {
|
|
|
9356
10434
|
}));
|
|
9357
10435
|
}
|
|
9358
10436
|
|
|
9359
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10437
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/addChain.js
|
|
9360
10438
|
async function addChain(client, { chain }) {
|
|
9361
10439
|
const { id, name, nativeCurrency, rpcUrls, blockExplorers } = chain;
|
|
9362
10440
|
await client.request({
|
|
@@ -9373,7 +10451,7 @@ async function addChain(client, { chain }) {
|
|
|
9373
10451
|
}, { dedupe: true, retryCount: 0 });
|
|
9374
10452
|
}
|
|
9375
10453
|
|
|
9376
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10454
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/deployContract.js
|
|
9377
10455
|
function deployContract(walletClient, parameters) {
|
|
9378
10456
|
const { abi: abi2, args, bytecode, ...request } = parameters;
|
|
9379
10457
|
const calldata = encodeDeployData({ abi: abi2, args, bytecode });
|
|
@@ -9384,7 +10462,7 @@ function deployContract(walletClient, parameters) {
|
|
|
9384
10462
|
});
|
|
9385
10463
|
}
|
|
9386
10464
|
|
|
9387
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10465
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/getAddresses.js
|
|
9388
10466
|
async function getAddresses(client) {
|
|
9389
10467
|
if (client.account?.type === "local")
|
|
9390
10468
|
return [client.account.address];
|
|
@@ -9392,7 +10470,7 @@ async function getAddresses(client) {
|
|
|
9392
10470
|
return addresses.map((address) => checksumAddress(address));
|
|
9393
10471
|
}
|
|
9394
10472
|
|
|
9395
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10473
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/getCapabilities.js
|
|
9396
10474
|
async function getCapabilities(client, parameters = {}) {
|
|
9397
10475
|
const { account = client.account, chainId } = parameters;
|
|
9398
10476
|
const account_ = account ? parseAccount(account) : void 0;
|
|
@@ -9413,13 +10491,13 @@ async function getCapabilities(client, parameters = {}) {
|
|
|
9413
10491
|
return typeof chainId === "number" ? capabilities[chainId] : capabilities;
|
|
9414
10492
|
}
|
|
9415
10493
|
|
|
9416
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10494
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/getPermissions.js
|
|
9417
10495
|
async function getPermissions(client) {
|
|
9418
10496
|
const permissions = await client.request({ method: "wallet_getPermissions" }, { dedupe: true });
|
|
9419
10497
|
return permissions;
|
|
9420
10498
|
}
|
|
9421
10499
|
|
|
9422
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10500
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/prepareAuthorization.js
|
|
9423
10501
|
async function prepareAuthorization(client, parameters) {
|
|
9424
10502
|
const { account: account_ = client.account, chainId, nonce } = parameters;
|
|
9425
10503
|
if (!account_)
|
|
@@ -9452,13 +10530,13 @@ async function prepareAuthorization(client, parameters) {
|
|
|
9452
10530
|
return authorization;
|
|
9453
10531
|
}
|
|
9454
10532
|
|
|
9455
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10533
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/requestAddresses.js
|
|
9456
10534
|
async function requestAddresses(client) {
|
|
9457
10535
|
const addresses = await client.request({ method: "eth_requestAccounts" }, { dedupe: true, retryCount: 0 });
|
|
9458
10536
|
return addresses.map((address) => getAddress(address));
|
|
9459
10537
|
}
|
|
9460
10538
|
|
|
9461
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10539
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/requestPermissions.js
|
|
9462
10540
|
async function requestPermissions(client, permissions) {
|
|
9463
10541
|
return client.request({
|
|
9464
10542
|
method: "wallet_requestPermissions",
|
|
@@ -9466,7 +10544,7 @@ async function requestPermissions(client, permissions) {
|
|
|
9466
10544
|
}, { retryCount: 0 });
|
|
9467
10545
|
}
|
|
9468
10546
|
|
|
9469
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10547
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/sendCallsSync.js
|
|
9470
10548
|
async function sendCallsSync(client, parameters) {
|
|
9471
10549
|
const { chain = client.chain } = parameters;
|
|
9472
10550
|
const timeout = parameters.timeout ?? Math.max((chain?.blockTime ?? 0) * 3, 5e3);
|
|
@@ -9479,7 +10557,7 @@ async function sendCallsSync(client, parameters) {
|
|
|
9479
10557
|
return status;
|
|
9480
10558
|
}
|
|
9481
10559
|
|
|
9482
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10560
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/showCallsStatus.js
|
|
9483
10561
|
async function showCallsStatus(client, parameters) {
|
|
9484
10562
|
const { id } = parameters;
|
|
9485
10563
|
await client.request({
|
|
@@ -9489,7 +10567,7 @@ async function showCallsStatus(client, parameters) {
|
|
|
9489
10567
|
return;
|
|
9490
10568
|
}
|
|
9491
10569
|
|
|
9492
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10570
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/signAuthorization.js
|
|
9493
10571
|
async function signAuthorization(client, parameters) {
|
|
9494
10572
|
const { account: account_ = client.account } = parameters;
|
|
9495
10573
|
if (!account_)
|
|
@@ -9509,7 +10587,7 @@ async function signAuthorization(client, parameters) {
|
|
|
9509
10587
|
return account.signAuthorization(authorization);
|
|
9510
10588
|
}
|
|
9511
10589
|
|
|
9512
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10590
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/signMessage.js
|
|
9513
10591
|
async function signMessage(client, { account: account_ = client.account, message }) {
|
|
9514
10592
|
if (!account_)
|
|
9515
10593
|
throw new AccountNotFoundError({
|
|
@@ -9531,7 +10609,7 @@ async function signMessage(client, { account: account_ = client.account, message
|
|
|
9531
10609
|
}, { retryCount: 0 });
|
|
9532
10610
|
}
|
|
9533
10611
|
|
|
9534
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10612
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/signTransaction.js
|
|
9535
10613
|
async function signTransaction(client, parameters) {
|
|
9536
10614
|
const { account: account_ = client.account, chain = client.chain, ...transaction } = parameters;
|
|
9537
10615
|
if (!account_)
|
|
@@ -9572,7 +10650,7 @@ async function signTransaction(client, parameters) {
|
|
|
9572
10650
|
}, { retryCount: 0 });
|
|
9573
10651
|
}
|
|
9574
10652
|
|
|
9575
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10653
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/signTypedData.js
|
|
9576
10654
|
async function signTypedData(client, parameters) {
|
|
9577
10655
|
const { account: account_ = client.account, domain, message, primaryType } = parameters;
|
|
9578
10656
|
if (!account_)
|
|
@@ -9594,7 +10672,7 @@ async function signTypedData(client, parameters) {
|
|
|
9594
10672
|
}, { retryCount: 0 });
|
|
9595
10673
|
}
|
|
9596
10674
|
|
|
9597
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10675
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/switchChain.js
|
|
9598
10676
|
async function switchChain(client, { id }) {
|
|
9599
10677
|
await client.request({
|
|
9600
10678
|
method: "wallet_switchEthereumChain",
|
|
@@ -9606,7 +10684,7 @@ async function switchChain(client, { id }) {
|
|
|
9606
10684
|
}, { retryCount: 0 });
|
|
9607
10685
|
}
|
|
9608
10686
|
|
|
9609
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10687
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/actions/wallet/watchAsset.js
|
|
9610
10688
|
async function watchAsset(client, params) {
|
|
9611
10689
|
const added = await client.request({
|
|
9612
10690
|
method: "wallet_watchAsset",
|
|
@@ -9615,7 +10693,7 @@ async function watchAsset(client, params) {
|
|
|
9615
10693
|
return added;
|
|
9616
10694
|
}
|
|
9617
10695
|
|
|
9618
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10696
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/decorators/wallet.js
|
|
9619
10697
|
function walletActions(client) {
|
|
9620
10698
|
return {
|
|
9621
10699
|
addChain: (args) => addChain(client, args),
|
|
@@ -9655,7 +10733,7 @@ function walletActions(client) {
|
|
|
9655
10733
|
};
|
|
9656
10734
|
}
|
|
9657
10735
|
|
|
9658
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10736
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/createWalletClient.js
|
|
9659
10737
|
function createWalletClient(parameters) {
|
|
9660
10738
|
const { key = "wallet", name = "Wallet Client", transport } = parameters;
|
|
9661
10739
|
const client = createClient({
|
|
@@ -9668,7 +10746,7 @@ function createWalletClient(parameters) {
|
|
|
9668
10746
|
return client.extend(walletActions);
|
|
9669
10747
|
}
|
|
9670
10748
|
|
|
9671
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10749
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/transports/createTransport.js
|
|
9672
10750
|
function createTransport({ key, methods, name, request, retryCount = 3, retryDelay = 150, timeout, type }, value) {
|
|
9673
10751
|
const uid2 = uid();
|
|
9674
10752
|
return {
|
|
@@ -9687,7 +10765,7 @@ function createTransport({ key, methods, name, request, retryCount = 3, retryDel
|
|
|
9687
10765
|
};
|
|
9688
10766
|
}
|
|
9689
10767
|
|
|
9690
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10768
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/transports/custom.js
|
|
9691
10769
|
function custom(provider, config = {}) {
|
|
9692
10770
|
const { key = "custom", methods, name = "Custom Provider", retryDelay } = config;
|
|
9693
10771
|
return ({ retryCount: defaultRetryCount }) => createTransport({
|
|
@@ -9701,7 +10779,7 @@ function custom(provider, config = {}) {
|
|
|
9701
10779
|
});
|
|
9702
10780
|
}
|
|
9703
10781
|
|
|
9704
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10782
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/transports/fallback.js
|
|
9705
10783
|
function fallback(transports_, config = {}) {
|
|
9706
10784
|
const { key = "fallback", name = "Fallback", rank = false, shouldThrow: shouldThrow_ = shouldThrow, retryCount, retryDelay } = config;
|
|
9707
10785
|
return (({ chain, pollingInterval = 4e3, timeout, ...rest }) => {
|
|
@@ -9834,7 +10912,7 @@ function rankTransports({ chain, interval = 4e3, onTransports, ping, sampleCount
|
|
|
9834
10912
|
rankTransports_();
|
|
9835
10913
|
}
|
|
9836
10914
|
|
|
9837
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10915
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/errors/transport.js
|
|
9838
10916
|
var UrlRequiredError = class extends BaseError {
|
|
9839
10917
|
constructor() {
|
|
9840
10918
|
super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.", {
|
|
@@ -9844,7 +10922,7 @@ var UrlRequiredError = class extends BaseError {
|
|
|
9844
10922
|
}
|
|
9845
10923
|
};
|
|
9846
10924
|
|
|
9847
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
10925
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/transports/http.js
|
|
9848
10926
|
var signalId = 0;
|
|
9849
10927
|
var signalIds = /* @__PURE__ */ new WeakMap();
|
|
9850
10928
|
function getSignalId(signal) {
|
|
@@ -9921,7 +10999,7 @@ function http(url, config = {}) {
|
|
|
9921
10999
|
};
|
|
9922
11000
|
}
|
|
9923
11001
|
|
|
9924
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11002
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/clients/transports/webSocket.js
|
|
9925
11003
|
function webSocket(url, config = {}) {
|
|
9926
11004
|
const { keepAlive, key = "webSocket", methods, name = "WebSocket JSON-RPC", reconnect, retryDelay } = config;
|
|
9927
11005
|
return ({ chain, retryCount: retryCount_, timeout: timeout_ }) => {
|
|
@@ -10005,7 +11083,7 @@ function webSocket(url, config = {}) {
|
|
|
10005
11083
|
};
|
|
10006
11084
|
}
|
|
10007
11085
|
|
|
10008
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11086
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/types/eip1193.js
|
|
10009
11087
|
var ProviderRpcError = class extends Error {
|
|
10010
11088
|
constructor(code, message) {
|
|
10011
11089
|
super(message);
|
|
@@ -10026,7 +11104,7 @@ var ProviderRpcError = class extends Error {
|
|
|
10026
11104
|
}
|
|
10027
11105
|
};
|
|
10028
11106
|
|
|
10029
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11107
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/abi/decodeDeployData.js
|
|
10030
11108
|
var docsPath3 = "/docs/contract/decodeDeployData";
|
|
10031
11109
|
function decodeDeployData(parameters) {
|
|
10032
11110
|
const { abi: abi2, bytecode, data } = parameters;
|
|
@@ -10043,7 +11121,7 @@ function decodeDeployData(parameters) {
|
|
|
10043
11121
|
return { args, bytecode };
|
|
10044
11122
|
}
|
|
10045
11123
|
|
|
10046
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11124
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/fromBlobs.js
|
|
10047
11125
|
function fromBlobs(parameters) {
|
|
10048
11126
|
const to = parameters.to ?? (typeof parameters.blobs[0] === "string" ? "hex" : "bytes");
|
|
10049
11127
|
const blobs = typeof parameters.blobs[0] === "string" ? parameters.blobs.map((x) => hexToBytes(x)) : parameters.blobs;
|
|
@@ -10072,7 +11150,7 @@ function fromBlobs(parameters) {
|
|
|
10072
11150
|
return to === "hex" ? bytesToHex(trimmedData) : trimmedData;
|
|
10073
11151
|
}
|
|
10074
11152
|
|
|
10075
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11153
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/blob/sidecarsToVersionedHashes.js
|
|
10076
11154
|
function sidecarsToVersionedHashes(parameters) {
|
|
10077
11155
|
const { sidecars, version } = parameters;
|
|
10078
11156
|
const to = parameters.to ?? (typeof sidecars[0].blob === "string" ? "hex" : "bytes");
|
|
@@ -10087,7 +11165,7 @@ function sidecarsToVersionedHashes(parameters) {
|
|
|
10087
11165
|
return hashes;
|
|
10088
11166
|
}
|
|
10089
11167
|
|
|
10090
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11168
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/ens/toCoinType.js
|
|
10091
11169
|
var SLIP44_MSB = 2147483648;
|
|
10092
11170
|
function toCoinType(chainId) {
|
|
10093
11171
|
if (chainId === 1)
|
|
@@ -10097,7 +11175,7 @@ function toCoinType(chainId) {
|
|
|
10097
11175
|
return BigInt((2147483648 | chainId) >>> 0);
|
|
10098
11176
|
}
|
|
10099
11177
|
|
|
10100
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11178
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/kzg/defineKzg.js
|
|
10101
11179
|
function defineKzg({ blobToKzgCommitment, computeBlobKzgProof }) {
|
|
10102
11180
|
return {
|
|
10103
11181
|
blobToKzgCommitment,
|
|
@@ -10105,7 +11183,7 @@ function defineKzg({ blobToKzgCommitment, computeBlobKzgProof }) {
|
|
|
10105
11183
|
};
|
|
10106
11184
|
}
|
|
10107
11185
|
|
|
10108
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11186
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/kzg/setupKzg.js
|
|
10109
11187
|
function setupKzg(parameters, path) {
|
|
10110
11188
|
try {
|
|
10111
11189
|
parameters.loadTrustedSetup(path);
|
|
@@ -10117,7 +11195,7 @@ function setupKzg(parameters, path) {
|
|
|
10117
11195
|
return defineKzg(parameters);
|
|
10118
11196
|
}
|
|
10119
11197
|
|
|
10120
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11198
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/compactSignatureToSignature.js
|
|
10121
11199
|
function compactSignatureToSignature({ r, yParityAndS }) {
|
|
10122
11200
|
const yParityAndS_bytes = hexToBytes(yParityAndS);
|
|
10123
11201
|
const yParity = yParityAndS_bytes[0] & 128 ? 1 : 0;
|
|
@@ -10127,7 +11205,7 @@ function compactSignatureToSignature({ r, yParityAndS }) {
|
|
|
10127
11205
|
return { r, s: bytesToHex(s), yParity };
|
|
10128
11206
|
}
|
|
10129
11207
|
|
|
10130
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11208
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/parseCompactSignature.js
|
|
10131
11209
|
function parseCompactSignature(signatureHex) {
|
|
10132
11210
|
const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
|
|
10133
11211
|
return {
|
|
@@ -10136,7 +11214,7 @@ function parseCompactSignature(signatureHex) {
|
|
|
10136
11214
|
};
|
|
10137
11215
|
}
|
|
10138
11216
|
|
|
10139
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11217
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/parseSignature.js
|
|
10140
11218
|
function parseSignature(signatureHex) {
|
|
10141
11219
|
const { r, s } = secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
|
|
10142
11220
|
const yParityOrV = Number(`0x${signatureHex.slice(130)}`);
|
|
@@ -10163,7 +11241,7 @@ function parseSignature(signatureHex) {
|
|
|
10163
11241
|
};
|
|
10164
11242
|
}
|
|
10165
11243
|
|
|
10166
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11244
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/recoverTransactionAddress.js
|
|
10167
11245
|
async function recoverTransactionAddress(parameters) {
|
|
10168
11246
|
const { serializedTransaction, signature: signature_ } = parameters;
|
|
10169
11247
|
const transaction = parseTransaction(serializedTransaction);
|
|
@@ -10187,12 +11265,12 @@ async function recoverTransactionAddress(parameters) {
|
|
|
10187
11265
|
});
|
|
10188
11266
|
}
|
|
10189
11267
|
|
|
10190
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11268
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/serializeCompactSignature.js
|
|
10191
11269
|
function serializeCompactSignature({ r, yParityAndS }) {
|
|
10192
11270
|
return `0x${new secp256k1.Signature(hexToBigInt(r), hexToBigInt(yParityAndS)).toCompactHex()}`;
|
|
10193
11271
|
}
|
|
10194
11272
|
|
|
10195
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.
|
|
11273
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.6.7/node_modules/viem/_esm/utils/signature/signatureToCompactSignature.js
|
|
10196
11274
|
function signatureToCompactSignature(signature) {
|
|
10197
11275
|
const { r, s, v, yParity } = signature;
|
|
10198
11276
|
const yParity_ = Number(yParity ?? v - 27n);
|
|
@@ -10206,6 +11284,41 @@ function signatureToCompactSignature(signature) {
|
|
|
10206
11284
|
}
|
|
10207
11285
|
|
|
10208
11286
|
export {
|
|
11287
|
+
createNonceManager,
|
|
11288
|
+
nonceManager,
|
|
11289
|
+
serializeSignature,
|
|
11290
|
+
publicKeyToAddress,
|
|
11291
|
+
toRlp,
|
|
11292
|
+
bytesToRlp,
|
|
11293
|
+
hexToRlp,
|
|
11294
|
+
hashAuthorization,
|
|
11295
|
+
presignMessagePrefix,
|
|
11296
|
+
toPrefixedMessage,
|
|
11297
|
+
hashMessage,
|
|
11298
|
+
blobsToCommitments,
|
|
11299
|
+
blobsToProofs,
|
|
11300
|
+
sha2563 as sha256,
|
|
11301
|
+
commitmentToVersionedHash,
|
|
11302
|
+
commitmentsToVersionedHashes,
|
|
11303
|
+
toBlobs,
|
|
11304
|
+
toBlobSidecars,
|
|
11305
|
+
assertTransactionEIP1559,
|
|
11306
|
+
assertTransactionEIP2930,
|
|
11307
|
+
assertTransactionLegacy,
|
|
11308
|
+
getTransactionType,
|
|
11309
|
+
serializeAccessList,
|
|
11310
|
+
serializeTransaction,
|
|
11311
|
+
InvalidDomainError,
|
|
11312
|
+
InvalidPrimaryTypeError,
|
|
11313
|
+
InvalidStructTypeError,
|
|
11314
|
+
serializeTypedData,
|
|
11315
|
+
validateTypedData,
|
|
11316
|
+
getTypesForEIP712Domain,
|
|
11317
|
+
domainSeparator,
|
|
11318
|
+
hashTypedData,
|
|
11319
|
+
hashDomain,
|
|
11320
|
+
hashStruct,
|
|
11321
|
+
keccak2562 as keccak256,
|
|
10209
11322
|
FilterTypeNotSupportedError,
|
|
10210
11323
|
encodeEventTopics,
|
|
10211
11324
|
getContractError,
|
|
@@ -10251,7 +11364,7 @@ export {
|
|
|
10251
11364
|
extractChain,
|
|
10252
11365
|
fromRlp,
|
|
10253
11366
|
isHash,
|
|
10254
|
-
|
|
11367
|
+
ripemd1603 as ripemd160,
|
|
10255
11368
|
withTimeout,
|
|
10256
11369
|
zeroHash,
|
|
10257
11370
|
isErc6492Signature,
|
|
@@ -10300,4 +11413,4 @@ export {
|
|
|
10300
11413
|
serializeCompactSignature,
|
|
10301
11414
|
signatureToCompactSignature
|
|
10302
11415
|
};
|
|
10303
|
-
//# sourceMappingURL=chunk-
|
|
11416
|
+
//# sourceMappingURL=chunk-WFSPCCVW.js.map
|