@zeroxyz/cli 1.21.1 → 1.22.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/index.js +9 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -78449,7 +78449,7 @@ init_esm_shims();
|
|
|
78449
78449
|
// ../sdk/dist/index.js
|
|
78450
78450
|
init_esm_shims();
|
|
78451
78451
|
|
|
78452
|
-
// ../sdk/dist/chunk-
|
|
78452
|
+
// ../sdk/dist/chunk-4FP2DRQJ.js
|
|
78453
78453
|
init_esm_shims();
|
|
78454
78454
|
|
|
78455
78455
|
// ../../node_modules/.pnpm/viem@2.52.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/index.js
|
|
@@ -143768,7 +143768,7 @@ config(en_default2());
|
|
|
143768
143768
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
143769
143769
|
var zod_default = external_exports3;
|
|
143770
143770
|
|
|
143771
|
-
// ../sdk/dist/chunk-
|
|
143771
|
+
// ../sdk/dist/chunk-4FP2DRQJ.js
|
|
143772
143772
|
var createManagedAccount = (client, address2, opts = {}) => {
|
|
143773
143773
|
const signOptions = {
|
|
143774
143774
|
// expectedAddress pins verification to this adapter's frozen address.
|
|
@@ -144424,9 +144424,6 @@ var Payments = class {
|
|
|
144424
144424
|
*/
|
|
144425
144425
|
pay = async (input) => {
|
|
144426
144426
|
const maxPayUnits = validateMaxPay(input.maxPay);
|
|
144427
|
-
if (maxPayUnits === 0n) {
|
|
144428
|
-
throw new ZeroPaymentError("maxPay='0' disallows any payment.");
|
|
144429
|
-
}
|
|
144430
144427
|
const account = await resolveAccount(
|
|
144431
144428
|
this.client,
|
|
144432
144429
|
input.account,
|
|
@@ -144624,9 +144621,6 @@ var Payments = class {
|
|
|
144624
144621
|
*/
|
|
144625
144622
|
payMpp = async (input) => {
|
|
144626
144623
|
const maxPayUnits = validateMaxPay(input.maxPay);
|
|
144627
|
-
if (maxPayUnits === 0n) {
|
|
144628
|
-
throw new ZeroPaymentError("maxPay='0' disallows any payment.");
|
|
144629
|
-
}
|
|
144630
144624
|
const account = await resolveAccount(
|
|
144631
144625
|
this.client,
|
|
144632
144626
|
input.account,
|
|
@@ -144801,6 +144795,11 @@ var Payments = class {
|
|
|
144801
144795
|
}
|
|
144802
144796
|
requiredRaw = BigInt(rawAmount);
|
|
144803
144797
|
}
|
|
144798
|
+
if (challenge2.intent === "session" && requiredRaw === 0n) {
|
|
144799
|
+
throw new ZeroPaymentError(
|
|
144800
|
+
"This capability opens an MPP payment channel that needs a positive deposit; maxPay='0' cannot fund it. Pass a small cap (e.g. '0.05') to size the channel."
|
|
144801
|
+
);
|
|
144802
|
+
}
|
|
144804
144803
|
if (maxPayUnits !== null && requiredRaw > maxPayUnits) {
|
|
144805
144804
|
throw new ZeroPaymentError(
|
|
144806
144805
|
`Payment of ${formatUnits(requiredRaw, 6)} USDC exceeds maxPay ${formatUnits(maxPayUnits, 6)}`
|
|
@@ -145771,7 +145770,7 @@ var clientFetch = async (client, url4, opts = {}) => {
|
|
|
145771
145770
|
return result;
|
|
145772
145771
|
};
|
|
145773
145772
|
var package_default = {
|
|
145774
|
-
version: "0.
|
|
145773
|
+
version: "0.15.0"
|
|
145775
145774
|
};
|
|
145776
145775
|
var SDK_VERSION2 = package_default.version;
|
|
145777
145776
|
var agentAuthMetadataSchema = external_exports3.object({
|
|
@@ -147913,7 +147912,7 @@ var placeholderFor = (fieldName, propSchema) => String(sampleValueFor(fieldName,
|
|
|
147913
147912
|
|
|
147914
147913
|
// package.json
|
|
147915
147914
|
var package_default2 = {
|
|
147916
|
-
version: "1.
|
|
147915
|
+
version: "1.22.0"};
|
|
147917
147916
|
|
|
147918
147917
|
// src/app.ts
|
|
147919
147918
|
init_esm_shims();
|