@haven_ai/sdk 0.0.0-dev.202609250651.afc2091 → 0.0.0-dev.202609250737.3bd5a51
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/{base64-9_tWgxq-.d.cts → base64-Bw0qBf6v.d.cts} +34 -1
- package/dist/{base64-9_tWgxq-.d.ts → base64-Bw0qBf6v.d.ts} +34 -1
- package/dist/{chunk-ML4FBTBL.js → chunk-5C4GDDG2.js} +70 -9
- package/dist/chunk-5C4GDDG2.js.map +1 -0
- package/dist/{chunk-KPQAAF4I.cjs → chunk-XKGZLATE.cjs} +68 -6
- package/dist/chunk-XKGZLATE.cjs.map +1 -0
- package/dist/edge.cjs +27 -19
- package/dist/edge.d.cts +1 -1
- package/dist/edge.d.ts +1 -1
- package/dist/edge.js +1 -1
- package/dist/index.cjs +108 -108
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/test-support.cjs +23 -0
- package/dist/test-support.cjs.map +1 -1
- package/dist/test-support.d.cts +43 -1
- package/dist/test-support.d.ts +43 -1
- package/dist/test-support.js +24 -2
- package/dist/test-support.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-KPQAAF4I.cjs.map +0 -1
- package/dist/chunk-ML4FBTBL.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkXKGZLATE_cjs = require('./chunk-XKGZLATE.cjs');
|
|
4
4
|
var chunkC4BG4HER_cjs = require('./chunk-C4BG4HER.cjs');
|
|
5
5
|
var viem = require('viem');
|
|
6
6
|
var ethers = require('ethers');
|
|
@@ -586,8 +586,8 @@ var McpMerchantTransport = class {
|
|
|
586
586
|
async deliverPayment(url, init, paymentHeader) {
|
|
587
587
|
assertSecureX402RetryTarget(url);
|
|
588
588
|
const headers = new Headers(init?.headers);
|
|
589
|
-
const send =
|
|
590
|
-
for (const name of
|
|
589
|
+
const send = chunkXKGZLATE_cjs.x402PaymentHeaderNamesFor(paymentHeader);
|
|
590
|
+
for (const name of chunkXKGZLATE_cjs.X402_PAYMENT_HEADER_NAMES) {
|
|
591
591
|
if (send.includes(name)) headers.set(name, paymentHeader);
|
|
592
592
|
else headers.delete(name);
|
|
593
593
|
}
|
|
@@ -674,7 +674,7 @@ function mcpToolResultOf(value) {
|
|
|
674
674
|
function extractMcpPaymentRequired(toolResult) {
|
|
675
675
|
if (toolResult.isError !== true) return void 0;
|
|
676
676
|
if (isRecord(toolResult.structuredContent)) {
|
|
677
|
-
const parsed =
|
|
677
|
+
const parsed = chunkXKGZLATE_cjs.normalizePaymentRequired(toolResult.structuredContent);
|
|
678
678
|
if (parsed) return parsed;
|
|
679
679
|
}
|
|
680
680
|
if (Array.isArray(toolResult.content)) {
|
|
@@ -686,7 +686,7 @@ function extractMcpPaymentRequired(toolResult) {
|
|
|
686
686
|
} catch {
|
|
687
687
|
continue;
|
|
688
688
|
}
|
|
689
|
-
const parsed =
|
|
689
|
+
const parsed = chunkXKGZLATE_cjs.normalizePaymentRequired(candidate);
|
|
690
690
|
if (parsed) return parsed;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
@@ -710,7 +710,7 @@ function withMcpPaymentMeta(init, paymentHeader) {
|
|
|
710
710
|
if (!request) return init;
|
|
711
711
|
let envelope;
|
|
712
712
|
try {
|
|
713
|
-
envelope =
|
|
713
|
+
envelope = chunkXKGZLATE_cjs.decodeBase64Json(paymentHeader);
|
|
714
714
|
} catch {
|
|
715
715
|
return init;
|
|
716
716
|
}
|
|
@@ -726,7 +726,7 @@ function withMcpPaymentMeta(init, paymentHeader) {
|
|
|
726
726
|
};
|
|
727
727
|
}
|
|
728
728
|
function encodeMcpSettlementReceipt(settlement) {
|
|
729
|
-
return
|
|
729
|
+
return chunkXKGZLATE_cjs.encodeBase64Json(settlement);
|
|
730
730
|
}
|
|
731
731
|
function parseJsonRpcToolsCall(body) {
|
|
732
732
|
if (typeof body !== "string") return void 0;
|
|
@@ -850,7 +850,7 @@ function deriveReadiness(status, allowances) {
|
|
|
850
850
|
return allowances.some((allowance) => safeBigInt(allowance.remainingAtomic) > 0n) ? "ready" : "needs_approval";
|
|
851
851
|
}
|
|
852
852
|
function formatRemainingDisplay(tokenAddress, tokenSymbol, remainingAtomic) {
|
|
853
|
-
const token =
|
|
853
|
+
const token = chunkXKGZLATE_cjs.resolveTokenFromAddress(tokenAddress);
|
|
854
854
|
return token ? `${formatAtomicAmount(safeBigInt(remainingAtomic), token.decimals)} ${tokenSymbol}` : `${remainingAtomic} ${tokenSymbol} (atomic; unknown decimals)`;
|
|
855
855
|
}
|
|
856
856
|
var AccountReads = class {
|
|
@@ -980,7 +980,7 @@ var AccountReads = class {
|
|
|
980
980
|
(allowance) => allowance.tokenAddress.toLowerCase() === tokenAddress.toLowerCase()
|
|
981
981
|
);
|
|
982
982
|
if (!match) return unavailable("no allowance/budget row matches the settled token", payment);
|
|
983
|
-
const token =
|
|
983
|
+
const token = chunkXKGZLATE_cjs.resolveTokenFromAddress(match.tokenAddress);
|
|
984
984
|
const remainingDisplay = token ? `${formatAtomicAmount(safeBigInt(match.onchain.remaining), token.decimals)} ${match.tokenSymbol}` : void 0;
|
|
985
985
|
const rail = agentResult.value.executionRail;
|
|
986
986
|
return {
|
|
@@ -1077,8 +1077,8 @@ var DelegateSweepApi = class {
|
|
|
1077
1077
|
const provider = createJsonRpcProvider(rpcUrl);
|
|
1078
1078
|
const wallet = createWallet(this.options.delegateKey, provider);
|
|
1079
1079
|
const transfers = [];
|
|
1080
|
-
if (
|
|
1081
|
-
const contract = createErc20Contract(
|
|
1080
|
+
if (chunkXKGZLATE_cjs.isSweepableChain(agent.chainId)) {
|
|
1081
|
+
const contract = createErc20Contract(chunkXKGZLATE_cjs.sweepUsdcAddress(agent.chainId), ["function balanceOf(address) view returns (uint256)", "function transfer(address to, uint256 amount) returns (bool)"], wallet);
|
|
1082
1082
|
const balance2 = await contract.balanceOf(agent.delegateAddress);
|
|
1083
1083
|
if (balance2 > 0n) {
|
|
1084
1084
|
const tx = await contract.transfer(agent.accountAddress, balance2);
|
|
@@ -1187,9 +1187,9 @@ function requestInitFromSnapshot(request) {
|
|
|
1187
1187
|
};
|
|
1188
1188
|
}
|
|
1189
1189
|
function noCompatiblePaymentOptionError(accepts) {
|
|
1190
|
-
const erc7710Only =
|
|
1190
|
+
const erc7710Only = chunkXKGZLATE_cjs.selectErc7710PaymentOption(accepts) !== null;
|
|
1191
1191
|
const unsupportedOnly = !erc7710Only && accepts.some(
|
|
1192
|
-
(opt) => opt !== null && typeof opt === "object" && !
|
|
1192
|
+
(opt) => opt !== null && typeof opt === "object" && !chunkXKGZLATE_cjs.isErc7710Option(opt) && (chunkXKGZLATE_cjs.x402AssetTransferMethod(opt) !== null || opt.extra?.paymentFlow !== void 0)
|
|
1193
1193
|
);
|
|
1194
1194
|
return new chunkC4BG4HER_cjs.HavenApiError(
|
|
1195
1195
|
"No compatible payment option found in x402 requirements. Haven supports standard x402 exact payments on Base USDC." + (erc7710Only ? " The only Haven-compatible option this merchant advertises is tagged extra.assetTransferMethod: 'erc7710' (direct settlement), which this EIP-3009 payment path cannot settle \u2014 the limitation is the settlement scheme, not the asset. Paying this merchant requires a delegation-rail erc7710 flow (settleX402Erc7710, or the hosted MCP purchase tools)." : unsupportedOnly ? " Every option this merchant advertises asks for a transfer method or payment flow Haven cannot construct (for example extra.assetTransferMethod: 'permit2', or an unrecognized extra.paymentFlow). No payment intent was created and no funds moved." : ""),
|
|
@@ -1197,15 +1197,15 @@ function noCompatiblePaymentOptionError(accepts) {
|
|
|
1197
1197
|
);
|
|
1198
1198
|
}
|
|
1199
1199
|
function buildX402Quote(paymentRequired, request, idempotencyKey, mcpTransport) {
|
|
1200
|
-
const standard =
|
|
1201
|
-
const option = standard ??
|
|
1200
|
+
const standard = chunkXKGZLATE_cjs.selectStandardPaymentOption(paymentRequired.accepts);
|
|
1201
|
+
const option = standard ?? chunkXKGZLATE_cjs.selectErc7710PaymentOption(paymentRequired.accepts);
|
|
1202
1202
|
if (!option) {
|
|
1203
1203
|
throw noCompatiblePaymentOptionError(paymentRequired.accepts);
|
|
1204
1204
|
}
|
|
1205
|
-
const token =
|
|
1205
|
+
const token = chunkXKGZLATE_cjs.resolveTokenFromAddress(option.asset, option.network);
|
|
1206
1206
|
return {
|
|
1207
1207
|
rail: "x402",
|
|
1208
|
-
idempotencyKey: idempotencyKey ??
|
|
1208
|
+
idempotencyKey: idempotencyKey ?? chunkXKGZLATE_cjs.buildX402IdempotencyKey(paymentRequired, option),
|
|
1209
1209
|
paymentRequired,
|
|
1210
1210
|
accepted: option,
|
|
1211
1211
|
acceptedScheme: standard ? "standard" : "erc7710",
|
|
@@ -1219,8 +1219,8 @@ function buildX402Quote(paymentRequired, request, idempotencyKey, mcpTransport)
|
|
|
1219
1219
|
resourceUrlDiffersFromRequest: paymentRequired.resource.url !== request.url,
|
|
1220
1220
|
description: paymentRequired.resource.description ?? option.description ?? null,
|
|
1221
1221
|
mimeType: paymentRequired.resource.mimeType ?? option.mimeType ?? null,
|
|
1222
|
-
amountAtomic:
|
|
1223
|
-
amount: decimalFromUsdcAtomic(
|
|
1222
|
+
amountAtomic: chunkXKGZLATE_cjs.x402AuthorizationAmount(option),
|
|
1223
|
+
amount: decimalFromUsdcAtomic(chunkXKGZLATE_cjs.x402AuthorizationAmount(option)),
|
|
1224
1224
|
token: token?.symbol ?? "USDC",
|
|
1225
1225
|
// #1351: null when the asset is unrecognised on this network — the
|
|
1226
1226
|
// `token` fallback above is a LABEL, not evidence of 6 decimals, and a
|
|
@@ -1259,7 +1259,7 @@ function buildX402Receipt(input) {
|
|
|
1259
1259
|
payTo: input.merchantTo ?? input.accepted.payTo
|
|
1260
1260
|
},
|
|
1261
1261
|
x402: {
|
|
1262
|
-
amount:
|
|
1262
|
+
amount: chunkXKGZLATE_cjs.x402AuthorizationAmount(input.accepted),
|
|
1263
1263
|
token: input.token,
|
|
1264
1264
|
network: input.accepted.network,
|
|
1265
1265
|
asset: input.accepted.asset,
|
|
@@ -1268,7 +1268,7 @@ function buildX402Receipt(input) {
|
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
function buildX402ResumeState(input) {
|
|
1271
|
-
const token =
|
|
1271
|
+
const token = chunkXKGZLATE_cjs.resolveTokenFromAddress(input.accepted.asset, input.accepted.network);
|
|
1272
1272
|
return {
|
|
1273
1273
|
rail: "x402",
|
|
1274
1274
|
paymentId: input.paymentId,
|
|
@@ -1279,8 +1279,8 @@ function buildX402ResumeState(input) {
|
|
|
1279
1279
|
request: input.request,
|
|
1280
1280
|
resourceUrl: input.paymentRequired.resource.url,
|
|
1281
1281
|
description: input.paymentRequired.resource.description ?? input.accepted.description ?? null,
|
|
1282
|
-
amountAtomic:
|
|
1283
|
-
amount: decimalFromUsdcAtomic(
|
|
1282
|
+
amountAtomic: chunkXKGZLATE_cjs.x402AuthorizationAmount(input.accepted),
|
|
1283
|
+
amount: decimalFromUsdcAtomic(chunkXKGZLATE_cjs.x402AuthorizationAmount(input.accepted)),
|
|
1284
1284
|
token: token?.symbol ?? "USDC",
|
|
1285
1285
|
asset: input.accepted.asset,
|
|
1286
1286
|
network: input.accepted.network,
|
|
@@ -1361,7 +1361,7 @@ function assertCanResumeX402(status, paymentRequired, option) {
|
|
|
1361
1361
|
);
|
|
1362
1362
|
}
|
|
1363
1363
|
const approvedAmount = status.amount ? normalizeDecimal(status.amount) : "";
|
|
1364
|
-
const requestedAmount = normalizeDecimal(decimalFromUsdcAtomic(
|
|
1364
|
+
const requestedAmount = normalizeDecimal(decimalFromUsdcAtomic(chunkXKGZLATE_cjs.x402AuthorizationAmount(option)));
|
|
1365
1365
|
if (approvedAmount && approvedAmount !== requestedAmount) {
|
|
1366
1366
|
throw new chunkC4BG4HER_cjs.HavenApiError(
|
|
1367
1367
|
"x402 resume request does not match the approved amount.",
|
|
@@ -1421,7 +1421,7 @@ var X402FundingLeg = class {
|
|
|
1421
1421
|
url: paymentRequired.resource.url,
|
|
1422
1422
|
payTo: this.delegateAddress,
|
|
1423
1423
|
merchantPayTo: option.payTo,
|
|
1424
|
-
amount:
|
|
1424
|
+
amount: chunkXKGZLATE_cjs.x402AuthorizationAmount(option),
|
|
1425
1425
|
asset: option.asset,
|
|
1426
1426
|
network: option.network,
|
|
1427
1427
|
description: paymentRequired.resource.description,
|
|
@@ -1437,7 +1437,7 @@ var X402FundingLeg = class {
|
|
|
1437
1437
|
const canFund = await this.delegateCanFund(
|
|
1438
1438
|
raw.chain_id ?? state?.chainId ?? chainIdFromNetwork(option.network),
|
|
1439
1439
|
option.asset,
|
|
1440
|
-
|
|
1440
|
+
chunkXKGZLATE_cjs.x402AuthorizationAmount(option)
|
|
1441
1441
|
);
|
|
1442
1442
|
const refuse = executedReplay === "idempotency-collision" ? canFund !== true : canFund === false;
|
|
1443
1443
|
if (refuse) {
|
|
@@ -1486,22 +1486,22 @@ var X402FundingLeg = class {
|
|
|
1486
1486
|
throw new chunkC4BG4HER_cjs.HavenSigningError("delegateKey is required to sign x402 payment headers.");
|
|
1487
1487
|
}
|
|
1488
1488
|
const account = accounts.privateKeyToAccount(this.delegateKey);
|
|
1489
|
-
const requirements =
|
|
1489
|
+
const requirements = chunkXKGZLATE_cjs.toStandardPaymentRequirements(paymentRequired, option);
|
|
1490
1490
|
const header = await schemes.exact.evm.createPaymentHeader(
|
|
1491
1491
|
account,
|
|
1492
1492
|
paymentRequired.x402Version,
|
|
1493
1493
|
requirements
|
|
1494
1494
|
);
|
|
1495
1495
|
if (paymentRequired.x402Version < 2) return header;
|
|
1496
|
-
const payment =
|
|
1497
|
-
return
|
|
1496
|
+
const payment = chunkXKGZLATE_cjs.decodeBase64Json(header);
|
|
1497
|
+
return chunkXKGZLATE_cjs.encodeBase64Json(chunkXKGZLATE_cjs.x402V2PaymentEnvelope(paymentRequired, option, payment.payload));
|
|
1498
1498
|
}
|
|
1499
1499
|
// ── Receipt mapping ──────────────────────────────────────────────
|
|
1500
1500
|
receiptFromAuthorization(paymentRequired, option, paymentHeader, raw, execResult) {
|
|
1501
1501
|
const txHash = execResult?.tx_hash ?? raw.tx_hash ?? "";
|
|
1502
1502
|
const chainId = execResult?.chain_id ?? raw.chain_id ?? chainIdFromNetwork(option.network);
|
|
1503
1503
|
const token = execResult?.token ?? raw.token ?? "USDC";
|
|
1504
|
-
const amount = execResult?.amount ?? raw.amount ?? decimalFromUsdcAtomic(
|
|
1504
|
+
const amount = execResult?.amount ?? raw.amount ?? decimalFromUsdcAtomic(chunkXKGZLATE_cjs.x402AuthorizationAmount(option));
|
|
1505
1505
|
const to = execResult?.to ?? raw.to ?? this.delegateAddress ?? "";
|
|
1506
1506
|
const explorerUrl = execResult?.explorer_url ?? raw.explorer_url ?? explorerUrlOrEmpty(chainId, txHash);
|
|
1507
1507
|
const merchantTo = execResult?.merchant_to ?? raw.merchant_to ?? option.payTo;
|
|
@@ -1534,7 +1534,7 @@ var X402FundingLeg = class {
|
|
|
1534
1534
|
paymentId: status.paymentId,
|
|
1535
1535
|
txHash: status.txHash,
|
|
1536
1536
|
token: status.token || "USDC",
|
|
1537
|
-
amount: status.amount || decimalFromUsdcAtomic(
|
|
1537
|
+
amount: status.amount || decimalFromUsdcAtomic(chunkXKGZLATE_cjs.x402AuthorizationAmount(option)),
|
|
1538
1538
|
to: this.delegateAddress ?? "",
|
|
1539
1539
|
resourceUrl: paymentRequired.resource.url,
|
|
1540
1540
|
explorerUrl: explorerUrlOrEmpty(status.chainId, status.txHash),
|
|
@@ -1611,7 +1611,7 @@ var X402FundingLeg = class {
|
|
|
1611
1611
|
};
|
|
1612
1612
|
function getPaymentHeaderValidBefore(paymentHeader) {
|
|
1613
1613
|
try {
|
|
1614
|
-
const payment =
|
|
1614
|
+
const payment = chunkXKGZLATE_cjs.decodeBase64Json(
|
|
1615
1615
|
paymentHeader
|
|
1616
1616
|
);
|
|
1617
1617
|
const payload = payment.payload;
|
|
@@ -1696,7 +1696,7 @@ var X402Erc7710 = class {
|
|
|
1696
1696
|
400
|
|
1697
1697
|
);
|
|
1698
1698
|
}
|
|
1699
|
-
const selection =
|
|
1699
|
+
const selection = chunkXKGZLATE_cjs.selectX402SettlementScheme(paymentRequired.accepts, { delegationRail });
|
|
1700
1700
|
if (!selection || selection.scheme !== "erc7710") {
|
|
1701
1701
|
throw new chunkC4BG4HER_cjs.HavenApiError(
|
|
1702
1702
|
"This merchant does not advertise an erc7710 settlement option (no accepts[] entry carries extra.assetTransferMethod: 'erc7710'). Use authorizeX402() for the standard EIP-3009 path.",
|
|
@@ -1705,7 +1705,7 @@ var X402Erc7710 = class {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
const option = selection.option;
|
|
1707
1707
|
const merchantPayTo = option.payTo;
|
|
1708
|
-
const amountAtomic =
|
|
1708
|
+
const amountAtomic = chunkXKGZLATE_cjs.x402AuthorizationAmount(option);
|
|
1709
1709
|
const raw = await this.post("/x402", {
|
|
1710
1710
|
url: options.resourceUrl ?? paymentRequired.resource?.url,
|
|
1711
1711
|
// #2373: the full 402 challenge, persisted verbatim by the backend
|
|
@@ -1985,7 +1985,7 @@ var MerchantCompletion = class {
|
|
|
1985
1985
|
merchantStatus: retryResponse.status,
|
|
1986
1986
|
challengePayload: paymentRequired,
|
|
1987
1987
|
selectedPayment: receipt.accepted,
|
|
1988
|
-
paymentProofHeaderName:
|
|
1988
|
+
paymentProofHeaderName: chunkXKGZLATE_cjs.x402PaymentHeaderNamesSent(receipt.paymentHeader),
|
|
1989
1989
|
paymentProofHeader: receipt.paymentHeader,
|
|
1990
1990
|
protocolReceiptHeaderName,
|
|
1991
1991
|
protocolReceiptHeader
|
|
@@ -2275,7 +2275,7 @@ function parseMerchantSettlement(header) {
|
|
|
2275
2275
|
}
|
|
2276
2276
|
function parseProtocolReceiptHeader(value) {
|
|
2277
2277
|
try {
|
|
2278
|
-
return
|
|
2278
|
+
return chunkXKGZLATE_cjs.decodeBase64Json(value);
|
|
2279
2279
|
} catch {
|
|
2280
2280
|
try {
|
|
2281
2281
|
return JSON.parse(value);
|
|
@@ -2483,7 +2483,7 @@ var HavenClient = class {
|
|
|
2483
2483
|
* on-chain allowance — there is nothing to sign until the user approves.
|
|
2484
2484
|
*/
|
|
2485
2485
|
async createX402Intent(paymentRequired, options = {}) {
|
|
2486
|
-
const option =
|
|
2486
|
+
const option = chunkXKGZLATE_cjs.selectStandardPaymentOption(paymentRequired.accepts);
|
|
2487
2487
|
if (!option) {
|
|
2488
2488
|
throw noCompatiblePaymentOptionError(paymentRequired.accepts);
|
|
2489
2489
|
}
|
|
@@ -2491,7 +2491,7 @@ var HavenClient = class {
|
|
|
2491
2491
|
if (!fundingTo) {
|
|
2492
2492
|
throw new chunkC4BG4HER_cjs.HavenApiError("Authenticated agent has no delegate address registered.", 502);
|
|
2493
2493
|
}
|
|
2494
|
-
const idempotencyKey = options.idempotencyKey ??
|
|
2494
|
+
const idempotencyKey = options.idempotencyKey ?? chunkXKGZLATE_cjs.buildX402IdempotencyKey(paymentRequired, option);
|
|
2495
2495
|
const raw = await this.post("/x402", {
|
|
2496
2496
|
url: paymentRequired.resource.url,
|
|
2497
2497
|
payTo: fundingTo,
|
|
@@ -2502,7 +2502,7 @@ var HavenClient = class {
|
|
|
2502
2502
|
// of a silent reroute to the erc7710 settlement branch (the #1358
|
|
2503
2503
|
// review's open-budget misroute). Legacy-rail backends ignore the field.
|
|
2504
2504
|
settlementScheme: "eip3009",
|
|
2505
|
-
amount:
|
|
2505
|
+
amount: chunkXKGZLATE_cjs.x402AuthorizationAmount(option),
|
|
2506
2506
|
asset: option.asset,
|
|
2507
2507
|
network: option.network,
|
|
2508
2508
|
description: paymentRequired.resource.description,
|
|
@@ -2539,7 +2539,7 @@ var HavenClient = class {
|
|
|
2539
2539
|
accepted: option,
|
|
2540
2540
|
resourceUrl: paymentRequired.resource.url,
|
|
2541
2541
|
merchantTo: raw.merchant_to ?? option.payTo,
|
|
2542
|
-
amountAtomic:
|
|
2542
|
+
amountAtomic: chunkXKGZLATE_cjs.x402AuthorizationAmount(option),
|
|
2543
2543
|
asset: option.asset,
|
|
2544
2544
|
network: option.network,
|
|
2545
2545
|
expectedAuth: raw.x402_expected_auth,
|
|
@@ -2605,7 +2605,7 @@ var HavenClient = class {
|
|
|
2605
2605
|
);
|
|
2606
2606
|
}
|
|
2607
2607
|
chunkC4BG4HER_cjs.assertUserOpTypedDataBinding(signData.typed_data, signData.hash);
|
|
2608
|
-
|
|
2608
|
+
chunkXKGZLATE_cjs.assertBoundDirectPaymentUserOp(
|
|
2609
2609
|
signData.typed_data,
|
|
2610
2610
|
this.delegateAddress
|
|
2611
2611
|
);
|
|
@@ -2618,11 +2618,11 @@ var HavenClient = class {
|
|
|
2618
2618
|
);
|
|
2619
2619
|
}
|
|
2620
2620
|
if (!settlementExpectation) {
|
|
2621
|
-
throw new
|
|
2621
|
+
throw new chunkXKGZLATE_cjs.HavenTypedDataRefusedError(
|
|
2622
2622
|
"Refusing to sign an x402 settlement child without an independent expectation of what it must pay (the merchant's 402). Pay erc7710 merchants through settleX402Erc7710(), which supplies it."
|
|
2623
2623
|
);
|
|
2624
2624
|
}
|
|
2625
|
-
|
|
2625
|
+
chunkXKGZLATE_cjs.assertOwnSettlementChild(signData.typed_data, settlementExpectation, this.delegateAddress);
|
|
2626
2626
|
return signSettlementDelegationTypedData(this.delegateKey, signData.typed_data);
|
|
2627
2627
|
}
|
|
2628
2628
|
if (scheme === void 0) {
|
|
@@ -2943,11 +2943,11 @@ var HavenClient = class {
|
|
|
2943
2943
|
if (!this.delegateAddress) {
|
|
2944
2944
|
throw new chunkC4BG4HER_cjs.HavenSigningError("delegateAddress could not be derived from delegateKey.");
|
|
2945
2945
|
}
|
|
2946
|
-
const option =
|
|
2946
|
+
const option = chunkXKGZLATE_cjs.selectStandardPaymentOption(paymentRequired.accepts);
|
|
2947
2947
|
if (!option) {
|
|
2948
2948
|
throw noCompatiblePaymentOptionError(paymentRequired.accepts);
|
|
2949
2949
|
}
|
|
2950
|
-
const idempotencyKey = options.idempotencyKey ??
|
|
2950
|
+
const idempotencyKey = options.idempotencyKey ?? chunkXKGZLATE_cjs.buildX402IdempotencyKey(paymentRequired, option);
|
|
2951
2951
|
const cached = this.fundingLeg.cachedReceipt(idempotencyKey);
|
|
2952
2952
|
if (cached) return cached;
|
|
2953
2953
|
const inFlight = this.inFlightX402.get(idempotencyKey);
|
|
@@ -2996,7 +2996,7 @@ var HavenClient = class {
|
|
|
2996
2996
|
if (response.headers.get("MACHINE-PAYMENT-CHALLENGE")) {
|
|
2997
2997
|
throw new chunkC4BG4HER_cjs.HavenApiError("quoteX402 only supports standard x402 Payment Required responses.", 400);
|
|
2998
2998
|
}
|
|
2999
|
-
const paymentRequired = await
|
|
2999
|
+
const paymentRequired = await chunkXKGZLATE_cjs.parsePaymentRequiredResponse(response);
|
|
3000
3000
|
const mcpTransport = await this.merchantTransport.detect(url, paymentRequired, response);
|
|
3001
3001
|
return buildX402Quote(paymentRequired, request, options.idempotencyKey, mcpTransport);
|
|
3002
3002
|
}
|
|
@@ -3095,11 +3095,11 @@ var HavenClient = class {
|
|
|
3095
3095
|
if (!this.delegateAddress) {
|
|
3096
3096
|
throw new chunkC4BG4HER_cjs.HavenSigningError("delegateAddress could not be derived from delegateKey.");
|
|
3097
3097
|
}
|
|
3098
|
-
const option =
|
|
3098
|
+
const option = chunkXKGZLATE_cjs.selectStandardPaymentOption(input.paymentRequired.accepts);
|
|
3099
3099
|
if (!option) {
|
|
3100
3100
|
throw noCompatiblePaymentOptionError(input.paymentRequired.accepts);
|
|
3101
3101
|
}
|
|
3102
|
-
const idempotencyKey = input.idempotencyKey ??
|
|
3102
|
+
const idempotencyKey = input.idempotencyKey ?? chunkXKGZLATE_cjs.buildX402IdempotencyKey(input.paymentRequired, option);
|
|
3103
3103
|
const cached = this.fundingLeg.cachedReceipt(idempotencyKey);
|
|
3104
3104
|
if (cached) return cached;
|
|
3105
3105
|
const status = await this.getPaymentStatus(input.paymentId);
|
|
@@ -3107,7 +3107,7 @@ var HavenClient = class {
|
|
|
3107
3107
|
const canFund = await this.fundingLeg.delegateCanFund(
|
|
3108
3108
|
status.chainId ?? chainIdFromNetwork(option.network),
|
|
3109
3109
|
option.asset,
|
|
3110
|
-
|
|
3110
|
+
chunkXKGZLATE_cjs.x402AuthorizationAmount(option)
|
|
3111
3111
|
);
|
|
3112
3112
|
if (canFund === false) {
|
|
3113
3113
|
throw new chunkC4BG4HER_cjs.X402AlreadySettledError(
|
|
@@ -3137,7 +3137,7 @@ var HavenClient = class {
|
|
|
3137
3137
|
if (response.status !== 402) {
|
|
3138
3138
|
throw new chunkC4BG4HER_cjs.HavenApiError("Expected the original x402 request to return HTTP 402 before resuming.", 400);
|
|
3139
3139
|
}
|
|
3140
|
-
paymentRequired = await
|
|
3140
|
+
paymentRequired = await chunkXKGZLATE_cjs.parsePaymentRequiredResponse(response);
|
|
3141
3141
|
}
|
|
3142
3142
|
const receipt = await this.resumeAuthorizedX402({
|
|
3143
3143
|
paymentId: input.paymentId,
|
|
@@ -3190,7 +3190,7 @@ var HavenClient = class {
|
|
|
3190
3190
|
nativeChallenge = true;
|
|
3191
3191
|
} else {
|
|
3192
3192
|
try {
|
|
3193
|
-
paymentRequired = await
|
|
3193
|
+
paymentRequired = await chunkXKGZLATE_cjs.parsePaymentRequiredResponse(response);
|
|
3194
3194
|
} catch {
|
|
3195
3195
|
return response;
|
|
3196
3196
|
}
|
|
@@ -3200,8 +3200,8 @@ var HavenClient = class {
|
|
|
3200
3200
|
if (mcpSessionId) requestInit = this.merchantTransport.withSessionHeaders(requestInit, mcpSessionId);
|
|
3201
3201
|
}
|
|
3202
3202
|
const request = snapshotX402Request(url, requestInit);
|
|
3203
|
-
const option =
|
|
3204
|
-
const idempotencyKey = options.idempotencyKey ?? (option ?
|
|
3203
|
+
const option = chunkXKGZLATE_cjs.selectStandardPaymentOption(paymentRequired.accepts);
|
|
3204
|
+
const idempotencyKey = options.idempotencyKey ?? (option ? chunkXKGZLATE_cjs.buildX402IdempotencyKey(paymentRequired, option) : void 0);
|
|
3205
3205
|
let receipt;
|
|
3206
3206
|
try {
|
|
3207
3207
|
receipt = await this.authorizeX402(paymentRequired, options);
|
|
@@ -3328,7 +3328,7 @@ var HavenClient = class {
|
|
|
3328
3328
|
txHash: evidenceTxHash,
|
|
3329
3329
|
resourceUrl: evidenceContext.resourceUrl,
|
|
3330
3330
|
merchantStatus: surfaced.status,
|
|
3331
|
-
paymentProofHeaderName:
|
|
3331
|
+
paymentProofHeaderName: chunkXKGZLATE_cjs.x402PaymentHeaderNamesSent(input.paymentHeader),
|
|
3332
3332
|
paymentProofHeader: input.paymentHeader,
|
|
3333
3333
|
protocolReceiptHeaderName,
|
|
3334
3334
|
protocolReceiptHeader
|
|
@@ -4325,219 +4325,219 @@ function sameUrl(a, b) {
|
|
|
4325
4325
|
|
|
4326
4326
|
Object.defineProperty(exports, "DEFAULT_NEXT_TOOL_BY_ACTION", {
|
|
4327
4327
|
enumerable: true,
|
|
4328
|
-
get: function () { return
|
|
4328
|
+
get: function () { return chunkXKGZLATE_cjs.DEFAULT_NEXT_TOOL_BY_ACTION; }
|
|
4329
4329
|
});
|
|
4330
4330
|
Object.defineProperty(exports, "ERC7710_ASSET_TRANSFER_METHOD", {
|
|
4331
4331
|
enumerable: true,
|
|
4332
|
-
get: function () { return
|
|
4332
|
+
get: function () { return chunkXKGZLATE_cjs.ERC7710_ASSET_TRANSFER_METHOD; }
|
|
4333
4333
|
});
|
|
4334
4334
|
Object.defineProperty(exports, "HAVEN_MINIMUM_NODE_VERSION", {
|
|
4335
4335
|
enumerable: true,
|
|
4336
|
-
get: function () { return
|
|
4336
|
+
get: function () { return chunkXKGZLATE_cjs.HAVEN_MINIMUM_NODE_VERSION; }
|
|
4337
4337
|
});
|
|
4338
4338
|
Object.defineProperty(exports, "HavenTypedDataRefusedError", {
|
|
4339
4339
|
enumerable: true,
|
|
4340
|
-
get: function () { return
|
|
4340
|
+
get: function () { return chunkXKGZLATE_cjs.HavenTypedDataRefusedError; }
|
|
4341
4341
|
});
|
|
4342
4342
|
Object.defineProperty(exports, "NEXT_TOOL_SERVER_NAMES", {
|
|
4343
4343
|
enumerable: true,
|
|
4344
|
-
get: function () { return
|
|
4344
|
+
get: function () { return chunkXKGZLATE_cjs.NEXT_TOOL_SERVER_NAMES; }
|
|
4345
4345
|
});
|
|
4346
4346
|
Object.defineProperty(exports, "NEXT_TOOL_SERVER_ROLES", {
|
|
4347
4347
|
enumerable: true,
|
|
4348
|
-
get: function () { return
|
|
4348
|
+
get: function () { return chunkXKGZLATE_cjs.NEXT_TOOL_SERVER_ROLES; }
|
|
4349
4349
|
});
|
|
4350
4350
|
Object.defineProperty(exports, "SWEEP_BASE_CHAIN_ID", {
|
|
4351
4351
|
enumerable: true,
|
|
4352
|
-
get: function () { return
|
|
4352
|
+
get: function () { return chunkXKGZLATE_cjs.SWEEP_BASE_CHAIN_ID; }
|
|
4353
4353
|
});
|
|
4354
4354
|
Object.defineProperty(exports, "SWEEP_BASE_SEPOLIA_CHAIN_ID", {
|
|
4355
4355
|
enumerable: true,
|
|
4356
|
-
get: function () { return
|
|
4356
|
+
get: function () { return chunkXKGZLATE_cjs.SWEEP_BASE_SEPOLIA_CHAIN_ID; }
|
|
4357
4357
|
});
|
|
4358
4358
|
Object.defineProperty(exports, "SWEEP_BASE_SEPOLIA_USDC_ADDRESS", {
|
|
4359
4359
|
enumerable: true,
|
|
4360
|
-
get: function () { return
|
|
4360
|
+
get: function () { return chunkXKGZLATE_cjs.SWEEP_BASE_SEPOLIA_USDC_ADDRESS; }
|
|
4361
4361
|
});
|
|
4362
4362
|
Object.defineProperty(exports, "SWEEP_BASE_USDC_ADDRESS", {
|
|
4363
4363
|
enumerable: true,
|
|
4364
|
-
get: function () { return
|
|
4364
|
+
get: function () { return chunkXKGZLATE_cjs.SWEEP_BASE_USDC_ADDRESS; }
|
|
4365
4365
|
});
|
|
4366
4366
|
Object.defineProperty(exports, "TRANSFER_WITH_AUTHORIZATION_TYPES", {
|
|
4367
4367
|
enumerable: true,
|
|
4368
|
-
get: function () { return
|
|
4368
|
+
get: function () { return chunkXKGZLATE_cjs.TRANSFER_WITH_AUTHORIZATION_TYPES; }
|
|
4369
4369
|
});
|
|
4370
4370
|
Object.defineProperty(exports, "TYPED_DATA_NOT_ALLOWED", {
|
|
4371
4371
|
enumerable: true,
|
|
4372
|
-
get: function () { return
|
|
4372
|
+
get: function () { return chunkXKGZLATE_cjs.TYPED_DATA_NOT_ALLOWED; }
|
|
4373
4373
|
});
|
|
4374
4374
|
Object.defineProperty(exports, "X402PaymentHeaderValidationError", {
|
|
4375
4375
|
enumerable: true,
|
|
4376
|
-
get: function () { return
|
|
4376
|
+
get: function () { return chunkXKGZLATE_cjs.X402PaymentHeaderValidationError; }
|
|
4377
4377
|
});
|
|
4378
4378
|
Object.defineProperty(exports, "X402_LEGACY_PAYMENT_HEADER_NAME", {
|
|
4379
4379
|
enumerable: true,
|
|
4380
|
-
get: function () { return
|
|
4380
|
+
get: function () { return chunkXKGZLATE_cjs.X402_LEGACY_PAYMENT_HEADER_NAME; }
|
|
4381
4381
|
});
|
|
4382
4382
|
Object.defineProperty(exports, "X402_MAX_AUTHORIZATION_WINDOW_SECONDS", {
|
|
4383
4383
|
enumerable: true,
|
|
4384
|
-
get: function () { return
|
|
4384
|
+
get: function () { return chunkXKGZLATE_cjs.X402_MAX_AUTHORIZATION_WINDOW_SECONDS; }
|
|
4385
4385
|
});
|
|
4386
4386
|
Object.defineProperty(exports, "X402_PAYMENT_HEADER_NAME", {
|
|
4387
4387
|
enumerable: true,
|
|
4388
|
-
get: function () { return
|
|
4388
|
+
get: function () { return chunkXKGZLATE_cjs.X402_PAYMENT_HEADER_NAME; }
|
|
4389
4389
|
});
|
|
4390
4390
|
Object.defineProperty(exports, "X402_PAYMENT_HEADER_NAMES_SENT", {
|
|
4391
4391
|
enumerable: true,
|
|
4392
|
-
get: function () { return
|
|
4392
|
+
get: function () { return chunkXKGZLATE_cjs.X402_PAYMENT_HEADER_NAMES_SENT; }
|
|
4393
4393
|
});
|
|
4394
4394
|
Object.defineProperty(exports, "X402_PAYMENT_REQUIRED_HEADER_NAME", {
|
|
4395
4395
|
enumerable: true,
|
|
4396
|
-
get: function () { return
|
|
4396
|
+
get: function () { return chunkXKGZLATE_cjs.X402_PAYMENT_REQUIRED_HEADER_NAME; }
|
|
4397
4397
|
});
|
|
4398
4398
|
Object.defineProperty(exports, "X402_PAYMENT_RESPONSE_HEADER_NAME", {
|
|
4399
4399
|
enumerable: true,
|
|
4400
|
-
get: function () { return
|
|
4400
|
+
get: function () { return chunkXKGZLATE_cjs.X402_PAYMENT_RESPONSE_HEADER_NAME; }
|
|
4401
4401
|
});
|
|
4402
4402
|
Object.defineProperty(exports, "X402_SETTLEMENT_FORWARD_MARGIN_SECONDS", {
|
|
4403
4403
|
enumerable: true,
|
|
4404
|
-
get: function () { return
|
|
4404
|
+
get: function () { return chunkXKGZLATE_cjs.X402_SETTLEMENT_FORWARD_MARGIN_SECONDS; }
|
|
4405
4405
|
});
|
|
4406
4406
|
Object.defineProperty(exports, "assertBoundDirectPaymentUserOp", {
|
|
4407
4407
|
enumerable: true,
|
|
4408
|
-
get: function () { return
|
|
4408
|
+
get: function () { return chunkXKGZLATE_cjs.assertBoundDirectPaymentUserOp; }
|
|
4409
4409
|
});
|
|
4410
4410
|
Object.defineProperty(exports, "buildSweepAuthorizationMessage", {
|
|
4411
4411
|
enumerable: true,
|
|
4412
|
-
get: function () { return
|
|
4412
|
+
get: function () { return chunkXKGZLATE_cjs.buildSweepAuthorizationMessage; }
|
|
4413
4413
|
});
|
|
4414
4414
|
Object.defineProperty(exports, "buildSweepTypedData", {
|
|
4415
4415
|
enumerable: true,
|
|
4416
|
-
get: function () { return
|
|
4416
|
+
get: function () { return chunkXKGZLATE_cjs.buildSweepTypedData; }
|
|
4417
4417
|
});
|
|
4418
4418
|
Object.defineProperty(exports, "buildX402ExpectedMessage", {
|
|
4419
4419
|
enumerable: true,
|
|
4420
|
-
get: function () { return
|
|
4420
|
+
get: function () { return chunkXKGZLATE_cjs.buildX402ExpectedMessage; }
|
|
4421
4421
|
});
|
|
4422
4422
|
Object.defineProperty(exports, "compareNodeVersions", {
|
|
4423
4423
|
enumerable: true,
|
|
4424
|
-
get: function () { return
|
|
4424
|
+
get: function () { return chunkXKGZLATE_cjs.compareNodeVersions; }
|
|
4425
4425
|
});
|
|
4426
4426
|
Object.defineProperty(exports, "createNextStepBuilder", {
|
|
4427
4427
|
enumerable: true,
|
|
4428
|
-
get: function () { return
|
|
4428
|
+
get: function () { return chunkXKGZLATE_cjs.createNextStepBuilder; }
|
|
4429
4429
|
});
|
|
4430
4430
|
Object.defineProperty(exports, "decodeBase64Json", {
|
|
4431
4431
|
enumerable: true,
|
|
4432
|
-
get: function () { return
|
|
4432
|
+
get: function () { return chunkXKGZLATE_cjs.decodeBase64Json; }
|
|
4433
4433
|
});
|
|
4434
4434
|
Object.defineProperty(exports, "decodeBase64Utf8", {
|
|
4435
4435
|
enumerable: true,
|
|
4436
|
-
get: function () { return
|
|
4436
|
+
get: function () { return chunkXKGZLATE_cjs.decodeBase64Utf8; }
|
|
4437
4437
|
});
|
|
4438
4438
|
Object.defineProperty(exports, "defaultNextToolFor", {
|
|
4439
4439
|
enumerable: true,
|
|
4440
|
-
get: function () { return
|
|
4440
|
+
get: function () { return chunkXKGZLATE_cjs.defaultNextToolFor; }
|
|
4441
4441
|
});
|
|
4442
4442
|
Object.defineProperty(exports, "encodeBase64Json", {
|
|
4443
4443
|
enumerable: true,
|
|
4444
|
-
get: function () { return
|
|
4444
|
+
get: function () { return chunkXKGZLATE_cjs.encodeBase64Json; }
|
|
4445
4445
|
});
|
|
4446
4446
|
Object.defineProperty(exports, "encodeBase64Utf8", {
|
|
4447
4447
|
enumerable: true,
|
|
4448
|
-
get: function () { return
|
|
4448
|
+
get: function () { return chunkXKGZLATE_cjs.encodeBase64Utf8; }
|
|
4449
4449
|
});
|
|
4450
4450
|
Object.defineProperty(exports, "encodePaymentProof", {
|
|
4451
4451
|
enumerable: true,
|
|
4452
|
-
get: function () { return
|
|
4452
|
+
get: function () { return chunkXKGZLATE_cjs.encodePaymentProof; }
|
|
4453
4453
|
});
|
|
4454
4454
|
Object.defineProperty(exports, "isErc7710Option", {
|
|
4455
4455
|
enumerable: true,
|
|
4456
|
-
get: function () { return
|
|
4456
|
+
get: function () { return chunkXKGZLATE_cjs.isErc7710Option; }
|
|
4457
4457
|
});
|
|
4458
4458
|
Object.defineProperty(exports, "isSupportedNodeVersion", {
|
|
4459
4459
|
enumerable: true,
|
|
4460
|
-
get: function () { return
|
|
4460
|
+
get: function () { return chunkXKGZLATE_cjs.isSupportedNodeVersion; }
|
|
4461
4461
|
});
|
|
4462
4462
|
Object.defineProperty(exports, "isSweepableChain", {
|
|
4463
4463
|
enumerable: true,
|
|
4464
|
-
get: function () { return
|
|
4464
|
+
get: function () { return chunkXKGZLATE_cjs.isSweepableChain; }
|
|
4465
4465
|
});
|
|
4466
4466
|
Object.defineProperty(exports, "normalizePaymentRequired", {
|
|
4467
4467
|
enumerable: true,
|
|
4468
|
-
get: function () { return
|
|
4468
|
+
get: function () { return chunkXKGZLATE_cjs.normalizePaymentRequired; }
|
|
4469
4469
|
});
|
|
4470
4470
|
Object.defineProperty(exports, "parseNextTool", {
|
|
4471
4471
|
enumerable: true,
|
|
4472
|
-
get: function () { return
|
|
4472
|
+
get: function () { return chunkXKGZLATE_cjs.parseNextTool; }
|
|
4473
4473
|
});
|
|
4474
4474
|
Object.defineProperty(exports, "parsePaymentRequired", {
|
|
4475
4475
|
enumerable: true,
|
|
4476
|
-
get: function () { return
|
|
4476
|
+
get: function () { return chunkXKGZLATE_cjs.parsePaymentRequired; }
|
|
4477
4477
|
});
|
|
4478
4478
|
Object.defineProperty(exports, "parsePaymentRequiredResponse", {
|
|
4479
4479
|
enumerable: true,
|
|
4480
|
-
get: function () { return
|
|
4480
|
+
get: function () { return chunkXKGZLATE_cjs.parsePaymentRequiredResponse; }
|
|
4481
4481
|
});
|
|
4482
4482
|
Object.defineProperty(exports, "renderNextTool", {
|
|
4483
4483
|
enumerable: true,
|
|
4484
|
-
get: function () { return
|
|
4484
|
+
get: function () { return chunkXKGZLATE_cjs.renderNextTool; }
|
|
4485
4485
|
});
|
|
4486
4486
|
Object.defineProperty(exports, "resolveTokenFromAddress", {
|
|
4487
4487
|
enumerable: true,
|
|
4488
|
-
get: function () { return
|
|
4488
|
+
get: function () { return chunkXKGZLATE_cjs.resolveTokenFromAddress; }
|
|
4489
4489
|
});
|
|
4490
4490
|
Object.defineProperty(exports, "selectErc7710PaymentOption", {
|
|
4491
4491
|
enumerable: true,
|
|
4492
|
-
get: function () { return
|
|
4492
|
+
get: function () { return chunkXKGZLATE_cjs.selectErc7710PaymentOption; }
|
|
4493
4493
|
});
|
|
4494
4494
|
Object.defineProperty(exports, "selectPaymentOption", {
|
|
4495
4495
|
enumerable: true,
|
|
4496
|
-
get: function () { return
|
|
4496
|
+
get: function () { return chunkXKGZLATE_cjs.selectPaymentOption; }
|
|
4497
4497
|
});
|
|
4498
4498
|
Object.defineProperty(exports, "selectStandardPaymentOption", {
|
|
4499
4499
|
enumerable: true,
|
|
4500
|
-
get: function () { return
|
|
4500
|
+
get: function () { return chunkXKGZLATE_cjs.selectStandardPaymentOption; }
|
|
4501
4501
|
});
|
|
4502
4502
|
Object.defineProperty(exports, "selectX402SettlementScheme", {
|
|
4503
4503
|
enumerable: true,
|
|
4504
|
-
get: function () { return
|
|
4504
|
+
get: function () { return chunkXKGZLATE_cjs.selectX402SettlementScheme; }
|
|
4505
4505
|
});
|
|
4506
4506
|
Object.defineProperty(exports, "sweepUsdcAddress", {
|
|
4507
4507
|
enumerable: true,
|
|
4508
|
-
get: function () { return
|
|
4508
|
+
get: function () { return chunkXKGZLATE_cjs.sweepUsdcAddress; }
|
|
4509
4509
|
});
|
|
4510
4510
|
Object.defineProperty(exports, "sweepUsdcDomain", {
|
|
4511
4511
|
enumerable: true,
|
|
4512
|
-
get: function () { return
|
|
4512
|
+
get: function () { return chunkXKGZLATE_cjs.sweepUsdcDomain; }
|
|
4513
4513
|
});
|
|
4514
4514
|
Object.defineProperty(exports, "toStandardPaymentRequirements", {
|
|
4515
4515
|
enumerable: true,
|
|
4516
|
-
get: function () { return
|
|
4516
|
+
get: function () { return chunkXKGZLATE_cjs.toStandardPaymentRequirements; }
|
|
4517
4517
|
});
|
|
4518
4518
|
Object.defineProperty(exports, "unsupportedNodeVersionMessage", {
|
|
4519
4519
|
enumerable: true,
|
|
4520
|
-
get: function () { return
|
|
4520
|
+
get: function () { return chunkXKGZLATE_cjs.unsupportedNodeVersionMessage; }
|
|
4521
4521
|
});
|
|
4522
4522
|
Object.defineProperty(exports, "validateStandardX402PaymentHeader", {
|
|
4523
4523
|
enumerable: true,
|
|
4524
|
-
get: function () { return
|
|
4524
|
+
get: function () { return chunkXKGZLATE_cjs.validateStandardX402PaymentHeader; }
|
|
4525
4525
|
});
|
|
4526
4526
|
Object.defineProperty(exports, "x402AssetTransferMethod", {
|
|
4527
4527
|
enumerable: true,
|
|
4528
|
-
get: function () { return
|
|
4528
|
+
get: function () { return chunkXKGZLATE_cjs.x402AssetTransferMethod; }
|
|
4529
4529
|
});
|
|
4530
4530
|
Object.defineProperty(exports, "x402AuthorizationAmount", {
|
|
4531
4531
|
enumerable: true,
|
|
4532
|
-
get: function () { return
|
|
4532
|
+
get: function () { return chunkXKGZLATE_cjs.x402AuthorizationAmount; }
|
|
4533
4533
|
});
|
|
4534
4534
|
Object.defineProperty(exports, "x402FacilitatorAddresses", {
|
|
4535
4535
|
enumerable: true,
|
|
4536
|
-
get: function () { return
|
|
4536
|
+
get: function () { return chunkXKGZLATE_cjs.x402FacilitatorAddresses; }
|
|
4537
4537
|
});
|
|
4538
4538
|
Object.defineProperty(exports, "x402V2PaymentEnvelope", {
|
|
4539
4539
|
enumerable: true,
|
|
4540
|
-
get: function () { return
|
|
4540
|
+
get: function () { return chunkXKGZLATE_cjs.x402V2PaymentEnvelope; }
|
|
4541
4541
|
});
|
|
4542
4542
|
Object.defineProperty(exports, "AGENT_PAYMENT_FAILURE_CODE_VALUES", {
|
|
4543
4543
|
enumerable: true,
|