@dvmkit/sdk 0.8.0 → 0.8.1
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-5CQKSLAU.js → chunk-2U6LAASN.js} +1 -1
- package/dist/{chunk-6FEHRZO7.js → chunk-7PM4R4GD.js} +1 -1
- package/dist/{chunk-EBCLWOKF.js → chunk-AGE5XZKE.js} +1 -1
- package/dist/{chunk-2I3OHMTY.js → chunk-ALWVJ2RB.js} +1 -1
- package/dist/{chunk-ATXDKX6F.js → chunk-AVV5SYGO.js} +1 -1
- package/dist/{chunk-DZQYQN2X.js → chunk-BFGQG4WY.js} +7 -0
- package/dist/{chunk-VYP6ADCS.js → chunk-FM6QAGJC.js} +2 -2
- package/dist/{chunk-QPXI7YPH.js → chunk-G3MPHW5I.js} +1 -1
- package/dist/{chunk-I6PHA54S.js → chunk-IHQUBATH.js} +1 -1
- package/dist/{chunk-5K5E6ME6.js → chunk-ILBSZMJL.js} +1 -1
- package/dist/{chunk-BL6LRWXD.js → chunk-IOQIXRGM.js} +1 -1
- package/dist/{chunk-X3JEME6P.js → chunk-J5J63WDC.js} +1 -1
- package/dist/{chunk-GSPV3UIM.js → chunk-JIZ4ZIXX.js} +254 -72
- package/dist/{chunk-TFYY5APM.js → chunk-NA2KOR6G.js} +1 -1
- package/dist/{chunk-PRSKC7AD.js → chunk-NU5RWJ5B.js} +1 -1
- package/dist/{chunk-IFWUWHTW.js → chunk-OP7VCGQR.js} +1 -1
- package/dist/{chunk-GB5XPAA5.js → chunk-QKE5NDPF.js} +213 -38
- package/dist/{chunk-55NKZQOC.js → chunk-RSNC5T6C.js} +1 -1
- package/dist/{chunk-XXLUIXPO.js → chunk-UDJNZ3UG.js} +1 -1
- package/dist/{chunk-YPSJU3OH.js → chunk-UVS7MRJX.js} +2 -2
- package/dist/{chunk-P5WEZXJ2.js → chunk-UWGBI5WK.js} +58 -1
- package/dist/{chunk-RTFBVXCN.js → chunk-ZEPJF4JC.js} +1 -1
- package/dist/{content-retention-D2K4MKNO.d.ts → content-retention-B7ddtJ2y.d.ts} +1 -1
- package/dist/{credit-ledger-AOU6S34N.js → credit-ledger-KIQIE6I6.js} +3 -3
- package/dist/{credit-menu-C-8g2cHT.d.ts → credit-menu-BH3g9GQa.d.ts} +4 -4
- package/dist/{fx-Ql4nvdbh.d.ts → fx-DN26_J7o.d.ts} +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +4 -4
- package/dist/internal/caller.d.ts +6 -6
- package/dist/internal/caller.js +7 -7
- package/dist/internal/server.d.ts +7 -7
- package/dist/internal/server.js +20 -20
- package/dist/{job-store-DCvJQUX0.d.ts → job-store-Cq21JT37.d.ts} +1 -1
- package/dist/{lightning-backend-CY5ML3km.d.ts → lightning-backend-S8F8nf8q.d.ts} +1 -1
- package/dist/{memory-credit-ledger-4HWYINKJ.js → memory-credit-ledger-ATYFAYBG.js} +4 -4
- package/dist/{mpp-setup-2BKTPEK6.js → mpp-setup-ZTORW3VF.js} +3 -3
- package/dist/{payout-reporter-HQSIIBFL.js → payout-reporter-NN6K2IVQ.js} +2 -2
- package/dist/{postgres-consumed-credential-store-R7DNU6CM.js → postgres-consumed-credential-store-XJTE5PCA.js} +1 -1
- package/dist/{postgres-job-store-6VGFL6XE.js → postgres-job-store-AR6ZJUQV.js} +2 -2
- package/dist/{postgres-replay-store-SY26NUCI.js → postgres-replay-store-33K33QV7.js} +2 -2
- package/dist/{pricing-H2RA4X2R.js → pricing-G5IN5YJE.js} +3 -3
- package/dist/{revenue-reporter-X52GPZ5U.js → revenue-reporter-KDUZLD5F.js} +2 -2
- package/dist/server/index.d.ts +10 -10
- package/dist/server/index.js +27 -27
- package/dist/{step-cache-BOWAn_BH.d.ts → step-cache-CR12EZ1Q.d.ts} +108 -4
- package/dist/{tempo-charge-store-NKXJ2AXE.js → tempo-charge-store-XEGJYM3G.js} +2 -2
- package/dist/{tempo-session-store-ZSDQIWSU.js → tempo-session-store-3WTDOO7H.js} +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +6 -6
- package/dist/{usd-MAtMp3DB.d.ts → usd-s_VZ_eS7.d.ts} +1 -1
- package/dist/{x402-Q4S36NHQ.js → x402-HQ5GRQZU.js} +3 -3
- package/package.json +1 -1
package/dist/internal/caller.js
CHANGED
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
sha256hex,
|
|
33
33
|
validateX402Env,
|
|
34
34
|
withNwcPool
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-RSNC5T6C.js";
|
|
36
36
|
import {
|
|
37
37
|
MemoryKVStore
|
|
38
38
|
} from "../chunk-SDK6KDJN.js";
|
|
@@ -143,7 +143,7 @@ import {
|
|
|
143
143
|
withWalletLock,
|
|
144
144
|
writeAgentMnemonic,
|
|
145
145
|
writeIdentity
|
|
146
|
-
} from "../chunk-
|
|
146
|
+
} from "../chunk-ZEPJF4JC.js";
|
|
147
147
|
import {
|
|
148
148
|
X402_BATCH_SETTLEMENT_SCHEME,
|
|
149
149
|
X402_DEFAULT_FACILITATOR,
|
|
@@ -190,7 +190,7 @@ import {
|
|
|
190
190
|
import {
|
|
191
191
|
createNoopLogger,
|
|
192
192
|
createStdoutLogger
|
|
193
|
-
} from "../chunk-
|
|
193
|
+
} from "../chunk-OP7VCGQR.js";
|
|
194
194
|
import {
|
|
195
195
|
currentContext,
|
|
196
196
|
initLoggers,
|
|
@@ -199,7 +199,7 @@ import {
|
|
|
199
199
|
randomTraceId,
|
|
200
200
|
setEmitter,
|
|
201
201
|
withTraceContext
|
|
202
|
-
} from "../chunk-
|
|
202
|
+
} from "../chunk-IOQIXRGM.js";
|
|
203
203
|
import {
|
|
204
204
|
redactUrl,
|
|
205
205
|
redactUrlsInText
|
|
@@ -214,11 +214,11 @@ import {
|
|
|
214
214
|
InvalidUsdPriceError,
|
|
215
215
|
parseUsdPrice,
|
|
216
216
|
warmFxSnapshot
|
|
217
|
-
} from "../chunk-
|
|
217
|
+
} from "../chunk-2U6LAASN.js";
|
|
218
218
|
import {
|
|
219
219
|
applyRetryToPool,
|
|
220
220
|
withInitRetry
|
|
221
|
-
} from "../chunk-
|
|
221
|
+
} from "../chunk-7PM4R4GD.js";
|
|
222
222
|
import {
|
|
223
223
|
DvmError,
|
|
224
224
|
X402_NETWORKS,
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
projectDiagnosticFields,
|
|
242
242
|
projectEventName,
|
|
243
243
|
projectSpanRow
|
|
244
|
-
} from "../chunk-
|
|
244
|
+
} from "../chunk-BFGQG4WY.js";
|
|
245
245
|
|
|
246
246
|
// src/lib/budget-core.ts
|
|
247
247
|
function checkBudgetForLedger(ledger, opts) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { FacilitatorConfig } from '@x402/core/server';
|
|
2
|
-
import { al as PaymentPayload, aa as PaymentRequirementsV1, ab as PaymentRequirementsV2, aF as X402Config, aw as SettleResponse, aD as VerifyResponse, bj as X402ExactVersionSupport, bk as X402Receipt, bl as TransactionalPayoutHook, bm as CashuMeltCompleted } from '../step-cache-
|
|
3
|
-
export { bn as CreditDepositPayload, bo as CreditDrainPayload, bp as FundingLot, bq as LotDebit, br as LotDepletion, bs as MppxServer, bt as NON_CHANNEL_BITCOIN_RAILS, bu as NonChannelBitcoinRail, bv as PayoutReporter, bw as PostgresTempoSessionStore, bx as RevenueReporter, by as SIGNED_ENVELOPE_FIELDS, bz as SIGNED_ENVELOPE_TYPES, bA as X402TrackedChannel, bB as _testing, bC as createDefaultReplayStore, bD as depleteLots, bE as fifoOrder, bF as inKindDrawMsats, bG as isInKindDepletion, bH as isNonChannelBitcoinRail, bI as lotOwedSats, bJ as netOwedSats, bK as wrapMppx } from '../step-cache-
|
|
2
|
+
import { al as PaymentPayload, aa as PaymentRequirementsV1, ab as PaymentRequirementsV2, aF as X402Config, aw as SettleResponse, aD as VerifyResponse, bj as X402ExactVersionSupport, bk as X402Receipt, bl as TransactionalPayoutHook, bm as CashuMeltCompleted } from '../step-cache-CR12EZ1Q.js';
|
|
3
|
+
export { bn as CreditDepositPayload, bo as CreditDrainPayload, bp as FundingLot, bq as LotDebit, br as LotDepletion, bs as MppxServer, bt as NON_CHANNEL_BITCOIN_RAILS, bu as NonChannelBitcoinRail, bv as PayoutReporter, bw as PostgresTempoSessionStore, bx as RevenueReporter, by as SIGNED_ENVELOPE_FIELDS, bz as SIGNED_ENVELOPE_TYPES, bA as X402TrackedChannel, bB as _testing, bC as createDefaultReplayStore, bD as depleteLots, bE as fifoOrder, bF as inKindDrawMsats, bG as isInKindDepletion, bH as isNonChannelBitcoinRail, bI as lotOwedSats, bJ as netOwedSats, bK as wrapMppx } from '../step-cache-CR12EZ1Q.js';
|
|
4
4
|
import { Hono } from 'hono';
|
|
5
5
|
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-Dwjs5n_M.js';
|
|
9
|
-
import { C as ConsumedCredentialStore, L as LockPubkeyStateLoader } from '../credit-menu-
|
|
10
|
-
export { A as AccumulatorPool, a as AppEnv, b as CreditFundingReport, D as DEFAULT_LOCK_PUBKEY_GRACE_SECONDS, F as FiatDenomination, c as FiatDenominationFailure, d as FundOnlyRequest, I as IncomingPaymentOpts, J as JobCancelledError, e as LockPubkeyPool, f as LockPubkeyState, M as MintHealthTracker, P as PAYMENT_PROOF_KEYS, g as PaymentErrorCode, h as PaymentErrorDetail, i as PaymentInfo, j as PostgresTempoChargeStore, R as ReporterBannerOpts, k as ResolvedFx, l as RevenueBootCheckOpts, S as SDKServerOpts, m as ServerJob, n as ShortPayForfeit, T as TempoChannelReport, o as TempoObserverHealth, p as TempoSessionChannelMismatchError, U as UpfrontPaymentOpts, V as VerifiedIncomingPayment, q as VerifyIncomingSnapshot, X as X402BatchChannelObservation, r as X402FacilitatorHealth, s as X402SettlementEvidenceOutcome, t as X402SettlementRepair, u as X402SettlementRepairRefusal, v as X402SettlementRepaired, w as X402WedgedSettlement, x as X402WedgedSettlementPage, y as X402_BATCH_SETTLEMENT_MAINNET_NETWORK, z as abortJob, B as activePubkeySet, E as applyPaymentInfoToJob, G as assertRevenueReporterReady, H as buildPaymentErrorResponse, K as clearAccumulatorForDvm, N as createDVMServer, O as creditDepositPayload, Q as derivedFundCreditId, W as devModeSkipsPaymentVerification, Y as fromJobRecord, Z as fundedMicroFor, _ as hasPaymentProof, $ as hashLockKey, a0 as implicitCreditId, a1 as initLockPubkeyTable, a2 as initWalletAccumulatorTable, a3 as insertAccumulatorRows, a4 as isDerivedCreditId, a5 as isTerminal, a6 as isYieldMessage, a7 as issueUpfrontChallenges, a8 as loadLockPubkeyState, a9 as msatsToFiatMicro, aa as paymentErrorBody, ab as pinAskFiat, ac as priceFiatMicro, ad as processIncomingPayment, ae as providerMessage, af as pruneRetired, ag as repairX402ExactSettlementEffect, ah as resolveFxSnapshot, ai as resolvePriceFiat, aj as revenueReporterBannerState, ak as rotateLockPubkey, al as seedLockPubkeyState, am as toCreditTerms, an as toJobRecord, ao as unknownRouteNotFound, ap as verifyIncomingPayment, aq as verifyTempoSessionManagementCredential, ar as verifyUpfrontPayment, as as x402RequiredUsdcMicro, at as x402SettledShare } from '../credit-menu-
|
|
11
|
-
export { O as OutgoingMessage, S as StaleJobReapable, i as isStaleJobReapable } from '../job-store-
|
|
9
|
+
import { C as ConsumedCredentialStore, L as LockPubkeyStateLoader } from '../credit-menu-BH3g9GQa.js';
|
|
10
|
+
export { A as AccumulatorPool, a as AppEnv, b as CreditFundingReport, D as DEFAULT_LOCK_PUBKEY_GRACE_SECONDS, F as FiatDenomination, c as FiatDenominationFailure, d as FundOnlyRequest, I as IncomingPaymentOpts, J as JobCancelledError, e as LockPubkeyPool, f as LockPubkeyState, M as MintHealthTracker, P as PAYMENT_PROOF_KEYS, g as PaymentErrorCode, h as PaymentErrorDetail, i as PaymentInfo, j as PostgresTempoChargeStore, R as ReporterBannerOpts, k as ResolvedFx, l as RevenueBootCheckOpts, S as SDKServerOpts, m as ServerJob, n as ShortPayForfeit, T as TempoChannelReport, o as TempoObserverHealth, p as TempoSessionChannelMismatchError, U as UpfrontPaymentOpts, V as VerifiedIncomingPayment, q as VerifyIncomingSnapshot, X as X402BatchChannelObservation, r as X402FacilitatorHealth, s as X402SettlementEvidenceOutcome, t as X402SettlementRepair, u as X402SettlementRepairRefusal, v as X402SettlementRepaired, w as X402WedgedSettlement, x as X402WedgedSettlementPage, y as X402_BATCH_SETTLEMENT_MAINNET_NETWORK, z as abortJob, B as activePubkeySet, E as applyPaymentInfoToJob, G as assertRevenueReporterReady, H as buildPaymentErrorResponse, K as clearAccumulatorForDvm, N as createDVMServer, O as creditDepositPayload, Q as derivedFundCreditId, W as devModeSkipsPaymentVerification, Y as fromJobRecord, Z as fundedMicroFor, _ as hasPaymentProof, $ as hashLockKey, a0 as implicitCreditId, a1 as initLockPubkeyTable, a2 as initWalletAccumulatorTable, a3 as insertAccumulatorRows, a4 as isDerivedCreditId, a5 as isTerminal, a6 as isYieldMessage, a7 as issueUpfrontChallenges, a8 as loadLockPubkeyState, a9 as msatsToFiatMicro, aa as paymentErrorBody, ab as pinAskFiat, ac as priceFiatMicro, ad as processIncomingPayment, ae as providerMessage, af as pruneRetired, ag as repairX402ExactSettlementEffect, ah as resolveFxSnapshot, ai as resolvePriceFiat, aj as revenueReporterBannerState, ak as rotateLockPubkey, al as seedLockPubkeyState, am as toCreditTerms, an as toJobRecord, ao as unknownRouteNotFound, ap as verifyIncomingPayment, aq as verifyTempoSessionManagementCredential, ar as verifyUpfrontPayment, as as x402RequiredUsdcMicro, at as x402SettledShare } from '../credit-menu-BH3g9GQa.js';
|
|
11
|
+
export { O as OutgoingMessage, S as StaleJobReapable, i as isStaleJobReapable } from '../job-store-Cq21JT37.js';
|
|
12
12
|
import { z } from 'zod';
|
|
13
|
-
export { f as LockPubkeyStoreLockPubkey, t as lockPubkeyStoreToLockPubkey } from '../lightning-backend-
|
|
13
|
+
export { f as LockPubkeyStoreLockPubkey, t as lockPubkeyStoreToLockPubkey } from '../lightning-backend-S8F8nf8q.js';
|
|
14
14
|
import 'mppx';
|
|
15
15
|
import '@x402/evm/batch-settlement/server';
|
|
16
16
|
import '@x402/core/types';
|
|
17
17
|
import 'viem';
|
|
18
18
|
import '@cashu/cashu-ts';
|
|
19
|
-
import '../fx-
|
|
19
|
+
import '../fx-DN26_J7o.js';
|
|
20
20
|
|
|
21
21
|
declare function verifyWithFacilitator(payload: PaymentPayload, requirements: PaymentRequirementsV1 | PaymentRequirementsV2, config?: Pick<X402Config, "facilitator" | "facilitatorAuth">, createAuthHeaders?: FacilitatorConfig["createAuthHeaders"] | undefined): Promise<VerifyResponse>;
|
|
22
22
|
declare function settleWithFacilitator(payload: PaymentPayload, requirements: PaymentRequirementsV1 | PaymentRequirementsV2, config?: Pick<X402Config, "facilitator" | "facilitatorAuth">, createAuthHeaders?: FacilitatorConfig["createAuthHeaders"] | undefined): Promise<SettleResponse>;
|
package/dist/internal/server.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-UWGBI5WK.js";
|
|
4
4
|
import {
|
|
5
5
|
verifyX402Payment
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-UVS7MRJX.js";
|
|
7
7
|
import {
|
|
8
8
|
RevenueReporter
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-NU5RWJ5B.js";
|
|
10
10
|
import {
|
|
11
11
|
PostgresTempoChargeStore
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-NA2KOR6G.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
15
15
|
MintHealthTracker,
|
|
@@ -61,31 +61,31 @@ import {
|
|
|
61
61
|
verifyUpfrontPayment,
|
|
62
62
|
x402RequiredUsdcMicro,
|
|
63
63
|
x402SettledShare
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-JIZ4ZIXX.js";
|
|
65
65
|
import {
|
|
66
66
|
_testing,
|
|
67
67
|
wrapMppx
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-QKE5NDPF.js";
|
|
69
69
|
import {
|
|
70
70
|
PayoutReporter
|
|
71
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-J5J63WDC.js";
|
|
72
72
|
import {
|
|
73
73
|
settleWithFacilitator,
|
|
74
74
|
verifyWithFacilitator
|
|
75
|
-
} from "../chunk-
|
|
76
|
-
import "../chunk-
|
|
77
|
-
import "../chunk-
|
|
75
|
+
} from "../chunk-AVV5SYGO.js";
|
|
76
|
+
import "../chunk-AGE5XZKE.js";
|
|
77
|
+
import "../chunk-G3MPHW5I.js";
|
|
78
78
|
import "../chunk-YG7G4DPZ.js";
|
|
79
79
|
import {
|
|
80
80
|
SIGNED_ENVELOPE_FIELDS,
|
|
81
81
|
SIGNED_ENVELOPE_TYPES,
|
|
82
82
|
createDefaultReplayStore,
|
|
83
83
|
humanizeZodError
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-ILBSZMJL.js";
|
|
85
85
|
import {
|
|
86
86
|
createInstrumentedFetch,
|
|
87
87
|
isStaleJobReapable
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-IHQUBATH.js";
|
|
89
89
|
import {
|
|
90
90
|
JobCancelledError,
|
|
91
91
|
abortJob,
|
|
@@ -97,16 +97,16 @@ import {
|
|
|
97
97
|
} from "../chunk-AFV77S4C.js";
|
|
98
98
|
import {
|
|
99
99
|
toLockPubkey
|
|
100
|
-
} from "../chunk-
|
|
100
|
+
} from "../chunk-ZEPJF4JC.js";
|
|
101
101
|
import "../chunk-62FI3NJF.js";
|
|
102
102
|
import "../chunk-UKD3R2KU.js";
|
|
103
|
-
import "../chunk-
|
|
104
|
-
import "../chunk-
|
|
103
|
+
import "../chunk-OP7VCGQR.js";
|
|
104
|
+
import "../chunk-IOQIXRGM.js";
|
|
105
105
|
import "../chunk-FUJ36YDV.js";
|
|
106
106
|
import "../chunk-66HGCPBU.js";
|
|
107
107
|
import "../chunk-BQJIFRAZ.js";
|
|
108
|
-
import "../chunk-
|
|
109
|
-
import "../chunk-
|
|
108
|
+
import "../chunk-UDJNZ3UG.js";
|
|
109
|
+
import "../chunk-2U6LAASN.js";
|
|
110
110
|
import {
|
|
111
111
|
NON_CHANNEL_BITCOIN_RAILS,
|
|
112
112
|
depleteLots,
|
|
@@ -116,10 +116,10 @@ import {
|
|
|
116
116
|
isNonChannelBitcoinRail,
|
|
117
117
|
lotOwedSats,
|
|
118
118
|
netOwedSats
|
|
119
|
-
} from "../chunk-
|
|
120
|
-
import "../chunk-
|
|
119
|
+
} from "../chunk-FM6QAGJC.js";
|
|
120
|
+
import "../chunk-7PM4R4GD.js";
|
|
121
121
|
import "../chunk-BPYMEMQX.js";
|
|
122
|
-
import "../chunk-
|
|
122
|
+
import "../chunk-BFGQG4WY.js";
|
|
123
123
|
import "../chunk-XRLKGCAW.js";
|
|
124
124
|
import "../chunk-COYKJRMM.js";
|
|
125
125
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProofLike } from '@cashu/cashu-ts';
|
|
2
|
-
import { a5 as Message, aj as FundingMethod, $ as FundingReceipt, bQ as CreditSnapshot, a0 as JobReceipt, ay as StepRecord, a1 as MessageType } from './step-cache-
|
|
2
|
+
import { a5 as Message, aj as FundingMethod, $ as FundingReceipt, bQ as CreditSnapshot, a0 as JobReceipt, ay as StepRecord, a1 as MessageType } from './step-cache-CR12EZ1Q.js';
|
|
3
3
|
|
|
4
4
|
type JobStatus = "processing" | "completed" | "failed" | "awaiting-input" | "cancelled" | "working";
|
|
5
5
|
interface JobRecord {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MemoryCreditLedger
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-AGE5XZKE.js";
|
|
4
|
+
import "./chunk-FM6QAGJC.js";
|
|
5
|
+
import "./chunk-7PM4R4GD.js";
|
|
6
6
|
import "./chunk-BPYMEMQX.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-BFGQG4WY.js";
|
|
8
8
|
import "./chunk-COYKJRMM.js";
|
|
9
9
|
export {
|
|
10
10
|
MemoryCreditLedger
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
parseMppMethodsAllowlist,
|
|
20
20
|
resolveTempoNetwork,
|
|
21
21
|
wrapMppx
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-QKE5NDPF.js";
|
|
23
|
+
import "./chunk-IOQIXRGM.js";
|
|
24
24
|
import "./chunk-66HGCPBU.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-BFGQG4WY.js";
|
|
26
26
|
export {
|
|
27
27
|
MPPX_HMAC_MISMATCH_REASON,
|
|
28
28
|
TEMPO_MAINNET_CHAIN_ID,
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
PayoutReporter,
|
|
5
5
|
PostgresX402BatchStore,
|
|
6
6
|
x402EarnedCeiling
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-J5J63WDC.js";
|
|
8
|
+
import "./chunk-BFGQG4WY.js";
|
|
9
9
|
import "./chunk-COYKJRMM.js";
|
|
10
10
|
export {
|
|
11
11
|
MemoryX402BatchStore,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresJobStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-G3MPHW5I.js";
|
|
4
4
|
import "./chunk-AFV77S4C.js";
|
|
5
5
|
import "./chunk-BQJIFRAZ.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-BFGQG4WY.js";
|
|
7
7
|
import "./chunk-COYKJRMM.js";
|
|
8
8
|
export {
|
|
9
9
|
PostgresJobStore
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildUpfront
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UDJNZ3UG.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_FX_CURRENCIES,
|
|
6
6
|
DEFAULT_FX_RATE_SOURCE,
|
|
@@ -22,8 +22,8 @@ import {
|
|
|
22
22
|
satsToFiat,
|
|
23
23
|
validateCurrency,
|
|
24
24
|
warmFxSnapshot
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-2U6LAASN.js";
|
|
26
|
+
import "./chunk-BFGQG4WY.js";
|
|
27
27
|
export {
|
|
28
28
|
DEFAULT_FX_CURRENCIES,
|
|
29
29
|
DEFAULT_FX_RATE_SOURCE,
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ae as CashuMode, bL as CreditDrainEnqueue, bM as HostedSettlementReportObligations, R as ResolvedCreditConfig, bN as DVMAuthScheme, B as SignedRequestDomain, bO as CreditLedgerLike, bP as X402RefundSettlementGate, bQ as CreditSnapshot, bR as DrawResult, bS as X402SettlementStatus, bT as X402UnresolvedRefund, bU as GrownDrawResult, bV as DrawResolution, bW as FundingRecord, $ as FundingReceipt, bX as CreditInvoiceRecord, bY as InvoiceSettlement, bZ as BlockedInvoiceCursor, b_ as InvoiceReconciliation, b$ as InvoiceWriteOff, c0 as DrawRecord, c1 as StalePendingDrawCursor, c2 as TempoCreditLossEvidence, c3 as CreditLedgerQuerier, c4 as TempoCreditLoss, c5 as X402CreditLossEvidence, c6 as X402CreditLoss, c7 as DrainMethod, c8 as DrainRequestResult, c9 as BitcoinDepositLiability, bp as FundingLot, ca as CreditDrainRecord, cb as ChannelDrainCursor, cc as DrainWriteOff, cd as DrainReleaseResult, ce as DrainFulfilment, cf as DrainTransitionResult, cg as HostingCleanupFence, a0 as JobReceipt, a5 as Message, K as KVStore, G as SignedRequestReplayStore, Z as ZodLike, a as DVMDescriptor } from '../step-cache-
|
|
2
|
-
export { ch as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, ci as ClientCompatibility, cj as ClientCompatibilityEnv, ck as ClientCompatibilityGate, cl as ClientCompatibilityRequirement, cm as ClientSemVer, f as CreateSignedRequestVerifierOpts, cn as CreditFundingBasis, co as CreditInvoiceStatus, cp as CreditLedger, cq as CreditLedgerError, cr as CreditLedgerErrorCode, cs as CreditLedgerErrorDetails, ct as CreditLedgerPool, cu as CreditStatus, cv as DRAIN_DELIVERY_RESERVE_SATS, cw as DVM_PROTOCOL_VERSION, cx as DrainConflictReason, cy as DrawRailValue, cz as DrawStatus, cA as JobCostReportPayload, cB as JobTerminalReportPayload, cC as PostgresX402ChannelStorage, cD as ReplayStoreBackend, cE as RevenueSkippedNoRailPayload, cF as RevenueSkippedNoRailReason, x as SIGNED_REQUEST_AUTH_ID, y as SIGNED_REQUEST_STATEMENT_VERSION, cG as Secp256k1AuthOpts, z as SignedRequestAudience, E as SignedRequestError, F as SignedRequestFailure, H as SignedRequestSignOpts, M as SignedRequestStatementHeader, N as SignedRequestVerifier, cH as X402ChannelStorageOpts, cI as X402RelayLockHolder, cJ as X402RelaySubmissionLock, cK as X402RelaySubmissionLockError, cL as allocateDrawValue, cM as clientCompatibilityAttributes, cN as clientCompatibilityMiddleware, cO as clientUpgradeRequired, O as createSignedRequestVerifier, cP as parseClientCapabilities, cQ as parseClientCompatibility, cR as parseDvmClient, cS as parseProtocolVersion, cT as requireClientCompatibility, cU as secp256k1Auth, cV as signedRequestInput, V as signedRequestStatementHeader } from '../step-cache-
|
|
1
|
+
import { ae as CashuMode, bL as CreditDrainEnqueue, bM as HostedSettlementReportObligations, R as ResolvedCreditConfig, bN as DVMAuthScheme, B as SignedRequestDomain, bO as CreditLedgerLike, bP as X402RefundSettlementGate, bQ as CreditSnapshot, bR as DrawResult, bS as X402SettlementStatus, bT as X402UnresolvedRefund, bU as GrownDrawResult, bV as DrawResolution, bW as FundingRecord, $ as FundingReceipt, bX as CreditInvoiceRecord, bY as InvoiceSettlement, bZ as BlockedInvoiceCursor, b_ as InvoiceReconciliation, b$ as InvoiceWriteOff, c0 as DrawRecord, c1 as StalePendingDrawCursor, c2 as TempoCreditLossEvidence, c3 as CreditLedgerQuerier, c4 as TempoCreditLoss, c5 as X402CreditLossEvidence, c6 as X402CreditLoss, c7 as DrainMethod, c8 as DrainRequestResult, c9 as BitcoinDepositLiability, bp as FundingLot, ca as CreditDrainRecord, cb as ChannelDrainCursor, cc as DrainWriteOff, cd as DrainReleaseResult, ce as DrainFulfilment, cf as DrainTransitionResult, cg as HostingCleanupFence, a0 as JobReceipt, a5 as Message, K as KVStore, G as SignedRequestReplayStore, Z as ZodLike, a as DVMDescriptor } from '../step-cache-CR12EZ1Q.js';
|
|
2
|
+
export { ch as CLIENT_COMPATIBILITY_HEADERS, d as CanonicalEnvelope, ci as ClientCompatibility, cj as ClientCompatibilityEnv, ck as ClientCompatibilityGate, cl as ClientCompatibilityRequirement, cm as ClientSemVer, f as CreateSignedRequestVerifierOpts, cn as CreditFundingBasis, co as CreditInvoiceStatus, cp as CreditLedger, cq as CreditLedgerError, cr as CreditLedgerErrorCode, cs as CreditLedgerErrorDetails, ct as CreditLedgerPool, cu as CreditStatus, cv as DRAIN_DELIVERY_RESERVE_SATS, cw as DVM_PROTOCOL_VERSION, cx as DrainConflictReason, cy as DrawRailValue, cz as DrawStatus, cA as JobCostReportPayload, cB as JobTerminalReportPayload, cC as PostgresX402ChannelStorage, cD as ReplayStoreBackend, cE as RevenueSkippedNoRailPayload, cF as RevenueSkippedNoRailReason, x as SIGNED_REQUEST_AUTH_ID, y as SIGNED_REQUEST_STATEMENT_VERSION, cG as Secp256k1AuthOpts, z as SignedRequestAudience, E as SignedRequestError, F as SignedRequestFailure, H as SignedRequestSignOpts, M as SignedRequestStatementHeader, N as SignedRequestVerifier, cH as X402ChannelStorageOpts, cI as X402RelayLockHolder, cJ as X402RelaySubmissionLock, cK as X402RelaySubmissionLockError, cL as allocateDrawValue, cM as clientCompatibilityAttributes, cN as clientCompatibilityMiddleware, cO as clientUpgradeRequired, O as createSignedRequestVerifier, cP as parseClientCapabilities, cQ as parseClientCompatibility, cR as parseDvmClient, cS as parseProtocolVersion, cT as requireClientCompatibility, cU as secp256k1Auth, cV as signedRequestInput, V as signedRequestStatementHeader } from '../step-cache-CR12EZ1Q.js';
|
|
3
3
|
import { Pool } from 'pg';
|
|
4
|
-
import { au as CreditMenu, a as AppEnv, U as UpfrontPaymentOpts, i as PaymentInfo, av as ReceiptIssuer, aw as LightningReceive, ax as TempoSettlementReadiness, ay as DVMHostOpts, az as DVMServeResult, L as LockPubkeyStateLoader, C as ConsumedCredentialStore } from '../credit-menu-
|
|
5
|
-
export { aA as BuildCreditMenuArgs, aB as BuilderIdentity, aC as CREDIT_ENVELOPE_KEYS, aD as CreateX402BatchSettlementServerOpts, aE as CreditEnvelope, aF as CreditEnvelopeError, aG as CreditFundCommitment, aH as CreditTerms, aI as DEFAULT_INVOICE_TTL_SECONDS, aJ as DVMHost, aK as HostingClosureCommand, aL as HostingClosureEvidence, aM as HostingControlCommand, aN as HostingControlConfig, aO as HostingControlStatus, aP as JobManager, aQ as JobManagerOpts, aR as LightningReceiveConfig, aS as MIN_INVOICE_TTL_SECONDS, aT as MemoryConsumedCredentialStore, aU as MemoryConsumedCredentialStoreOpts, aV as MemoryProcessedPaymentStore, aW as MemoryX402ExactSettlementStore, aX as MountOpts, aY as OwnerDisplay, aZ as PaidJobCompletion, a_ as PaymentMode, a$ as PlatformReporterOpts, b0 as PostgresProcessedPaymentStore, b1 as PostgresX402ExactSettlementStore, b2 as PriceFiat, b3 as ProcessedPaymentQuerier, b4 as ProcessedPaymentRail, b5 as ProcessedPaymentRecord, b6 as ProcessedPaymentReplayError, b7 as ProcessedPaymentStore, b8 as X402BatchAcceptance, b9 as X402BatchFunding, ba as X402BatchRefusal, bb as X402BatchSettlementServer, bc as X402ExactAcceptance, bd as X402ExactIntentConflictError, be as X402ExactSettlementAttempt, bf as X402ExactSettlementChainEvidence, bg as X402ExactSettlementEffect, bh as X402ExactSettlementEvidenceMissingError, bi as X402ExactSettlementEvidenceReader, bj as X402ExactSettlementIntent, bk as X402ExactSettlementNotReadyError, bl as X402ExactSettlementServer, bm as X402ExactSettlementServerOpts, bn as X402ExactSettlementStatus, bo as X402ExactSettlementStore, bp as X402SettlementChainEvidence, bq as X402SettlementEvidenceReader, br as X402SettlementSubmissionError, bs as X402_BATCH_AUTO_SETTLEMENT, bt as X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS, bu as X402_BATCH_SETTLEMENT_NETWORK, bv as attachCreditMenu, bw as buildCreditMenu, bx as createDVMHost, by as createX402BatchSettlementServer, bz as creditEnvelopeIgnoreFields, bA as drawSettlementRef, bB as extractCreditEnvelope, bC as fundingCommitment, bD as selectPrimaryCredit, bE as signHostingClosure, bF as signHostingControl, bG as stripCreditEnvelope, bH as toCreditView } from '../credit-menu-
|
|
4
|
+
import { au as CreditMenu, a as AppEnv, U as UpfrontPaymentOpts, i as PaymentInfo, av as ReceiptIssuer, aw as LightningReceive, ax as TempoSettlementReadiness, ay as DVMHostOpts, az as DVMServeResult, L as LockPubkeyStateLoader, C as ConsumedCredentialStore } from '../credit-menu-BH3g9GQa.js';
|
|
5
|
+
export { aA as BuildCreditMenuArgs, aB as BuilderIdentity, aC as CREDIT_ENVELOPE_KEYS, aD as CreateX402BatchSettlementServerOpts, aE as CreditEnvelope, aF as CreditEnvelopeError, aG as CreditFundCommitment, aH as CreditTerms, aI as DEFAULT_INVOICE_TTL_SECONDS, aJ as DVMHost, aK as HostingClosureCommand, aL as HostingClosureEvidence, aM as HostingControlCommand, aN as HostingControlConfig, aO as HostingControlStatus, aP as JobManager, aQ as JobManagerOpts, aR as LightningReceiveConfig, aS as MIN_INVOICE_TTL_SECONDS, aT as MemoryConsumedCredentialStore, aU as MemoryConsumedCredentialStoreOpts, aV as MemoryProcessedPaymentStore, aW as MemoryX402ExactSettlementStore, aX as MountOpts, aY as OwnerDisplay, aZ as PaidJobCompletion, a_ as PaymentMode, a$ as PlatformReporterOpts, b0 as PostgresProcessedPaymentStore, b1 as PostgresX402ExactSettlementStore, b2 as PriceFiat, b3 as ProcessedPaymentQuerier, b4 as ProcessedPaymentRail, b5 as ProcessedPaymentRecord, b6 as ProcessedPaymentReplayError, b7 as ProcessedPaymentStore, b8 as X402BatchAcceptance, b9 as X402BatchFunding, ba as X402BatchRefusal, bb as X402BatchSettlementServer, bc as X402ExactAcceptance, bd as X402ExactIntentConflictError, be as X402ExactSettlementAttempt, bf as X402ExactSettlementChainEvidence, bg as X402ExactSettlementEffect, bh as X402ExactSettlementEvidenceMissingError, bi as X402ExactSettlementEvidenceReader, bj as X402ExactSettlementIntent, bk as X402ExactSettlementNotReadyError, bl as X402ExactSettlementServer, bm as X402ExactSettlementServerOpts, bn as X402ExactSettlementStatus, bo as X402ExactSettlementStore, bp as X402SettlementChainEvidence, bq as X402SettlementEvidenceReader, br as X402SettlementSubmissionError, bs as X402_BATCH_AUTO_SETTLEMENT, bt as X402_BATCH_MIN_WITHDRAW_DELAY_SECONDS, bu as X402_BATCH_SETTLEMENT_NETWORK, bv as attachCreditMenu, bw as buildCreditMenu, bx as createDVMHost, by as createX402BatchSettlementServer, bz as creditEnvelopeIgnoreFields, bA as drawSettlementRef, bB as extractCreditEnvelope, bC as fundingCommitment, bD as selectPrimaryCredit, bE as signHostingClosure, bF as signHostingControl, bG as stripCreditEnvelope, bH as toCreditView } from '../credit-menu-BH3g9GQa.js';
|
|
6
6
|
import { Context, Hono } from 'hono';
|
|
7
7
|
import { z } from 'zod';
|
|
8
|
-
import { F as FxFetcher } from '../fx-
|
|
9
|
-
import { c as StreamableJobStore, R as ReceiptIssuingStore, J as JobRecord, d as RequestIdClaim, e as RequestIdClaimResult, f as JobRetentionCursor, O as OutgoingMessage, A as AppendOutgoingOptions, P as PaymentCreditDelta, V as VerifyAndCreditResult, g as JobCounters, b as JobStore } from '../job-store-
|
|
10
|
-
export { a as JobStatus, h as isStreamableJobStore } from '../job-store-
|
|
11
|
-
import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-
|
|
12
|
-
export { b as ContentHold, c as ContentHoldError, d as ContentHoldEvent, e as ContentHoldStore, f as ContentHoldsResponse, J as JobContentMetadata, g as baselineContentExpiry, h as contentMetadata, i as isContentHoldStore } from '../content-retention-
|
|
8
|
+
import { F as FxFetcher } from '../fx-DN26_J7o.js';
|
|
9
|
+
import { c as StreamableJobStore, R as ReceiptIssuingStore, J as JobRecord, d as RequestIdClaim, e as RequestIdClaimResult, f as JobRetentionCursor, O as OutgoingMessage, A as AppendOutgoingOptions, P as PaymentCreditDelta, V as VerifyAndCreditResult, g as JobCounters, b as JobStore } from '../job-store-Cq21JT37.js';
|
|
10
|
+
export { a as JobStatus, h as isStreamableJobStore } from '../job-store-Cq21JT37.js';
|
|
11
|
+
import { C as ContentHoldHistory, a as ContentHoldMutation } from '../content-retention-B7ddtJ2y.js';
|
|
12
|
+
export { b as ContentHold, c as ContentHoldError, d as ContentHoldEvent, e as ContentHoldStore, f as ContentHoldsResponse, J as JobContentMetadata, g as baselineContentExpiry, h as contentMetadata, i as isContentHoldStore } from '../content-retention-B7ddtJ2y.js';
|
|
13
13
|
export { P as PinnedFetch, S as SSRFError, a as SSRFGuardOpts, b as SSRFReason, c as SSRFResolver, d as assertSafeUrl, e as createPinnedFetch } from '../ssrf-dMooihtY.js';
|
|
14
14
|
import { Env, BlankSchema } from 'hono/types';
|
|
15
15
|
import 'mppx';
|
|
@@ -17,7 +17,7 @@ import '@x402/core/server';
|
|
|
17
17
|
import '@x402/evm/batch-settlement/server';
|
|
18
18
|
import '@x402/core/types';
|
|
19
19
|
import 'viem';
|
|
20
|
-
import '../lightning-backend-
|
|
20
|
+
import '../lightning-backend-S8F8nf8q.js';
|
|
21
21
|
import '@cashu/cashu-ts';
|
|
22
22
|
|
|
23
23
|
/** Lifetime of a per-call implicit credit before the ledger refuses new draws. */
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresReplayStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-ALWVJ2RB.js";
|
|
4
4
|
import {
|
|
5
5
|
PostgresKVStore
|
|
6
6
|
} from "../chunk-V5ZRATJH.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
parseNwcUri,
|
|
19
19
|
validateX402Env,
|
|
20
20
|
withNwcPool
|
|
21
|
-
} from "../chunk-
|
|
21
|
+
} from "../chunk-RSNC5T6C.js";
|
|
22
22
|
import {
|
|
23
23
|
MemoryKVStore
|
|
24
24
|
} from "../chunk-SDK6KDJN.js";
|
|
@@ -80,32 +80,32 @@ import {
|
|
|
80
80
|
stripProtocolEnvelope,
|
|
81
81
|
toCreditView,
|
|
82
82
|
unknownRouteNotFound
|
|
83
|
-
} from "../chunk-
|
|
83
|
+
} from "../chunk-JIZ4ZIXX.js";
|
|
84
84
|
import {
|
|
85
85
|
TEMPO_MODERATO_CHAIN_ID,
|
|
86
86
|
TEMPO_MODERATO_RPC,
|
|
87
87
|
TEMPO_SETTLEMENT_DEFAULT_LOW_BALANCE_MICRO,
|
|
88
88
|
TempoSettlementReadiness,
|
|
89
89
|
resolveTempoNetwork
|
|
90
|
-
} from "../chunk-
|
|
91
|
-
import "../chunk-
|
|
92
|
-
import "../chunk-
|
|
90
|
+
} from "../chunk-QKE5NDPF.js";
|
|
91
|
+
import "../chunk-J5J63WDC.js";
|
|
92
|
+
import "../chunk-AVV5SYGO.js";
|
|
93
93
|
import {
|
|
94
94
|
MemoryCreditLedger
|
|
95
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-AGE5XZKE.js";
|
|
96
96
|
import {
|
|
97
97
|
PostgresJobStore
|
|
98
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-G3MPHW5I.js";
|
|
99
99
|
import "../chunk-YG7G4DPZ.js";
|
|
100
100
|
import {
|
|
101
101
|
SignedRequestError,
|
|
102
102
|
createDefaultReplayStore,
|
|
103
103
|
createSignedRequestVerifier,
|
|
104
104
|
signedRequestInput
|
|
105
|
-
} from "../chunk-
|
|
105
|
+
} from "../chunk-ILBSZMJL.js";
|
|
106
106
|
import {
|
|
107
107
|
isStreamableJobStore
|
|
108
|
-
} from "../chunk-
|
|
108
|
+
} from "../chunk-IHQUBATH.js";
|
|
109
109
|
import {
|
|
110
110
|
ContentHoldError,
|
|
111
111
|
baselineContentExpiry,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
IMPLICIT_CREDIT_TTL_MS,
|
|
117
117
|
generateEphemeralReceiptKey,
|
|
118
118
|
receiptPubkeyFromSecret
|
|
119
|
-
} from "../chunk-
|
|
119
|
+
} from "../chunk-ZEPJF4JC.js";
|
|
120
120
|
import {
|
|
121
121
|
X402_DEFAULT_FACILITATOR,
|
|
122
122
|
X402_DEFAULT_NETWORK,
|
|
@@ -128,15 +128,15 @@ import {
|
|
|
128
128
|
SIGNED_REQUEST_STATEMENT_VERSION,
|
|
129
129
|
signedRequestStatementHeader
|
|
130
130
|
} from "../chunk-UKD3R2KU.js";
|
|
131
|
-
import "../chunk-
|
|
131
|
+
import "../chunk-OP7VCGQR.js";
|
|
132
132
|
import {
|
|
133
133
|
initLoggers
|
|
134
|
-
} from "../chunk-
|
|
134
|
+
} from "../chunk-IOQIXRGM.js";
|
|
135
135
|
import "../chunk-FUJ36YDV.js";
|
|
136
136
|
import "../chunk-66HGCPBU.js";
|
|
137
137
|
import "../chunk-BQJIFRAZ.js";
|
|
138
|
-
import "../chunk-
|
|
139
|
-
import "../chunk-
|
|
138
|
+
import "../chunk-UDJNZ3UG.js";
|
|
139
|
+
import "../chunk-2U6LAASN.js";
|
|
140
140
|
import {
|
|
141
141
|
CreditLedger,
|
|
142
142
|
CreditLedgerError,
|
|
@@ -144,16 +144,16 @@ import {
|
|
|
144
144
|
PostgresX402ChannelStorage,
|
|
145
145
|
X402RelaySubmissionLockError,
|
|
146
146
|
allocateDrawValue
|
|
147
|
-
} from "../chunk-
|
|
147
|
+
} from "../chunk-FM6QAGJC.js";
|
|
148
148
|
import {
|
|
149
149
|
applyRetryToPool
|
|
150
|
-
} from "../chunk-
|
|
150
|
+
} from "../chunk-7PM4R4GD.js";
|
|
151
151
|
import {
|
|
152
152
|
assertSupportedX402Network
|
|
153
153
|
} from "../chunk-BPYMEMQX.js";
|
|
154
154
|
import {
|
|
155
155
|
diagnosticConsole
|
|
156
|
-
} from "../chunk-
|
|
156
|
+
} from "../chunk-BFGQG4WY.js";
|
|
157
157
|
import {
|
|
158
158
|
MemoryProcessedPaymentStore,
|
|
159
159
|
PostgresProcessedPaymentStore,
|
|
@@ -1149,7 +1149,7 @@ function createDVMHost(opts = {}) {
|
|
|
1149
1149
|
});
|
|
1150
1150
|
applyRetryToPool(pool, "dvm-host");
|
|
1151
1151
|
pgPool = pool;
|
|
1152
|
-
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-
|
|
1152
|
+
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-AR6ZJUQV.js");
|
|
1153
1153
|
const pgJobStore = new PostgresJobStore2(pool);
|
|
1154
1154
|
pendingInits.push(pgJobStore.init(), pgJobStore.initStreaming());
|
|
1155
1155
|
jobStore = pgJobStore;
|
|
@@ -1242,11 +1242,11 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1242
1242
|
let tempoChargeBackend = "user-supplied";
|
|
1243
1243
|
const mppTempoRecipient = envMaybe.DVMKIT_TEMPO_RECIPIENT;
|
|
1244
1244
|
if (!mpp && mppTempoRecipient) {
|
|
1245
|
-
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-
|
|
1245
|
+
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-ZTORW3VF.js");
|
|
1246
1246
|
tempoChargeBackend = pgPool ? "postgres" : "memory";
|
|
1247
1247
|
let tempoCharge;
|
|
1248
1248
|
if (pgPool) {
|
|
1249
|
-
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-
|
|
1249
|
+
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-XEGJYM3G.js");
|
|
1250
1250
|
const chargeStore = new PostgresTempoChargeStore(pgPool);
|
|
1251
1251
|
tempoChargeStore = chargeStore;
|
|
1252
1252
|
pendingInits.push(chargeStore.init());
|
|
@@ -1266,7 +1266,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1266
1266
|
{ createPublicClient, createWalletClient, erc20Abi, http },
|
|
1267
1267
|
{ tempo: tempoMainnet, tempoModerato }
|
|
1268
1268
|
] = await Promise.all([
|
|
1269
|
-
import("../tempo-session-store-
|
|
1269
|
+
import("../tempo-session-store-3WTDOO7H.js"),
|
|
1270
1270
|
import("viem/accounts"),
|
|
1271
1271
|
import("viem"),
|
|
1272
1272
|
import("viem/chains")
|
|
@@ -1419,7 +1419,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1419
1419
|
}
|
|
1420
1420
|
}
|
|
1421
1421
|
const fxSource = envMaybe.DVMKIT_FX_SOURCE;
|
|
1422
|
-
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-
|
|
1422
|
+
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-G5IN5YJE.js");
|
|
1423
1423
|
const fxFetcher = opts.fx ?? createFxFetcher({ source: resolveFxSourceFromEnv(envMaybe) });
|
|
1424
1424
|
const hostRailConfigured = (opts.paymentMethods?.length ?? 0) > 0 || (effectiveMints?.length ?? 0) > 0 || !!x402WithDualServe || !!mpp;
|
|
1425
1425
|
if (mounts.some((entry) => mountNeedsFx(entry, hostRailConfigured))) warmFxSnapshot(fxFetcher);
|
|
@@ -1429,7 +1429,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1429
1429
|
assertReceiptIdentity(envMaybe, opts.builder, receiptKey, cashuOpts.dvmId, opts.devMode);
|
|
1430
1430
|
let sharedPgReplayStore;
|
|
1431
1431
|
if (pgPool) {
|
|
1432
|
-
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-
|
|
1432
|
+
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-33K33QV7.js");
|
|
1433
1433
|
const store2 = new PostgresReplayStore2(pgPool);
|
|
1434
1434
|
pendingInits.push(store2.init());
|
|
1435
1435
|
sharedPgReplayStore = store2;
|
|
@@ -1457,13 +1457,13 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1457
1457
|
}
|
|
1458
1458
|
let sharedPgConsumedStore;
|
|
1459
1459
|
if (pgPool) {
|
|
1460
|
-
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-
|
|
1460
|
+
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-XJTE5PCA.js");
|
|
1461
1461
|
const consumedStore = new PostgresConsumedCredentialStore(pgPool);
|
|
1462
1462
|
pendingInits.push(consumedStore.init());
|
|
1463
1463
|
sharedPgConsumedStore = consumedStore;
|
|
1464
1464
|
}
|
|
1465
1465
|
if (pgPool) {
|
|
1466
|
-
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-
|
|
1466
|
+
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-KIQIE6I6.js");
|
|
1467
1467
|
const pgLedger = new CreditLedger2(pgPool, tempoSessionStore);
|
|
1468
1468
|
pendingInits.push(pgLedger.init());
|
|
1469
1469
|
creditLedger = pgLedger;
|
|
@@ -1472,7 +1472,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1472
1472
|
pendingInits.push(pgProcessed.init());
|
|
1473
1473
|
processedPayments = pgProcessed;
|
|
1474
1474
|
} else {
|
|
1475
|
-
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-
|
|
1475
|
+
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-ATYFAYBG.js");
|
|
1476
1476
|
creditLedger = disposableCashu?.ledger ?? new MemoryCreditLedger2();
|
|
1477
1477
|
const { MemoryProcessedPaymentStore: MemoryProcessedPaymentStore2 } = await import("../processed-payment-store-GKMAWOM3.js");
|
|
1478
1478
|
processedPayments = new MemoryProcessedPaymentStore2();
|