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,10 +1,4 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
|
-
import {
|
|
3
|
-
promptYesNo
|
|
4
|
-
} from "./chunk-LHHMV4GU.js";
|
|
5
|
-
import {
|
|
6
|
-
assertPublicDestination
|
|
7
|
-
} from "./chunk-JKKAIPTU.js";
|
|
8
2
|
import {
|
|
9
3
|
ADDITIVE_ARRAY_INFO_FIELDS,
|
|
10
4
|
HTTPFacilitatorClient,
|
|
@@ -23,7 +17,16 @@ import {
|
|
|
23
17
|
toComparableArray,
|
|
24
18
|
x402HTTPClient,
|
|
25
19
|
x402Version
|
|
26
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JNJWBTU2.js";
|
|
21
|
+
import {
|
|
22
|
+
promptYesNo
|
|
23
|
+
} from "./chunk-LHHMV4GU.js";
|
|
24
|
+
import {
|
|
25
|
+
assertPublicDestination
|
|
26
|
+
} from "./chunk-JKKAIPTU.js";
|
|
27
|
+
import {
|
|
28
|
+
USDC_ADDRESS
|
|
29
|
+
} from "./chunk-TC2WZLSC.js";
|
|
27
30
|
import {
|
|
28
31
|
BATCH_SETTLEMENT_ADDRESS,
|
|
29
32
|
BATCH_SETTLEMENT_SCHEME,
|
|
@@ -43,76 +46,71 @@ import {
|
|
|
43
46
|
normalizeChannelId,
|
|
44
47
|
receiveAuthorizationTypes,
|
|
45
48
|
voucherTypes
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
createPublicClient,
|
|
49
|
-
http,
|
|
50
|
-
recoverTypedDataAddress
|
|
51
|
-
} from "./chunk-BL3332HQ.js";
|
|
49
|
+
} from "./chunk-IE7P2BZE.js";
|
|
52
50
|
import {
|
|
53
51
|
describeWallet,
|
|
54
52
|
resolveSpendAuthorizer,
|
|
55
53
|
resolveWalletProvider
|
|
56
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UXZONNEQ.js";
|
|
57
55
|
import {
|
|
58
56
|
readSpendSummary,
|
|
59
57
|
spentOf
|
|
60
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-SO3XRZPX.js";
|
|
61
59
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
60
|
+
sanitizeForTerminal
|
|
61
|
+
} from "./chunk-FVIGCDSV.js";
|
|
62
|
+
import {
|
|
63
|
+
evaluatePlan
|
|
64
|
+
} from "./chunk-2SNUOHAT.js";
|
|
65
|
+
import {
|
|
66
|
+
withFileLock
|
|
67
|
+
} from "./chunk-MEFB5KHA.js";
|
|
68
|
+
import {
|
|
69
|
+
fetchFailureToCliError,
|
|
70
|
+
httpRequest,
|
|
71
|
+
requestHeaderProblem
|
|
72
|
+
} from "./chunk-36RVGZNY.js";
|
|
64
73
|
import {
|
|
65
|
-
|
|
66
|
-
|
|
74
|
+
createPublicClient,
|
|
75
|
+
http,
|
|
76
|
+
recoverTypedDataAddress
|
|
77
|
+
} from "./chunk-WFSPCCVW.js";
|
|
67
78
|
import {
|
|
68
79
|
encodeAbiParameters,
|
|
69
80
|
encodeFunctionData,
|
|
70
|
-
getAddress
|
|
81
|
+
getAddress,
|
|
71
82
|
keccak256,
|
|
72
83
|
maxUint256,
|
|
73
84
|
toBytes
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import {
|
|
76
|
-
withFileLock
|
|
77
|
-
} from "./chunk-MEFB5KHA.js";
|
|
78
|
-
import {
|
|
79
|
-
evaluatePlan
|
|
80
|
-
} from "./chunk-2SNUOHAT.js";
|
|
81
|
-
import {
|
|
82
|
-
sanitizeForTerminal
|
|
83
|
-
} from "./chunk-K72RURN3.js";
|
|
85
|
+
} from "./chunk-2GP3HRYK.js";
|
|
84
86
|
import {
|
|
85
87
|
mask
|
|
86
|
-
} from "./chunk-
|
|
87
|
-
import {
|
|
88
|
-
fetchFailureToCliError,
|
|
89
|
-
httpRequest
|
|
90
|
-
} from "./chunk-AGZ7PJKY.js";
|
|
88
|
+
} from "./chunk-IADZOXKN.js";
|
|
91
89
|
import {
|
|
92
90
|
resolveContextSettings
|
|
93
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-KM7RY2ZS.js";
|
|
94
92
|
import {
|
|
95
93
|
parseUsdToAtomic,
|
|
96
94
|
toMoney
|
|
97
95
|
} from "./chunk-Y527D4TV.js";
|
|
98
96
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./chunk-
|
|
97
|
+
readUsdcBalanceWithFallback
|
|
98
|
+
} from "./chunk-WXA2BWTE.js";
|
|
101
99
|
import {
|
|
102
100
|
isSameDeployment
|
|
103
101
|
} from "./chunk-XQJXNMSB.js";
|
|
104
102
|
import {
|
|
105
|
-
|
|
106
|
-
} from "./chunk-
|
|
107
|
-
import {
|
|
108
|
-
readUsdcBalanceWithFallback
|
|
109
|
-
} from "./chunk-27EPWVOY.js";
|
|
103
|
+
external_exports
|
|
104
|
+
} from "./chunk-SNNSAGMT.js";
|
|
110
105
|
import {
|
|
111
106
|
writeFileAtomic
|
|
112
107
|
} from "./chunk-7WEQQJLG.js";
|
|
108
|
+
import {
|
|
109
|
+
CliError
|
|
110
|
+
} from "./chunk-3UCIG4TG.js";
|
|
113
111
|
import {
|
|
114
112
|
quotesDir
|
|
115
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-OJNTCYQQ.js";
|
|
116
114
|
import {
|
|
117
115
|
__commonJS,
|
|
118
116
|
__toESM
|
|
@@ -3188,9 +3186,9 @@ var require_data = __commonJS({
|
|
|
3188
3186
|
}
|
|
3189
3187
|
});
|
|
3190
3188
|
|
|
3191
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3189
|
+
// node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js
|
|
3192
3190
|
var require_utils = __commonJS({
|
|
3193
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3191
|
+
"node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3194
3192
|
"use strict";
|
|
3195
3193
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3196
3194
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
@@ -3422,6 +3420,37 @@ var require_utils = __commonJS({
|
|
|
3422
3420
|
}
|
|
3423
3421
|
return output.join("");
|
|
3424
3422
|
}
|
|
3423
|
+
function removeDotSegmentsRelative(path) {
|
|
3424
|
+
if (path === "" || path[0] === "/") {
|
|
3425
|
+
return removeDotSegments(path);
|
|
3426
|
+
}
|
|
3427
|
+
const segments = path.split("/");
|
|
3428
|
+
const last = segments.length - 1;
|
|
3429
|
+
const output = [];
|
|
3430
|
+
let trailingDirectory = false;
|
|
3431
|
+
for (let i = 0; i <= last; i++) {
|
|
3432
|
+
const segment = segments[i];
|
|
3433
|
+
if (segment === "." || segment === "..") {
|
|
3434
|
+
if (segment === "..") {
|
|
3435
|
+
if (output.length !== 0 && output[output.length - 1] !== "..") {
|
|
3436
|
+
output.pop();
|
|
3437
|
+
} else {
|
|
3438
|
+
output.push("..");
|
|
3439
|
+
}
|
|
3440
|
+
}
|
|
3441
|
+
trailingDirectory = i === last;
|
|
3442
|
+
} else {
|
|
3443
|
+
output.push(segment);
|
|
3444
|
+
}
|
|
3445
|
+
}
|
|
3446
|
+
if (trailingDirectory && output[output.length - 1] !== "..") {
|
|
3447
|
+
output.push("");
|
|
3448
|
+
}
|
|
3449
|
+
if (output.length === 0 || output[0] === "" || output[0].includes(":")) {
|
|
3450
|
+
output.unshift(".");
|
|
3451
|
+
}
|
|
3452
|
+
return output.join("/");
|
|
3453
|
+
}
|
|
3425
3454
|
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3426
3455
|
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3427
3456
|
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
@@ -3682,6 +3711,7 @@ var require_utils = __commonJS({
|
|
|
3682
3711
|
encodeFragment,
|
|
3683
3712
|
escapePreservingEscapes,
|
|
3684
3713
|
removeDotSegments,
|
|
3714
|
+
removeDotSegmentsRelative,
|
|
3685
3715
|
isIPv4,
|
|
3686
3716
|
isUUID,
|
|
3687
3717
|
normalizeIPv6,
|
|
@@ -3690,9 +3720,9 @@ var require_utils = __commonJS({
|
|
|
3690
3720
|
}
|
|
3691
3721
|
});
|
|
3692
3722
|
|
|
3693
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3723
|
+
// node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js
|
|
3694
3724
|
var require_schemes = __commonJS({
|
|
3695
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3725
|
+
"node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3696
3726
|
"use strict";
|
|
3697
3727
|
var { isUUID } = require_utils();
|
|
3698
3728
|
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
@@ -3901,20 +3931,22 @@ var require_schemes = __commonJS({
|
|
|
3901
3931
|
}
|
|
3902
3932
|
});
|
|
3903
3933
|
|
|
3904
|
-
// node_modules/.pnpm/fast-uri@3.1.
|
|
3934
|
+
// node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/index.js
|
|
3905
3935
|
var require_fast_uri = __commonJS({
|
|
3906
|
-
"node_modules/.pnpm/fast-uri@3.1.
|
|
3936
|
+
"node_modules/.pnpm/fast-uri@3.1.9/node_modules/fast-uri/index.js"(exports, module) {
|
|
3907
3937
|
"use strict";
|
|
3908
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3938
|
+
var { normalizeIPv6, removeDotSegments, removeDotSegmentsRelative, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3909
3939
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3910
3940
|
var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
3911
3941
|
var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3942
|
+
var MALFORMED_HOST_ERROR = "URI host is malformed.";
|
|
3943
|
+
var FORBIDDEN_DOMAIN_HOST_CHARACTER = /[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;
|
|
3944
|
+
function validateScheme(scheme) {
|
|
3945
|
+
const stringScheme = String(scheme);
|
|
3946
|
+
if (!VALID_SCHEME.test(stringScheme)) {
|
|
3915
3947
|
throw new TypeError(MALFORMED_SCHEME_ERROR);
|
|
3916
3948
|
}
|
|
3917
|
-
return
|
|
3949
|
+
return stringScheme;
|
|
3918
3950
|
}
|
|
3919
3951
|
function normalize(uri, options) {
|
|
3920
3952
|
if (typeof uri === "string") {
|
|
@@ -3951,6 +3983,9 @@ var require_fast_uri = __commonJS({
|
|
|
3951
3983
|
const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
|
|
3952
3984
|
const resolvedHost = resolved.host;
|
|
3953
3985
|
const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
3986
|
+
if (hasForbiddenDomainHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP)) {
|
|
3987
|
+
throw new Error(MALFORMED_HOST_ERROR);
|
|
3988
|
+
}
|
|
3954
3989
|
canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
3955
3990
|
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(resolvedHost);
|
|
3956
3991
|
if (resolved.error && !encodedASCIIHost) {
|
|
@@ -3992,14 +4027,15 @@ var require_fast_uri = __commonJS({
|
|
|
3992
4027
|
if (relative.path[0] === "/") {
|
|
3993
4028
|
target.path = removeDotSegments(relative.path);
|
|
3994
4029
|
} else {
|
|
3995
|
-
|
|
4030
|
+
const baseHasAuthority = base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0;
|
|
4031
|
+
if (baseHasAuthority && !base.path) {
|
|
3996
4032
|
target.path = "/" + relative.path;
|
|
3997
4033
|
} else if (!base.path) {
|
|
3998
4034
|
target.path = relative.path;
|
|
3999
4035
|
} else {
|
|
4000
4036
|
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
4001
4037
|
}
|
|
4002
|
-
target.path = removeDotSegments(target.path);
|
|
4038
|
+
target.path = base.scheme === void 0 && !baseHasAuthority && target.path[0] !== "/" ? removeDotSegmentsRelative(target.path) : removeDotSegments(target.path);
|
|
4003
4039
|
}
|
|
4004
4040
|
target.query = relative.query;
|
|
4005
4041
|
}
|
|
@@ -4037,12 +4073,13 @@ var require_fast_uri = __commonJS({
|
|
|
4037
4073
|
const options = Object.assign({}, opts);
|
|
4038
4074
|
const uriTokens = [];
|
|
4039
4075
|
if (component.scheme) {
|
|
4040
|
-
component.scheme =
|
|
4076
|
+
component.scheme = validateScheme(component.scheme);
|
|
4041
4077
|
}
|
|
4042
4078
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
4043
4079
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
4044
4080
|
const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
|
|
4045
|
-
const
|
|
4081
|
+
const schemelessReference = (component.scheme === void 0 || options.reference === "suffix") && !hasAuthority;
|
|
4082
|
+
const pathNoScheme = !options.skipEscape && schemelessReference;
|
|
4046
4083
|
if (component.path !== void 0) {
|
|
4047
4084
|
if (!options.skipEscape) {
|
|
4048
4085
|
component.path = serializePathEncoding(component.path, pathNoScheme);
|
|
@@ -4051,7 +4088,7 @@ var require_fast_uri = __commonJS({
|
|
|
4051
4088
|
}
|
|
4052
4089
|
}
|
|
4053
4090
|
if (options.reference !== "suffix" && component.scheme) {
|
|
4054
|
-
component.scheme =
|
|
4091
|
+
component.scheme = validateScheme(component.scheme);
|
|
4055
4092
|
uriTokens.push(component.scheme, ":");
|
|
4056
4093
|
}
|
|
4057
4094
|
const authority = recomposeAuthority(component);
|
|
@@ -4067,9 +4104,9 @@ var require_fast_uri = __commonJS({
|
|
|
4067
4104
|
if (component.path !== void 0) {
|
|
4068
4105
|
let s = component.path;
|
|
4069
4106
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
4070
|
-
s = removeDotSegments(s);
|
|
4107
|
+
s = schemelessReference && s[0] !== "/" ? removeDotSegmentsRelative(s) : removeDotSegments(s);
|
|
4071
4108
|
}
|
|
4072
|
-
if (
|
|
4109
|
+
if (schemelessReference) {
|
|
4073
4110
|
s = serializePathEncoding(s, true);
|
|
4074
4111
|
}
|
|
4075
4112
|
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
@@ -4116,16 +4153,34 @@ var require_fast_uri = __commonJS({
|
|
|
4116
4153
|
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4117
4154
|
}
|
|
4118
4155
|
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4156
|
+
if (hasForbiddenDomainHost(parsed, options, schemeHandler, isIP)) {
|
|
4157
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4158
|
+
return true;
|
|
4159
|
+
}
|
|
4119
4160
|
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4161
|
+
let url;
|
|
4120
4162
|
try {
|
|
4121
|
-
|
|
4163
|
+
url = new URL("http://" + parsed.host);
|
|
4122
4164
|
} catch (e) {
|
|
4123
4165
|
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
4124
4166
|
return true;
|
|
4125
4167
|
}
|
|
4168
|
+
if (!isHostOnlyURL(url)) {
|
|
4169
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4170
|
+
return true;
|
|
4171
|
+
}
|
|
4172
|
+
parsed.host = url.hostname;
|
|
4126
4173
|
}
|
|
4127
4174
|
return false;
|
|
4128
4175
|
}
|
|
4176
|
+
function hasForbiddenDomainHost(parsed, options, schemeHandler, isIP) {
|
|
4177
|
+
return Boolean(
|
|
4178
|
+
parsed.host && isIP === false && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && FORBIDDEN_DOMAIN_HOST_CHARACTER.test(parsed.host)
|
|
4179
|
+
);
|
|
4180
|
+
}
|
|
4181
|
+
function isHostOnlyURL(url) {
|
|
4182
|
+
return url.username === "" && url.password === "" && url.port === "" && url.pathname === "/" && url.search === "" && url.hash === "" && url.hostname !== "";
|
|
4183
|
+
}
|
|
4129
4184
|
function parseWithStatus(uri, opts) {
|
|
4130
4185
|
const options = Object.assign({}, opts);
|
|
4131
4186
|
const parsed = {
|
|
@@ -4180,9 +4235,8 @@ var require_fast_uri = __commonJS({
|
|
|
4180
4235
|
parsed.query = matches[7];
|
|
4181
4236
|
parsed.fragment = matches[8];
|
|
4182
4237
|
if (parsed.scheme !== void 0) {
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
parsed.scheme = decodedScheme.toLowerCase();
|
|
4238
|
+
if (VALID_SCHEME.test(parsed.scheme)) {
|
|
4239
|
+
parsed.scheme = parsed.scheme.toLowerCase();
|
|
4186
4240
|
} else {
|
|
4187
4241
|
parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
|
|
4188
4242
|
malformedScheme = true;
|
|
@@ -4210,7 +4264,7 @@ var require_fast_uri = __commonJS({
|
|
|
4210
4264
|
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4211
4265
|
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4212
4266
|
if (malformedIPLiteral) {
|
|
4213
|
-
parsed.error = parsed.error ||
|
|
4267
|
+
parsed.error = parsed.error || MALFORMED_HOST_ERROR;
|
|
4214
4268
|
malformedAuthorityOrPort = true;
|
|
4215
4269
|
}
|
|
4216
4270
|
} else {
|
|
@@ -4238,7 +4292,7 @@ var require_fast_uri = __commonJS({
|
|
|
4238
4292
|
if (!isIP) {
|
|
4239
4293
|
host = normalizePercentEncoding(host.toLowerCase());
|
|
4240
4294
|
}
|
|
4241
|
-
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
4295
|
+
parsed.host = isIP || options.scheme !== "null" ? reescapeHostDelimiters(host, isIP) : host;
|
|
4242
4296
|
}
|
|
4243
4297
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
4244
4298
|
if (parsed.path) {
|
|
@@ -8443,6 +8497,8 @@ async function ultravioletListings(registry, timeoutMs, query) {
|
|
|
8443
8497
|
function client(registry) {
|
|
8444
8498
|
return withBazaar(new HTTPFacilitatorClient({ url: registry }));
|
|
8445
8499
|
}
|
|
8500
|
+
var DeadlineError = class extends Error {
|
|
8501
|
+
};
|
|
8446
8502
|
async function withTimeout(work, timeoutMs, what) {
|
|
8447
8503
|
let timer;
|
|
8448
8504
|
try {
|
|
@@ -8450,7 +8506,7 @@ async function withTimeout(work, timeoutMs, what) {
|
|
|
8450
8506
|
work,
|
|
8451
8507
|
new Promise((_, reject) => {
|
|
8452
8508
|
timer = setTimeout(
|
|
8453
|
-
() => reject(new
|
|
8509
|
+
() => reject(new DeadlineError(`${what} timed out after ${timeoutMs}ms`)),
|
|
8454
8510
|
timeoutMs
|
|
8455
8511
|
);
|
|
8456
8512
|
})
|
|
@@ -8577,6 +8633,9 @@ async function verifyAgainstRegistries(registries, url, live, timeoutMs, opts =
|
|
|
8577
8633
|
}
|
|
8578
8634
|
} catch (err) {
|
|
8579
8635
|
errors.push({ registry, message: err instanceof Error ? err.message : String(err) });
|
|
8636
|
+
if (err instanceof DeadlineError || err instanceof Error && err.name === "TimeoutError") {
|
|
8637
|
+
break;
|
|
8638
|
+
}
|
|
8580
8639
|
}
|
|
8581
8640
|
}
|
|
8582
8641
|
if (mismatch !== void 0) return { outcome: "mismatch", ...mismatch };
|
|
@@ -10445,7 +10504,7 @@ var ERC20_APPROVAL_GAS_SPONSORING_KEY = "erc20ApprovalGasSponsoring";
|
|
|
10445
10504
|
var ERC20_APPROVAL_GAS_SPONSORING_VERSION = "1";
|
|
10446
10505
|
async function signEip2612Permit(signer, tokenAddress, tokenName, tokenVersion, chainId, deadline, permittedAmount) {
|
|
10447
10506
|
const owner = signer.address;
|
|
10448
|
-
const spender =
|
|
10507
|
+
const spender = getAddress(PERMIT2_ADDRESS);
|
|
10449
10508
|
const nonce = await signer.readContract({
|
|
10450
10509
|
address: tokenAddress,
|
|
10451
10510
|
abi: eip2612NoncesAbi,
|
|
@@ -10485,7 +10544,7 @@ async function signEip2612Permit(signer, tokenAddress, tokenName, tokenVersion,
|
|
|
10485
10544
|
}
|
|
10486
10545
|
async function signErc20ApprovalTransaction(signer, tokenAddress, chainId) {
|
|
10487
10546
|
const from = signer.address;
|
|
10488
|
-
const spender =
|
|
10547
|
+
const spender = getAddress(PERMIT2_ADDRESS);
|
|
10489
10548
|
const data = encodeFunctionData({
|
|
10490
10549
|
abi: erc20ApproveAbi,
|
|
10491
10550
|
functionName: "approve",
|
|
@@ -10591,7 +10650,7 @@ async function trySignEip2612PermitExtension(signer, options, requirements, resu
|
|
|
10591
10650
|
return void 0;
|
|
10592
10651
|
}
|
|
10593
10652
|
const chainId = getEvmChainId(requirements.network);
|
|
10594
|
-
const tokenAddress =
|
|
10653
|
+
const tokenAddress = getAddress(requirements.asset);
|
|
10595
10654
|
const requiredAllowance = approvalAmount ?? requirements.amount;
|
|
10596
10655
|
try {
|
|
10597
10656
|
const allowance = await capabilities.readContract({
|
|
@@ -10636,7 +10695,7 @@ async function trySignErc20ApprovalExtension(signer, options, requirements, cont
|
|
|
10636
10695
|
return void 0;
|
|
10637
10696
|
}
|
|
10638
10697
|
const chainId = getEvmChainId(requirements.network);
|
|
10639
|
-
const tokenAddress =
|
|
10698
|
+
const tokenAddress = getAddress(requirements.asset);
|
|
10640
10699
|
const requiredAllowance = approvalAmount ?? requirements.amount;
|
|
10641
10700
|
try {
|
|
10642
10701
|
const allowance = await capabilities.readContract({
|
|
@@ -10700,13 +10759,13 @@ async function createBatchSettlementEIP3009DepositPayload(signer, x402Version2,
|
|
|
10700
10759
|
name,
|
|
10701
10760
|
version,
|
|
10702
10761
|
chainId,
|
|
10703
|
-
verifyingContract:
|
|
10762
|
+
verifyingContract: getAddress(paymentRequirements.asset)
|
|
10704
10763
|
},
|
|
10705
10764
|
types: receiveAuthorizationTypes,
|
|
10706
10765
|
primaryType: "ReceiveWithAuthorization",
|
|
10707
10766
|
message: {
|
|
10708
|
-
from:
|
|
10709
|
-
to:
|
|
10767
|
+
from: getAddress(signer.address),
|
|
10768
|
+
to: getAddress(ERC3009_DEPOSIT_COLLECTOR_ADDRESS),
|
|
10710
10769
|
value: BigInt(depositAmount),
|
|
10711
10770
|
validAfter: BigInt(0),
|
|
10712
10771
|
validBefore: BigInt(now + paymentRequirements.maxTimeoutSeconds),
|
|
@@ -10843,16 +10902,16 @@ function depositAmountForRequest(policy, requestAmount, needed, extra, maxDeposi
|
|
|
10843
10902
|
function buildChannelConfig(deps, paymentRequirements) {
|
|
10844
10903
|
const extra = paymentRequirements.extra;
|
|
10845
10904
|
const receiverAuthorizer = extra?.receiverAuthorizer;
|
|
10846
|
-
if (!receiverAuthorizer ||
|
|
10905
|
+
if (!receiverAuthorizer || getAddress(receiverAuthorizer) === "0x0000000000000000000000000000000000000000") {
|
|
10847
10906
|
throw new Error("Payment requirements must include a non-zero extra.receiverAuthorizer");
|
|
10848
10907
|
}
|
|
10849
10908
|
return {
|
|
10850
10909
|
payer: deps.signer.address,
|
|
10851
|
-
payerAuthorizer:
|
|
10910
|
+
payerAuthorizer: getAddress(
|
|
10852
10911
|
deps.payerAuthorizer ?? deps.voucherSigner?.address ?? deps.signer.address
|
|
10853
10912
|
),
|
|
10854
10913
|
receiver: paymentRequirements.payTo,
|
|
10855
|
-
receiverAuthorizer:
|
|
10914
|
+
receiverAuthorizer: getAddress(receiverAuthorizer),
|
|
10856
10915
|
token: paymentRequirements.asset,
|
|
10857
10916
|
withdrawDelay: typeof extra?.withdrawDelay === "number" ? extra.withdrawDelay : MIN_WITHDRAW_DELAY,
|
|
10858
10917
|
salt: deps.salt
|
|
@@ -10985,7 +11044,7 @@ async function recoverFromSignature(deps, accept, channelState, voucherState) {
|
|
|
10985
11044
|
},
|
|
10986
11045
|
signature: sig
|
|
10987
11046
|
});
|
|
10988
|
-
const expectedSigner =
|
|
11047
|
+
const expectedSigner = getAddress(
|
|
10989
11048
|
deps.payerAuthorizer ?? deps.voucherSigner?.address ?? deps.signer.address
|
|
10990
11049
|
);
|
|
10991
11050
|
if (recovered.toLowerCase() !== expectedSigner.toLowerCase()) {
|
|
@@ -11223,10 +11282,10 @@ async function createBatchSettlementPermit2DepositPayload(signer, x402Version2,
|
|
|
11223
11282
|
const permit2Authorization = {
|
|
11224
11283
|
from: signer.address,
|
|
11225
11284
|
permitted: {
|
|
11226
|
-
token:
|
|
11285
|
+
token: getAddress(paymentRequirements.asset),
|
|
11227
11286
|
amount: depositAmount
|
|
11228
11287
|
},
|
|
11229
|
-
spender:
|
|
11288
|
+
spender: getAddress(PERMIT2_DEPOSIT_COLLECTOR_ADDRESS),
|
|
11230
11289
|
nonce,
|
|
11231
11290
|
deadline,
|
|
11232
11291
|
witness: {
|
|
@@ -11299,7 +11358,7 @@ var BatchSettlementEvmScheme = class {
|
|
|
11299
11358
|
this.payerAuthorizer = payerAuthorizer;
|
|
11300
11359
|
this.voucherSigner = voucherSigner;
|
|
11301
11360
|
this.extensionRpcOptions = extensionRpcOptions;
|
|
11302
|
-
if (payerAuthorizer !== void 0 && voucherSigner !== void 0 &&
|
|
11361
|
+
if (payerAuthorizer !== void 0 && voucherSigner !== void 0 && getAddress(payerAuthorizer) !== getAddress(voucherSigner.address)) {
|
|
11303
11362
|
throw new Error("payerAuthorizer address must match voucherSigner.address");
|
|
11304
11363
|
}
|
|
11305
11364
|
validateDepositPolicy(depositPolicy);
|
|
@@ -11540,14 +11599,14 @@ async function createPermit2PayloadForProxy(proxyAddress, signer, x402Version2,
|
|
|
11540
11599
|
const permit2Authorization = {
|
|
11541
11600
|
from: signer.address,
|
|
11542
11601
|
permitted: {
|
|
11543
|
-
token:
|
|
11602
|
+
token: getAddress(paymentRequirements.asset),
|
|
11544
11603
|
amount: paymentRequirements.amount
|
|
11545
11604
|
},
|
|
11546
11605
|
spender: proxyAddress,
|
|
11547
11606
|
nonce,
|
|
11548
11607
|
deadline,
|
|
11549
11608
|
witness: {
|
|
11550
|
-
to:
|
|
11609
|
+
to: getAddress(paymentRequirements.payTo),
|
|
11551
11610
|
validAfter
|
|
11552
11611
|
}
|
|
11553
11612
|
};
|
|
@@ -11569,14 +11628,14 @@ async function signPermit2Authorization(signer, permit2Authorization, requiremen
|
|
|
11569
11628
|
primaryType: "PermitWitnessTransferFrom",
|
|
11570
11629
|
message: {
|
|
11571
11630
|
permitted: {
|
|
11572
|
-
token:
|
|
11631
|
+
token: getAddress(permit2Authorization.permitted.token),
|
|
11573
11632
|
amount: BigInt(permit2Authorization.permitted.amount)
|
|
11574
11633
|
},
|
|
11575
|
-
spender:
|
|
11634
|
+
spender: getAddress(permit2Authorization.spender),
|
|
11576
11635
|
nonce: BigInt(permit2Authorization.nonce),
|
|
11577
11636
|
deadline: BigInt(permit2Authorization.deadline),
|
|
11578
11637
|
witness: {
|
|
11579
|
-
to:
|
|
11638
|
+
to: getAddress(permit2Authorization.witness.to),
|
|
11580
11639
|
validAfter: BigInt(permit2Authorization.witness.validAfter)
|
|
11581
11640
|
}
|
|
11582
11641
|
}
|
|
@@ -11600,7 +11659,7 @@ async function createEIP3009Payload(signer, x402Version2, paymentRequirements) {
|
|
|
11600
11659
|
const now = Math.floor(Date.now() / 1e3);
|
|
11601
11660
|
const authorization = {
|
|
11602
11661
|
from: signer.address,
|
|
11603
|
-
to:
|
|
11662
|
+
to: getAddress(paymentRequirements.payTo),
|
|
11604
11663
|
value: paymentRequirements.amount,
|
|
11605
11664
|
validAfter: "0",
|
|
11606
11665
|
validBefore: (now + paymentRequirements.maxTimeoutSeconds).toString(),
|
|
@@ -11628,11 +11687,11 @@ async function signEIP3009Authorization(signer, authorization, requirements) {
|
|
|
11628
11687
|
name,
|
|
11629
11688
|
version,
|
|
11630
11689
|
chainId,
|
|
11631
|
-
verifyingContract:
|
|
11690
|
+
verifyingContract: getAddress(requirements.asset)
|
|
11632
11691
|
};
|
|
11633
11692
|
const message = {
|
|
11634
|
-
from:
|
|
11635
|
-
to:
|
|
11693
|
+
from: getAddress(authorization.from),
|
|
11694
|
+
to: getAddress(authorization.to),
|
|
11636
11695
|
value: BigInt(authorization.value),
|
|
11637
11696
|
validAfter: BigInt(authorization.validAfter),
|
|
11638
11697
|
validBefore: BigInt(authorization.validBefore),
|
|
@@ -11833,15 +11892,16 @@ function createPayerClient(getSigner) {
|
|
|
11833
11892
|
core.registerExtension(builderCode);
|
|
11834
11893
|
return { core, http: new x402HTTPClient(core), builderCodeKey: builderCode.key };
|
|
11835
11894
|
}
|
|
11836
|
-
var canonicalUsdcOnly = (_version, requirements) => requirements.filter(
|
|
11837
|
-
|
|
11895
|
+
var canonicalUsdcOnly = (_version, requirements) => requirements.filter(isCanonicalUsdc);
|
|
11896
|
+
function isCanonicalUsdc(entry) {
|
|
11897
|
+
const allowed = ALLOWED_USDC_BY_NETWORK[entry.network];
|
|
11838
11898
|
if (allowed === void 0) return false;
|
|
11839
11899
|
try {
|
|
11840
|
-
return getAddress(
|
|
11900
|
+
return getAddress(entry.asset) === getAddress(allowed);
|
|
11841
11901
|
} catch {
|
|
11842
11902
|
return false;
|
|
11843
11903
|
}
|
|
11844
|
-
}
|
|
11904
|
+
}
|
|
11845
11905
|
function selectPayableRequirement(core, paymentRequired, want) {
|
|
11846
11906
|
const approved = supportedEntries(paymentRequired);
|
|
11847
11907
|
if (want === void 0) return sdkSelect(core, paymentRequired) ?? approved[0];
|
|
@@ -11970,8 +12030,13 @@ async function executePay(args, ctx, deps, warnings) {
|
|
|
11970
12030
|
const lane = resolveLane(url, settings);
|
|
11971
12031
|
if (lane === "bazaar") await assertPublicDestination(url, deps.destination ?? {});
|
|
11972
12032
|
const method = resolveMethod(args);
|
|
11973
|
-
const
|
|
11974
|
-
const
|
|
12033
|
+
const operator = operatorHeaders(args.header, args.dataRaw !== void 0);
|
|
12034
|
+
const body = resolveBody(args, operator);
|
|
12035
|
+
const headers = {
|
|
12036
|
+
...operator,
|
|
12037
|
+
...specHeaders(args.specHeaders),
|
|
12038
|
+
...callerHeaders(args.headers)
|
|
12039
|
+
};
|
|
11975
12040
|
const fetchOpts = {
|
|
11976
12041
|
timeoutMs: ctx.flags.timeout,
|
|
11977
12042
|
// Both legs: the probe's 402 is money-path input, and the paid retry
|
|
@@ -11979,8 +12044,7 @@ async function executePay(args, ctx, deps, warnings) {
|
|
|
11979
12044
|
// probe too, so the challenge always comes from the URL that was gated).
|
|
11980
12045
|
blockRedirects: true,
|
|
11981
12046
|
...deps.fetchImpl !== void 0 ? { fetchImpl: deps.fetchImpl } : {},
|
|
11982
|
-
...
|
|
11983
|
-
...jsonBody === void 0 && args.rawBody !== void 0 ? { rawBody: args.rawBody } : {},
|
|
12047
|
+
...body,
|
|
11984
12048
|
...Object.keys(headers).length > 0 ? { headers } : {},
|
|
11985
12049
|
// A router lookup can buy a file (a sound, an image): its bytes are kept
|
|
11986
12050
|
// whole for the tool to save, never decoded as text.
|
|
@@ -12016,6 +12080,9 @@ async function executePay(args, ctx, deps, warnings) {
|
|
|
12016
12080
|
const paymentRequired = decodeChallenge(probe, url);
|
|
12017
12081
|
const payer = createPayerClient(() => signerOrThrow(openedSigner));
|
|
12018
12082
|
const requirement = selectRequirement(payer.core, paymentRequired, args.terms);
|
|
12083
|
+
if (args.quote === true) {
|
|
12084
|
+
return deliverQuote(url, lane, probe, paymentRequired, requirement, args.printBody === true);
|
|
12085
|
+
}
|
|
12019
12086
|
if (requirement === void 0) {
|
|
12020
12087
|
throw noMatchingEntry(paymentRequired, args.terms);
|
|
12021
12088
|
}
|
|
@@ -12299,7 +12366,7 @@ async function quoteRouterCall(args, ctx, deps = {}) {
|
|
|
12299
12366
|
if (resolveLane(url, settings) === "bazaar") {
|
|
12300
12367
|
await assertPublicDestination(url, deps.destination ?? {});
|
|
12301
12368
|
}
|
|
12302
|
-
const headers = callerHeaders(args.headers);
|
|
12369
|
+
const headers = { ...specHeaders(args.specHeaders), ...callerHeaders(args.headers) };
|
|
12303
12370
|
const probe = await httpRequest(url, {
|
|
12304
12371
|
timeoutMs: ctx.flags.timeout,
|
|
12305
12372
|
blockRedirects: true,
|
|
@@ -12390,20 +12457,80 @@ function resolveLane(url, settings) {
|
|
|
12390
12457
|
}
|
|
12391
12458
|
return "bazaar";
|
|
12392
12459
|
}
|
|
12460
|
+
var METHODS = /* @__PURE__ */ new Set(["GET", "POST", "PUT", "PATCH", "DELETE"]);
|
|
12461
|
+
var BODY_METHODS = /* @__PURE__ */ new Set(["POST", "PUT", "PATCH"]);
|
|
12462
|
+
function hasBody(args) {
|
|
12463
|
+
return args.data !== void 0 || args.dataRaw !== void 0 || args.rawBody !== void 0;
|
|
12464
|
+
}
|
|
12393
12465
|
function resolveMethod(args) {
|
|
12394
|
-
const method = args.method?.toUpperCase() ?? (args
|
|
12395
|
-
if (method
|
|
12466
|
+
const method = args.method?.toUpperCase() ?? (hasBody(args) ? "POST" : "GET");
|
|
12467
|
+
if (!METHODS.has(method)) {
|
|
12396
12468
|
throw new CliError("USAGE", `Unsupported method ${JSON.stringify(args.method)}`, {
|
|
12397
|
-
fix: "Use -X GET or
|
|
12469
|
+
fix: "Use -X GET, POST, PUT, PATCH or DELETE."
|
|
12398
12470
|
});
|
|
12399
12471
|
}
|
|
12400
|
-
if (
|
|
12401
|
-
throw new CliError("USAGE", "A request body needs -X POST.", {
|
|
12402
|
-
fix: "Drop
|
|
12472
|
+
if (hasBody(args) && !BODY_METHODS.has(method)) {
|
|
12473
|
+
throw new CliError("USAGE", "A request body needs -X POST, PUT or PATCH.", {
|
|
12474
|
+
fix: "Drop the body, or pass -X POST, PUT or PATCH."
|
|
12403
12475
|
});
|
|
12404
12476
|
}
|
|
12405
12477
|
return method;
|
|
12406
12478
|
}
|
|
12479
|
+
function resolveBody(args, operator) {
|
|
12480
|
+
const given = [args.data, args.dataRaw, args.rawBody].filter((b) => b !== void 0);
|
|
12481
|
+
if (given.length > 1) {
|
|
12482
|
+
throw new CliError("USAGE", "Pass one request body: --data or --data-raw, not both.", {
|
|
12483
|
+
fix: "Use --data for a JSON body, or --data-raw with its own Content-Type."
|
|
12484
|
+
});
|
|
12485
|
+
}
|
|
12486
|
+
if (args.data !== void 0) return { jsonBody: parseBody(args.data) };
|
|
12487
|
+
if (args.dataRaw !== void 0) {
|
|
12488
|
+
if (operator["content-type"] === void 0) {
|
|
12489
|
+
throw new CliError("USAGE", "A --data-raw body needs its content type.", {
|
|
12490
|
+
fix: "Pass -H 'Content-Type: <type>' with --data-raw."
|
|
12491
|
+
});
|
|
12492
|
+
}
|
|
12493
|
+
return { rawBody: args.dataRaw };
|
|
12494
|
+
}
|
|
12495
|
+
return args.rawBody !== void 0 ? { rawBody: args.rawBody } : {};
|
|
12496
|
+
}
|
|
12497
|
+
function operatorHeaders(lines, rawBody) {
|
|
12498
|
+
if (lines === void 0) return {};
|
|
12499
|
+
const out = {};
|
|
12500
|
+
for (const line of lines) {
|
|
12501
|
+
const at = line.indexOf(":");
|
|
12502
|
+
const name = at > 0 ? line.slice(0, at).trim() : "";
|
|
12503
|
+
const value = at > 0 ? line.slice(at + 1).trim() : "";
|
|
12504
|
+
const problem = requestHeaderProblem(name, value, rawBody);
|
|
12505
|
+
if (problem === "name") {
|
|
12506
|
+
throw new CliError("USAGE", `Not a request header: ${JSON.stringify(line)}`, {
|
|
12507
|
+
fix: "Pass -H 'Name: value'."
|
|
12508
|
+
});
|
|
12509
|
+
}
|
|
12510
|
+
if (problem === "reserved") {
|
|
12511
|
+
throw new CliError("USAGE", `This command sets the header ${JSON.stringify(name)} itself.`, {
|
|
12512
|
+
fix: "Payment, sign-in, bypass and transport headers are never taken from -H. --data is always application/json; only --data-raw takes a Content-Type from -H."
|
|
12513
|
+
});
|
|
12514
|
+
}
|
|
12515
|
+
if (problem === "value") {
|
|
12516
|
+
throw new CliError(
|
|
12517
|
+
"USAGE",
|
|
12518
|
+
`The value of ${JSON.stringify(name)} is too long or spans lines.`,
|
|
12519
|
+
{
|
|
12520
|
+
fix: "Keep each -H value on one line, under 1,024 characters."
|
|
12521
|
+
}
|
|
12522
|
+
);
|
|
12523
|
+
}
|
|
12524
|
+
const lowered = name.toLowerCase();
|
|
12525
|
+
if (lowered in out) {
|
|
12526
|
+
throw new CliError("USAGE", `The header ${JSON.stringify(name)} was given twice.`, {
|
|
12527
|
+
fix: "Pass each header name once."
|
|
12528
|
+
});
|
|
12529
|
+
}
|
|
12530
|
+
out[lowered] = value;
|
|
12531
|
+
}
|
|
12532
|
+
return out;
|
|
12533
|
+
}
|
|
12407
12534
|
function callerHeaders(headers) {
|
|
12408
12535
|
if (headers === void 0) return {};
|
|
12409
12536
|
const allowed = /* @__PURE__ */ new Set(["accept", "content-type"]);
|
|
@@ -12423,6 +12550,23 @@ function callerHeaders(headers) {
|
|
|
12423
12550
|
}
|
|
12424
12551
|
return out;
|
|
12425
12552
|
}
|
|
12553
|
+
function specHeaders(headers) {
|
|
12554
|
+
if (headers === void 0) return {};
|
|
12555
|
+
const out = {};
|
|
12556
|
+
for (const [name, value] of Object.entries(headers)) {
|
|
12557
|
+
if (requestHeaderProblem(name, value) !== null) {
|
|
12558
|
+
throw new CliError(
|
|
12559
|
+
"USAGE",
|
|
12560
|
+
`This command will not send the header ${JSON.stringify(name)}.`,
|
|
12561
|
+
{
|
|
12562
|
+
fix: "A spec header is a bounded, single-line value, and never a payment, sign-in, bypass or transport header."
|
|
12563
|
+
}
|
|
12564
|
+
);
|
|
12565
|
+
}
|
|
12566
|
+
out[name.toLowerCase()] = value;
|
|
12567
|
+
}
|
|
12568
|
+
return out;
|
|
12569
|
+
}
|
|
12426
12570
|
function parseBody(data) {
|
|
12427
12571
|
if (data === void 0) return void 0;
|
|
12428
12572
|
try {
|
|
@@ -12589,6 +12733,42 @@ function warningMessage(warning) {
|
|
|
12589
12733
|
return `Registry warning: the live terms differ from ${warning.registry} (${warning.detail}).`;
|
|
12590
12734
|
}
|
|
12591
12735
|
}
|
|
12736
|
+
function deliverQuote(url, lane, res, challenge, chosen, printBody) {
|
|
12737
|
+
const chosenAt = chosen === void 0 ? -1 : challenge.accepts.findIndex((a) => sameDeal(a, chosen));
|
|
12738
|
+
const accepts = challenge.accepts.map((a, i) => ({
|
|
12739
|
+
scheme: a.scheme,
|
|
12740
|
+
network: a.network,
|
|
12741
|
+
asset: a.asset,
|
|
12742
|
+
amount: a.amount,
|
|
12743
|
+
...isCanonicalUsdc(a) ? { usd: toMoney(a.amount).usd } : {},
|
|
12744
|
+
...i === chosenAt ? { payable: true } : {},
|
|
12745
|
+
payTo: a.payTo,
|
|
12746
|
+
maxTimeoutSeconds: a.maxTimeoutSeconds,
|
|
12747
|
+
...a.extra !== void 0 ? { extra: a.extra } : {}
|
|
12748
|
+
}));
|
|
12749
|
+
const data = {
|
|
12750
|
+
url,
|
|
12751
|
+
lane,
|
|
12752
|
+
status: res.status,
|
|
12753
|
+
paid: false,
|
|
12754
|
+
quote: true,
|
|
12755
|
+
resource: challenge.resource,
|
|
12756
|
+
accepts,
|
|
12757
|
+
...challenge.extensions !== void 0 ? { extensions: challenge.extensions } : {},
|
|
12758
|
+
...res.json !== void 0 ? { body: res.json } : {},
|
|
12759
|
+
bodyText: res.text
|
|
12760
|
+
};
|
|
12761
|
+
const host = sanitizeForTerminal(new URL(url).host);
|
|
12762
|
+
const payable = accepts[chosenAt];
|
|
12763
|
+
const headline = payable?.usd !== void 0 ? `quote: ${payable.usd} USD to ${host} on ${sanitizeForTerminal(payable.network)} (nothing paid)` : accepts.length === 0 ? `quote: ${host} answered 402 with no payment option (nothing paid)` : `quote: ${host} lists no option this wallet can pay, only USDC on Base is supported (nothing paid)`;
|
|
12764
|
+
const body = sanitizeForTerminal(res.text);
|
|
12765
|
+
const preview2 = printBody || body.length <= BODY_PREVIEW_CHARS ? body : `${body.slice(0, BODY_PREVIEW_CHARS)}
|
|
12766
|
+
\u2026 truncated; run with --print-body or --json for the full body`;
|
|
12767
|
+
return { data, humanLines: [headline, ...preview2.length > 0 ? [preview2] : []] };
|
|
12768
|
+
}
|
|
12769
|
+
function sameDeal(a, b) {
|
|
12770
|
+
return a === b || a.scheme === b.scheme && a.network === b.network && a.asset.toLowerCase() === b.asset.toLowerCase() && a.amount === b.amount && a.payTo.toLowerCase() === b.payTo.toLowerCase();
|
|
12771
|
+
}
|
|
12592
12772
|
function deliver(url, lane, res, opts) {
|
|
12593
12773
|
const settlementTxHash = opts.paid ? settlementTx(res) : void 0;
|
|
12594
12774
|
const data = {
|
|
@@ -12705,4 +12885,4 @@ export {
|
|
|
12705
12885
|
sellerLine,
|
|
12706
12886
|
settlementTx
|
|
12707
12887
|
};
|
|
12708
|
-
//# sourceMappingURL=chunk-
|
|
12888
|
+
//# sourceMappingURL=chunk-2RWB7RKE.js.map
|