@t2000/cli 9.5.0 → 9.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-HP5E2AUH.js → chunk-UGQY67E3.js} +10 -1
- package/dist/{chunk-HP5E2AUH.js.map → chunk-UGQY67E3.js.map} +1 -1
- package/dist/{dist-3GO63RFI.js → dist-VTNYUSEM.js} +11 -2
- package/dist/{dist-3GO63RFI.js.map → dist-VTNYUSEM.js.map} +1 -1
- package/dist/{dist-AW7YKCSW.js → dist-WHAWAYBP.js} +2 -2
- package/dist/index.js +3 -3
- package/package.json +3 -3
- /package/dist/{dist-AW7YKCSW.js.map → dist-WHAWAYBP.js.map} +0 -0
|
@@ -9890,6 +9890,7 @@ var KeypairSigner = class {
|
|
|
9890
9890
|
constructor(keypair) {
|
|
9891
9891
|
this.keypair = keypair;
|
|
9892
9892
|
}
|
|
9893
|
+
kind = "keypair";
|
|
9893
9894
|
getAddress() {
|
|
9894
9895
|
return this.keypair.getPublicKey().toSuiAddress();
|
|
9895
9896
|
}
|
|
@@ -9988,6 +9989,13 @@ async function payWithMpp(args) {
|
|
|
9988
9989
|
}
|
|
9989
9990
|
const headerChallenge = await parseMppSuiChallenge(probe);
|
|
9990
9991
|
if (headerChallenge) {
|
|
9992
|
+
if (signer.kind === "zklogin") {
|
|
9993
|
+
throw new T2000Error(
|
|
9994
|
+
"DIALECT_UNSUPPORTED",
|
|
9995
|
+
"This seller only offers the MPP header dialect, which zkLogin (Passport) wallets cannot safely pay: the seller cannot verify zkLogin signatures, so the payment would settle on-chain without the service delivering. No payment was made. Use an x402-capable service, or pay from a keypair wallet (t2 CLI / MCP).",
|
|
9996
|
+
{ dialect: "mpp-header", signerKind: "zklogin" }
|
|
9997
|
+
);
|
|
9998
|
+
}
|
|
9991
9999
|
const result = await payViaMppHeader({ signer, client, options });
|
|
9992
10000
|
await reportDirectPayment(result, options.url);
|
|
9993
10001
|
return result;
|
|
@@ -10223,6 +10231,7 @@ var ZkLoginSigner = class {
|
|
|
10223
10231
|
this.userAddress = userAddress;
|
|
10224
10232
|
this.maxEpoch = maxEpoch;
|
|
10225
10233
|
}
|
|
10234
|
+
kind = "zklogin";
|
|
10226
10235
|
getAddress() {
|
|
10227
10236
|
return this.userAddress;
|
|
10228
10237
|
}
|
|
@@ -12517,4 +12526,4 @@ export {
|
|
|
12517
12526
|
@scure/bip39/index.js:
|
|
12518
12527
|
(*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
12519
12528
|
*/
|
|
12520
|
-
//# sourceMappingURL=chunk-
|
|
12529
|
+
//# sourceMappingURL=chunk-UGQY67E3.js.map
|