@dvmkit/sdk 0.1.5-rc.8 → 0.1.5-rc.9
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-UB5FZ43T.js → chunk-5PBOA25N.js} +39 -11
- package/dist/{credit-menu-s5HmGCqx.d.ts → credit-menu-enwMbn55.d.ts} +1 -1
- package/dist/internal/server.d.ts +2 -2
- package/dist/internal/server.js +1 -1
- package/dist/server/index.d.ts +2 -2
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
|
@@ -3049,6 +3049,26 @@ function msatsToMethodAmount(msats, methodName, btcUsd) {
|
|
|
3049
3049
|
const usd = msatsToUsd(msats, btcUsd);
|
|
3050
3050
|
return usd.toFixed(decimalsFor(methodName));
|
|
3051
3051
|
}
|
|
3052
|
+
function fiatMicroToMethodAmount(amountMicro, methodName) {
|
|
3053
|
+
if (!Number.isSafeInteger(amountMicro) || amountMicro < 0) {
|
|
3054
|
+
throw new Error("mpp-units: fiat amount must be a non-negative safe integer");
|
|
3055
|
+
}
|
|
3056
|
+
const decimals = decimalsFor(methodName);
|
|
3057
|
+
const microDecimals = 6;
|
|
3058
|
+
let atomic = BigInt(amountMicro);
|
|
3059
|
+
if (decimals < microDecimals) {
|
|
3060
|
+
const divisor = 10n ** BigInt(microDecimals - decimals);
|
|
3061
|
+
if (atomic % divisor !== 0n) {
|
|
3062
|
+
throw new Error(
|
|
3063
|
+
`mpp-units: fiat microunits cannot be represented exactly with ${decimals} decimals`
|
|
3064
|
+
);
|
|
3065
|
+
}
|
|
3066
|
+
atomic /= divisor;
|
|
3067
|
+
} else if (decimals > microDecimals) {
|
|
3068
|
+
atomic *= 10n ** BigInt(decimals - microDecimals);
|
|
3069
|
+
}
|
|
3070
|
+
return methodNativeAmountToDecimal(atomic, methodName);
|
|
3071
|
+
}
|
|
3052
3072
|
function methodNativeAsset(methodName) {
|
|
3053
3073
|
switch (methodName) {
|
|
3054
3074
|
case "tempo":
|
|
@@ -3287,7 +3307,7 @@ var PAYMENT_PROOF_KEYS = ["cashu_token", "x402_payment", "tempo_credential"];
|
|
|
3287
3307
|
function hasPaymentProof(content) {
|
|
3288
3308
|
return PAYMENT_PROOF_KEYS.some((key) => Boolean(content[key]));
|
|
3289
3309
|
}
|
|
3290
|
-
async function issueUpfrontChallenges(mpp, requiredMsats, resourcePath, btcUsdRate, sessionIssuable = true, allowOneShotStablecoin = false) {
|
|
3310
|
+
async function issueUpfrontChallenges(mpp, requiredMsats, resourcePath, btcUsdRate, sessionIssuable = true, allowOneShotStablecoin = false, priceFiat) {
|
|
3291
3311
|
return loggers.tempo.span(
|
|
3292
3312
|
"tempo.issue_challenges",
|
|
3293
3313
|
{
|
|
@@ -3305,7 +3325,7 @@ async function issueUpfrontChallenges(mpp, requiredMsats, resourcePath, btcUsdRa
|
|
|
3305
3325
|
if (creditSurface && meta.intent === "charge" && !stablecoinCreditInstrumentAllowed(allowOneShotStablecoin, "tempo_charge")) {
|
|
3306
3326
|
continue;
|
|
3307
3327
|
}
|
|
3308
|
-
const amount = msatsToMethodAmount(requiredMsats, meta.name, btcUsdRate);
|
|
3328
|
+
const amount = priceFiat?.currency === "usd" ? fiatMicroToMethodAmount(priceFiat.amountMicro, meta.name) : msatsToMethodAmount(requiredMsats, meta.name, btcUsdRate);
|
|
3309
3329
|
const ch = await mpp.issueChallenge(meta.name, meta.intent, {
|
|
3310
3330
|
amount,
|
|
3311
3331
|
...meta.intent === "session" && { suggestedDeposit: amount, unitType: "request" },
|
|
@@ -3783,13 +3803,14 @@ async function verifyUpfrontPayment(opts) {
|
|
|
3783
3803
|
resourcePath ?? "/v1/job",
|
|
3784
3804
|
rate,
|
|
3785
3805
|
sessionIssuable,
|
|
3786
|
-
opts.fundOnly?.allowOneShotStablecoin
|
|
3806
|
+
opts.fundOnly?.allowOneShotStablecoin,
|
|
3807
|
+
opts.priceFiat
|
|
3787
3808
|
)
|
|
3788
3809
|
}
|
|
3789
3810
|
};
|
|
3790
3811
|
}
|
|
3791
3812
|
}
|
|
3792
|
-
const expectedAmount = msatsToMethodAmount(requiredMsats, cred.challenge.method, rate);
|
|
3813
|
+
const expectedAmount = opts.priceFiat?.currency === "usd" ? fiatMicroToMethodAmount(opts.priceFiat.amountMicro, cred.challenge.method) : msatsToMethodAmount(requiredMsats, cred.challenge.method, rate);
|
|
3793
3814
|
const sessionBasis = mppSessionBasis(cred);
|
|
3794
3815
|
let tempoReceipt;
|
|
3795
3816
|
const broadcast = async () => {
|
|
@@ -3862,7 +3883,8 @@ async function verifyUpfrontPayment(opts) {
|
|
|
3862
3883
|
resourcePath ?? "/v1/job",
|
|
3863
3884
|
rate,
|
|
3864
3885
|
sessionIssuable,
|
|
3865
|
-
opts.fundOnly?.allowOneShotStablecoin
|
|
3886
|
+
opts.fundOnly?.allowOneShotStablecoin,
|
|
3887
|
+
opts.priceFiat
|
|
3866
3888
|
);
|
|
3867
3889
|
return {
|
|
3868
3890
|
paidMsats: 0,
|
|
@@ -3886,7 +3908,8 @@ async function verifyUpfrontPayment(opts) {
|
|
|
3886
3908
|
resourcePath ?? "/v1/job",
|
|
3887
3909
|
rate,
|
|
3888
3910
|
sessionIssuable,
|
|
3889
|
-
opts.fundOnly?.allowOneShotStablecoin
|
|
3911
|
+
opts.fundOnly?.allowOneShotStablecoin,
|
|
3912
|
+
opts.priceFiat
|
|
3890
3913
|
);
|
|
3891
3914
|
return {
|
|
3892
3915
|
paidMsats: 0,
|
|
@@ -3952,7 +3975,8 @@ async function verifyUpfrontPayment(opts) {
|
|
|
3952
3975
|
resourcePath ?? "/v1/job",
|
|
3953
3976
|
rate,
|
|
3954
3977
|
sessionIssuable,
|
|
3955
|
-
opts.fundOnly?.allowOneShotStablecoin
|
|
3978
|
+
opts.fundOnly?.allowOneShotStablecoin,
|
|
3979
|
+
opts.priceFiat
|
|
3956
3980
|
);
|
|
3957
3981
|
return {
|
|
3958
3982
|
paidMsats: 0,
|
|
@@ -4015,7 +4039,8 @@ async function verifyUpfrontPayment(opts) {
|
|
|
4015
4039
|
resourcePath ?? "/v1/job",
|
|
4016
4040
|
rate,
|
|
4017
4041
|
sessionIssuable,
|
|
4018
|
-
opts.fundOnly?.allowOneShotStablecoin
|
|
4042
|
+
opts.fundOnly?.allowOneShotStablecoin,
|
|
4043
|
+
opts.priceFiat
|
|
4019
4044
|
) : void 0;
|
|
4020
4045
|
return {
|
|
4021
4046
|
paidMsats: 0,
|
|
@@ -4696,7 +4721,10 @@ async function verifyIncomingPayment(body, opts, snapshot) {
|
|
|
4696
4721
|
}
|
|
4697
4722
|
};
|
|
4698
4723
|
}
|
|
4699
|
-
const expectedAmount =
|
|
4724
|
+
const expectedAmount = snapshot.pendingPaymentFiatCurrency === "usd" && snapshot.pendingPaymentFiatMicro !== void 0 ? fiatMicroToMethodAmount(
|
|
4725
|
+
snapshot.pendingPaymentFiatMicro,
|
|
4726
|
+
credential.challenge.method
|
|
4727
|
+
) : msatsToMethodAmount(expectedMsats, credential.challenge.method, rate);
|
|
4700
4728
|
const expectedMeta = challengeMeta(credential.challenge);
|
|
4701
4729
|
const creditNative = methodNativeAmountFromDecimal(
|
|
4702
4730
|
expectedAmount,
|
|
@@ -5041,7 +5069,7 @@ async function processIncomingPayment(job, body, opts) {
|
|
|
5041
5069
|
status: 402
|
|
5042
5070
|
};
|
|
5043
5071
|
}
|
|
5044
|
-
const expectedAmount = msatsToMethodAmount(expectedMsats, credential.challenge.method, rate);
|
|
5072
|
+
const expectedAmount = job.pendingPaymentFiatCurrency === "usd" && job.pendingPaymentFiatMicro !== void 0 ? fiatMicroToMethodAmount(job.pendingPaymentFiatMicro, credential.challenge.method) : msatsToMethodAmount(expectedMsats, credential.challenge.method, rate);
|
|
5045
5073
|
const expectedMeta = challengeMeta(credential.challenge);
|
|
5046
5074
|
await loggers.tempo.span(
|
|
5047
5075
|
"tempo.verify_credential",
|
|
@@ -9494,7 +9522,7 @@ function buildContext(job, opts) {
|
|
|
9494
9522
|
for (const m of opts.mpp.methods) {
|
|
9495
9523
|
const meta = m;
|
|
9496
9524
|
if (meta.intent === "session") continue;
|
|
9497
|
-
const amount2 = msatsToMethodAmount(amountMsats, meta.name, rate);
|
|
9525
|
+
const amount2 = pendingFiat?.currency === "usd" ? fiatMicroToMethodAmount(pendingFiat.amountMicro, meta.name) : msatsToMethodAmount(amountMsats, meta.name, rate);
|
|
9498
9526
|
const ch = await opts.mpp.issueChallenge(meta.name, meta.intent, {
|
|
9499
9527
|
amount: amount2,
|
|
9500
9528
|
description: reason
|
|
@@ -2174,7 +2174,7 @@ declare function hasPaymentProof(content: Record<string, unknown>): boolean;
|
|
|
2174
2174
|
* suppresses it unless the builder accepts the manual-refund obligation; job
|
|
2175
2175
|
* surfaces always keep charge.
|
|
2176
2176
|
*/
|
|
2177
|
-
declare function issueUpfrontChallenges(mpp: MppxServer, requiredMsats: number, resourcePath: string, btcUsdRate: number, sessionIssuable?: boolean, allowOneShotStablecoin?: unknown): Promise<Challenge.Challenge[]>;
|
|
2177
|
+
declare function issueUpfrontChallenges(mpp: MppxServer, requiredMsats: number, resourcePath: string, btcUsdRate: number, sessionIssuable?: boolean, allowOneShotStablecoin?: unknown, priceFiat?: PriceFiat): Promise<Challenge.Challenge[]>;
|
|
2178
2178
|
/** Verify an upfront payment on job submission (Cashu, x402, or MPP). */
|
|
2179
2179
|
declare function verifyUpfrontPayment(opts: UpfrontPaymentOpts): Promise<PaymentResult>;
|
|
2180
2180
|
/**
|
|
@@ -6,8 +6,8 @@ import { Env, BlankSchema } from 'hono/types';
|
|
|
6
6
|
import { Pool } from 'pg';
|
|
7
7
|
export { Pool } from 'pg';
|
|
8
8
|
import { g as getWallet } from '../wallet-CJC8lwxx.js';
|
|
9
|
-
import { A as AccumulatorPool, a as AccumulatorQuerier, C as ConsumedCredentialStore } from '../credit-menu-
|
|
10
|
-
export { b as AppEnv, c as CreditFundingReport, F as FiatDenomination, d as FiatDenominationFailure, e as FundOnlyRequest, I as IncomingPaymentOpts, J as JobCancelledError, M as MintHealthTracker, P as PAYMENT_PROOF_KEYS, f as PaymentErrorCode, g as PaymentErrorDetail, h as PaymentInfo, R as ReporterBannerOpts, i as ResolvedFx, j as RevenueBootCheckOpts, S as SDKServerOpts, k as ServerJob, l as ShortPayForfeit, T as TempoChannelReport, m as TempoObserverHealth, n as TempoSessionChannelMismatchError, U as UpfrontPaymentOpts, V as VerifiedIncomingPayment, o as VerifyIncomingSnapshot, X as X402BatchChannelObservation, p as X402FacilitatorHealth, q as X402SettlementEvidenceOutcome, r as X402SettlementRepair, s as X402SettlementRepairRefusal, t as X402SettlementRepaired, u as X402WedgedSettlement, v as X402WedgedSettlementPage, w as X402_BATCH_SETTLEMENT_MAINNET_NETWORK, x as abortJob, y as applyPaymentInfoToJob, z as assertRevenueReporterReady, B as buildPaymentErrorResponse, D as clearAccumulatorForDvm, E as createDVMServer, G as creditDepositPayload, H as derivedFundCreditId, K as devModeSkipsPaymentVerification, L as fromJobRecord, N as fundedMicroFor, O as hasPaymentProof, Q as hashLockKey, W as implicitCreditId, Y as initWalletAccumulatorTable, Z as insertAccumulatorRows, _ as isDerivedCreditId, $ as isTerminal, a0 as isYieldMessage, a1 as issueUpfrontChallenges, a2 as msatsToFiatMicro, a3 as paymentErrorBody, a4 as pinAskFiat, a5 as priceFiatMicro, a6 as processIncomingPayment, a7 as providerMessage, a8 as repairX402ExactSettlementEffect, a9 as resolveFxSnapshot, aa as resolvePriceFiat, ab as revenueReporterBannerState, ac as toCreditTerms, ad as toJobRecord, ae as unknownRouteNotFound, af as verifyIncomingPayment, ag as verifyTempoSessionManagementCredential, ah as verifyUpfrontPayment, ai as x402RequiredUsdcMicro, aj as x402SettledShare } from '../credit-menu-
|
|
9
|
+
import { A as AccumulatorPool, a as AccumulatorQuerier, C as ConsumedCredentialStore } from '../credit-menu-enwMbn55.js';
|
|
10
|
+
export { b as AppEnv, c as CreditFundingReport, F as FiatDenomination, d as FiatDenominationFailure, e as FundOnlyRequest, I as IncomingPaymentOpts, J as JobCancelledError, M as MintHealthTracker, P as PAYMENT_PROOF_KEYS, f as PaymentErrorCode, g as PaymentErrorDetail, h as PaymentInfo, R as ReporterBannerOpts, i as ResolvedFx, j as RevenueBootCheckOpts, S as SDKServerOpts, k as ServerJob, l as ShortPayForfeit, T as TempoChannelReport, m as TempoObserverHealth, n as TempoSessionChannelMismatchError, U as UpfrontPaymentOpts, V as VerifiedIncomingPayment, o as VerifyIncomingSnapshot, X as X402BatchChannelObservation, p as X402FacilitatorHealth, q as X402SettlementEvidenceOutcome, r as X402SettlementRepair, s as X402SettlementRepairRefusal, t as X402SettlementRepaired, u as X402WedgedSettlement, v as X402WedgedSettlementPage, w as X402_BATCH_SETTLEMENT_MAINNET_NETWORK, x as abortJob, y as applyPaymentInfoToJob, z as assertRevenueReporterReady, B as buildPaymentErrorResponse, D as clearAccumulatorForDvm, E as createDVMServer, G as creditDepositPayload, H as derivedFundCreditId, K as devModeSkipsPaymentVerification, L as fromJobRecord, N as fundedMicroFor, O as hasPaymentProof, Q as hashLockKey, W as implicitCreditId, Y as initWalletAccumulatorTable, Z as insertAccumulatorRows, _ as isDerivedCreditId, $ as isTerminal, a0 as isYieldMessage, a1 as issueUpfrontChallenges, a2 as msatsToFiatMicro, a3 as paymentErrorBody, a4 as pinAskFiat, a5 as priceFiatMicro, a6 as processIncomingPayment, a7 as providerMessage, a8 as repairX402ExactSettlementEffect, a9 as resolveFxSnapshot, aa as resolvePriceFiat, ab as revenueReporterBannerState, ac as toCreditTerms, ad as toJobRecord, ae as unknownRouteNotFound, af as verifyIncomingPayment, ag as verifyTempoSessionManagementCredential, ah as verifyUpfrontPayment, ai as x402RequiredUsdcMicro, aj as x402SettledShare } from '../credit-menu-enwMbn55.js';
|
|
11
11
|
import { g as LockPubkey } from '../lightning-backend-BozcevPZ.js';
|
|
12
12
|
export { t as lockPubkeyStoreToLockPubkey } from '../lightning-backend-BozcevPZ.js';
|
|
13
13
|
export { O as OutgoingMessage, S as StaleJobReapable, i as isStaleJobReapable } from '../job-store-BUGqvCfL.js';
|
package/dist/internal/server.js
CHANGED
package/dist/server/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ab as CashuMode, bK as CreditDrainEnqueue, R as ResolvedCreditConfig, bL as DVMAuthScheme, z as SignedRequestDomain, bM as CreditLedgerLike, bN as X402RefundSettlementGate, bO as CreditSnapshot, bP as DrawResult, bQ as X402SettlementStatus, bR as X402UnresolvedRefund, bS as GrownDrawResult, bT as DrawResolution, bU as FundingRecord, X as FundingReceipt, bV as CreditInvoiceRecord, bW as InvoiceSettlement, bX as BlockedInvoiceCursor, bY as InvoiceReconciliation, bZ as InvoiceWriteOff, b_ as DrawRecord, b$ as StalePendingDrawCursor, c0 as TempoCreditLossEvidence, c1 as CreditLedgerQuerier, c2 as TempoCreditLoss, c3 as X402CreditLossEvidence, c4 as X402CreditLoss, c5 as DrainMethod, c6 as DrainRequestResult, c7 as BitcoinDepositLiability, bo as FundingLot, c8 as CreditDrainRecord, c9 as ChannelDrainCursor, ca as DrainWriteOff, cb as DrainReleaseResult, cc as DrainFulfilment, cd as DrainTransitionResult, Y as JobReceipt, a1 as Message, K as KVStore, F as SignedRequestReplayStore, Z as ZodLike, a as DVMDescriptor } from '../step-cache-5dljDqrQ.js';
|
|
2
2
|
export { ce as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, cf as ClientCompatibility, cg as ClientCompatibilityEnv, ch as ClientCompatibilityGate, ci as ClientCompatibilityRequirement, cj as ClientSemVer, e as CreateSignedRequestVerifierOpts, ck as CreditFundingBasis, cl as CreditInvoiceStatus, cm as CreditLedger, cn as CreditLedgerError, co as CreditLedgerErrorCode, cp as CreditLedgerErrorDetails, cq as CreditLedgerPool, cr as CreditStatus, cs as DRAIN_DELIVERY_RESERVE_SATS, ct as DVM_PROTOCOL_VERSION, cu as DrainConflictReason, cv as DrawRailValue, cw as DrawStatus, cx as JobCostReportPayload, cy as PostgresX402ChannelStorage, cz as ReplayStoreBackend, cA as RevenueSkippedNoRailPayload, cB as RevenueSkippedNoRailReason, w as SIGNED_REQUEST_AUTH_ID, x as SIGNED_REQUEST_STATEMENT_VERSION, cC as Secp256k1AuthOpts, y as SignedRequestAudience, B as SignedRequestError, E as SignedRequestFailure, G as SignedRequestSignOpts, H as SignedRequestStatementHeader, M as SignedRequestVerifier, cD as X402ChannelStorageOpts, cE as X402RelayLockHolder, cF as X402RelaySubmissionLock, cG as X402RelaySubmissionLockError, cH as allocateDrawValue, cI as clientCompatibilityAttributes, cJ as clientCompatibilityMiddleware, cK as clientUpgradeRequired, N as createSignedRequestVerifier, cL as parseClientCapabilities, cM as parseClientCompatibility, cN as parseDvmClient, cO as parseProtocolVersion, cP as requireClientCompatibility, cQ as secp256k1Auth, cR as signedRequestInput, T as signedRequestStatementHeader } from '../step-cache-5dljDqrQ.js';
|
|
3
3
|
import { Pool } from 'pg';
|
|
4
|
-
import { ak as CreditMenu, b as AppEnv, U as UpfrontPaymentOpts, h as PaymentInfo, al as ReceiptIssuer, am as LightningReceive, an as TempoSettlementReadiness, ao as DVMHostOpts, ap as DVMServeResult } from '../credit-menu-
|
|
5
|
-
export { aq as BuildCreditMenuArgs, ar as BuilderIdentity, as as CREDIT_ENVELOPE_KEYS, C as ConsumedCredentialStore, at as CreateX402BatchSettlementServerOpts, au as CreditEnvelope, av as CreditEnvelopeError, aw as CreditFundCommitment, ax as CreditTerms, ay as DEFAULT_INVOICE_TTL_SECONDS, az as DVMHost, aA as JobManager, aB as JobManagerOpts, aC as LightningReceiveConfig, aD as MIN_INVOICE_TTL_SECONDS, aE as MemoryConsumedCredentialStore, aF as MemoryConsumedCredentialStoreOpts, aG as MemoryProcessedPaymentStore, aH as MemoryX402ExactSettlementStore, aI as MountOpts, aJ as OwnerDisplay, aK as PaidJobCompletion, aL as PaymentMode, aM as PlatformReporterOpts, aN as PostgresProcessedPaymentStore, aO as PostgresX402ExactSettlementStore, aP as PriceFiat, aQ as ProcessedPaymentQuerier, aR as ProcessedPaymentRail, aS as ProcessedPaymentRecord, aT as ProcessedPaymentReplayError, aU as ProcessedPaymentStore, aV as X402BatchAcceptance, aW as X402BatchFunding, aX as X402BatchRefusal, aY as X402BatchSettlementServer, aZ as X402ExactAcceptance, a_ as X402ExactIntentConflictError, a$ as X402ExactSettlementAttempt, b0 as X402ExactSettlementChainEvidence, b1 as X402ExactSettlementEffect, b2 as X402ExactSettlementEvidenceMissingError, b3 as X402ExactSettlementEvidenceReader, b4 as X402ExactSettlementIntent, b5 as X402ExactSettlementNotReadyError, b6 as X402ExactSettlementServer, b7 as X402ExactSettlementServerOpts, b8 as X402ExactSettlementStatus, b9 as X402ExactSettlementStore, ba as X402SettlementChainEvidence, bb as X402SettlementEvidenceReader, bc as X402SettlementSubmissionError, bd as X402_BATCH_AUTO_SETTLEMENT, be as X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS, bf as X402_BATCH_SETTLEMENT_NETWORK, bg as attachCreditMenu, bh as buildCreditMenu, bi as createDVMHost, bj as createX402BatchSettlementServer, bk as creditEnvelopeIgnoreFields, bl as drawSettlementRef, bm as extractCreditEnvelope, bn as fundingCommitment, bo as selectPrimaryCredit, bp as stripCreditEnvelope, bq as toCreditView } from '../credit-menu-
|
|
4
|
+
import { ak as CreditMenu, b as AppEnv, U as UpfrontPaymentOpts, h as PaymentInfo, al as ReceiptIssuer, am as LightningReceive, an as TempoSettlementReadiness, ao as DVMHostOpts, ap as DVMServeResult } from '../credit-menu-enwMbn55.js';
|
|
5
|
+
export { aq as BuildCreditMenuArgs, ar as BuilderIdentity, as as CREDIT_ENVELOPE_KEYS, C as ConsumedCredentialStore, at as CreateX402BatchSettlementServerOpts, au as CreditEnvelope, av as CreditEnvelopeError, aw as CreditFundCommitment, ax as CreditTerms, ay as DEFAULT_INVOICE_TTL_SECONDS, az as DVMHost, aA as JobManager, aB as JobManagerOpts, aC as LightningReceiveConfig, aD as MIN_INVOICE_TTL_SECONDS, aE as MemoryConsumedCredentialStore, aF as MemoryConsumedCredentialStoreOpts, aG as MemoryProcessedPaymentStore, aH as MemoryX402ExactSettlementStore, aI as MountOpts, aJ as OwnerDisplay, aK as PaidJobCompletion, aL as PaymentMode, aM as PlatformReporterOpts, aN as PostgresProcessedPaymentStore, aO as PostgresX402ExactSettlementStore, aP as PriceFiat, aQ as ProcessedPaymentQuerier, aR as ProcessedPaymentRail, aS as ProcessedPaymentRecord, aT as ProcessedPaymentReplayError, aU as ProcessedPaymentStore, aV as X402BatchAcceptance, aW as X402BatchFunding, aX as X402BatchRefusal, aY as X402BatchSettlementServer, aZ as X402ExactAcceptance, a_ as X402ExactIntentConflictError, a$ as X402ExactSettlementAttempt, b0 as X402ExactSettlementChainEvidence, b1 as X402ExactSettlementEffect, b2 as X402ExactSettlementEvidenceMissingError, b3 as X402ExactSettlementEvidenceReader, b4 as X402ExactSettlementIntent, b5 as X402ExactSettlementNotReadyError, b6 as X402ExactSettlementServer, b7 as X402ExactSettlementServerOpts, b8 as X402ExactSettlementStatus, b9 as X402ExactSettlementStore, ba as X402SettlementChainEvidence, bb as X402SettlementEvidenceReader, bc as X402SettlementSubmissionError, bd as X402_BATCH_AUTO_SETTLEMENT, be as X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS, bf as X402_BATCH_SETTLEMENT_NETWORK, bg as attachCreditMenu, bh as buildCreditMenu, bi as createDVMHost, bj as createX402BatchSettlementServer, bk as creditEnvelopeIgnoreFields, bl as drawSettlementRef, bm as extractCreditEnvelope, bn as fundingCommitment, bo as selectPrimaryCredit, bp as stripCreditEnvelope, bq as toCreditView } from '../credit-menu-enwMbn55.js';
|
|
6
6
|
import { Context } from 'hono';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { F as FxFetcher } from '../fx-D860pZvP.js';
|
package/dist/server/index.js
CHANGED