@dvmkit/sdk 0.7.0-rc.3 → 0.7.0-rc.4
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-2OM2QPBE.js → chunk-3CNYUUD7.js} +1 -1
- package/dist/{chunk-3UK3CDOT.js → chunk-5WOKIGLM.js} +52 -39
- package/dist/{chunk-MON76YBJ.js → chunk-76W5MYFF.js} +1 -1
- package/dist/{chunk-I555L2WK.js → chunk-AE2ITUMA.js} +1 -1
- package/dist/{chunk-DNG4KGSC.js → chunk-ARGYJ7SB.js} +1 -1
- package/dist/{chunk-HCE4MPZ5.js → chunk-C6YFACIM.js} +1 -1
- package/dist/{chunk-TRNMTTPX.js → chunk-CYTV76CG.js} +1 -1
- package/dist/{chunk-VB5OLOZH.js → chunk-DY2MIZ6E.js} +1 -1
- package/dist/{chunk-SPYEJXI7.js → chunk-EN7VI7T5.js} +2 -2
- package/dist/{chunk-RAGX6VG7.js → chunk-H2XKINRX.js} +1 -1
- package/dist/{chunk-AQ7OX5NX.js → chunk-KIPJRLGP.js} +1 -1
- package/dist/{chunk-6STC5TCP.js → chunk-LZHBNR5C.js} +1 -1
- package/dist/{chunk-GSLS4464.js → chunk-MCIIDEXH.js} +1 -1
- package/dist/{chunk-USL7ZEXN.js → chunk-MU3UX5M4.js} +1 -1
- package/dist/{chunk-RXPHMS4C.js → chunk-O3JEEW5V.js} +1 -1
- package/dist/{chunk-72V5DTEC.js → chunk-QFRU6W34.js} +1 -1
- package/dist/{chunk-IIZQNDQU.js → chunk-RBCHIOVB.js} +1 -1
- package/dist/{chunk-H5FVVEEN.js → chunk-UEYUFBSV.js} +2 -2
- package/dist/{chunk-LAKP6FUI.js → chunk-WIQLTSJY.js} +11 -1
- package/dist/{chunk-26W6GPCD.js → chunk-WNX22IND.js} +1 -1
- package/dist/{chunk-CLIAFTUR.js → chunk-XYLF33BJ.js} +119 -20
- package/dist/{credit-ledger-7Z7LOCTN.js → credit-ledger-4ZIL7IX2.js} +3 -3
- package/dist/{credit-menu-fy0DDigm.d.ts → credit-menu-D7lF-100.d.ts} +3 -1
- package/dist/{fx-DM0_NYiE.d.ts → fx-4TFUkedZ.d.ts} +9 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -4
- package/dist/internal/caller.d.ts +1 -1
- package/dist/internal/caller.js +6 -6
- package/dist/internal/server.d.ts +3 -3
- package/dist/internal/server.js +19 -19
- package/dist/{memory-credit-ledger-3WOS74UH.js → memory-credit-ledger-HCECP6R7.js} +4 -4
- package/dist/{mpp-setup-XB4KATMU.js → mpp-setup-OL22TIDP.js} +2 -2
- package/dist/{payout-reporter-WT7XYW42.js → payout-reporter-WSLDLMKK.js} +2 -2
- package/dist/{postgres-consumed-credential-store-W7UP33AH.js → postgres-consumed-credential-store-7ONNOW37.js} +1 -1
- package/dist/{postgres-job-store-3KGUGFRD.js → postgres-job-store-36GJGQMB.js} +2 -2
- package/dist/{postgres-replay-store-CVNJJOQG.js → postgres-replay-store-JJ6XPVIU.js} +2 -2
- package/dist/{pricing-QAVZUTZR.js → pricing-FM6WVLCR.js} +3 -3
- package/dist/{revenue-reporter-7UR3W2SD.js → revenue-reporter-CAWZMYQK.js} +2 -2
- package/dist/server/index.d.ts +3 -3
- package/dist/server/index.js +25 -25
- package/dist/{tempo-charge-store-GA6CED6O.js → tempo-charge-store-MVZH6CEB.js} +2 -2
- package/dist/{tempo-session-store-WZWQRITB.js → tempo-session-store-CCCG4HL7.js} +3 -3
- package/dist/testing/index.js +5 -5
- package/dist/{x402-ZU4GML7Z.js → x402-RHVRGUUI.js} +3 -3
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresReplayStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LZHBNR5C.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-3CNYUUD7.js";
|
|
22
22
|
import {
|
|
23
23
|
MemoryKVStore
|
|
24
24
|
} from "../chunk-SDK6KDJN.js";
|
|
@@ -80,31 +80,31 @@ import {
|
|
|
80
80
|
stripProtocolEnvelope,
|
|
81
81
|
toCreditView,
|
|
82
82
|
unknownRouteNotFound
|
|
83
|
-
} from "../chunk-
|
|
83
|
+
} from "../chunk-5WOKIGLM.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-
|
|
90
|
+
} from "../chunk-C6YFACIM.js";
|
|
91
|
+
import "../chunk-WNX22IND.js";
|
|
92
92
|
import {
|
|
93
93
|
MemoryCreditLedger
|
|
94
|
-
} from "../chunk-
|
|
94
|
+
} from "../chunk-AE2ITUMA.js";
|
|
95
95
|
import {
|
|
96
96
|
PostgresJobStore
|
|
97
|
-
} from "../chunk-
|
|
97
|
+
} from "../chunk-RBCHIOVB.js";
|
|
98
98
|
import "../chunk-YG7G4DPZ.js";
|
|
99
99
|
import {
|
|
100
100
|
SignedRequestError,
|
|
101
101
|
createDefaultReplayStore,
|
|
102
102
|
createSignedRequestVerifier,
|
|
103
103
|
signedRequestInput
|
|
104
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-QFRU6W34.js";
|
|
105
105
|
import {
|
|
106
106
|
isStreamableJobStore
|
|
107
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-H2XKINRX.js";
|
|
108
108
|
import {
|
|
109
109
|
ContentHoldError,
|
|
110
110
|
baselineContentExpiry,
|
|
@@ -115,7 +115,7 @@ import {
|
|
|
115
115
|
IMPLICIT_CREDIT_TTL_MS,
|
|
116
116
|
generateEphemeralReceiptKey,
|
|
117
117
|
receiptPubkeyFromSecret
|
|
118
|
-
} from "../chunk-
|
|
118
|
+
} from "../chunk-DY2MIZ6E.js";
|
|
119
119
|
import {
|
|
120
120
|
X402_DEFAULT_FACILITATOR,
|
|
121
121
|
X402_DEFAULT_NETWORK,
|
|
@@ -129,11 +129,11 @@ import {
|
|
|
129
129
|
} from "../chunk-UKD3R2KU.js";
|
|
130
130
|
import {
|
|
131
131
|
initLoggers
|
|
132
|
-
} from "../chunk-
|
|
132
|
+
} from "../chunk-KIPJRLGP.js";
|
|
133
133
|
import "../chunk-KXWROQGK.js";
|
|
134
134
|
import "../chunk-BQJIFRAZ.js";
|
|
135
|
-
import "../chunk-
|
|
136
|
-
import "../chunk-
|
|
135
|
+
import "../chunk-MU3UX5M4.js";
|
|
136
|
+
import "../chunk-XYLF33BJ.js";
|
|
137
137
|
import {
|
|
138
138
|
CreditLedger,
|
|
139
139
|
CreditLedgerError,
|
|
@@ -141,16 +141,16 @@ import {
|
|
|
141
141
|
PostgresX402ChannelStorage,
|
|
142
142
|
X402RelaySubmissionLockError,
|
|
143
143
|
allocateDrawValue
|
|
144
|
-
} from "../chunk-
|
|
144
|
+
} from "../chunk-EN7VI7T5.js";
|
|
145
145
|
import {
|
|
146
146
|
applyRetryToPool
|
|
147
|
-
} from "../chunk-
|
|
147
|
+
} from "../chunk-CYTV76CG.js";
|
|
148
148
|
import {
|
|
149
149
|
assertSupportedX402Network
|
|
150
150
|
} from "../chunk-BPYMEMQX.js";
|
|
151
151
|
import {
|
|
152
152
|
diagnosticConsole
|
|
153
|
-
} from "../chunk-
|
|
153
|
+
} from "../chunk-WIQLTSJY.js";
|
|
154
154
|
import {
|
|
155
155
|
MemoryProcessedPaymentStore,
|
|
156
156
|
PostgresProcessedPaymentStore,
|
|
@@ -1146,7 +1146,7 @@ function createDVMHost(opts = {}) {
|
|
|
1146
1146
|
});
|
|
1147
1147
|
applyRetryToPool(pool, "dvm-host");
|
|
1148
1148
|
pgPool = pool;
|
|
1149
|
-
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-
|
|
1149
|
+
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-36GJGQMB.js");
|
|
1150
1150
|
const pgJobStore = new PostgresJobStore2(pool);
|
|
1151
1151
|
pendingInits.push(pgJobStore.init(), pgJobStore.initStreaming());
|
|
1152
1152
|
jobStore = pgJobStore;
|
|
@@ -1239,11 +1239,11 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1239
1239
|
let tempoChargeBackend = "user-supplied";
|
|
1240
1240
|
const mppTempoRecipient = envMaybe.DVMKIT_TEMPO_RECIPIENT;
|
|
1241
1241
|
if (!mpp && mppTempoRecipient) {
|
|
1242
|
-
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-
|
|
1242
|
+
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-OL22TIDP.js");
|
|
1243
1243
|
tempoChargeBackend = pgPool ? "postgres" : "memory";
|
|
1244
1244
|
let tempoCharge;
|
|
1245
1245
|
if (pgPool) {
|
|
1246
|
-
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-
|
|
1246
|
+
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-MVZH6CEB.js");
|
|
1247
1247
|
const chargeStore = new PostgresTempoChargeStore(pgPool);
|
|
1248
1248
|
tempoChargeStore = chargeStore;
|
|
1249
1249
|
pendingInits.push(chargeStore.init());
|
|
@@ -1263,7 +1263,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1263
1263
|
{ createPublicClient, createWalletClient, erc20Abi, http },
|
|
1264
1264
|
{ tempo: tempoMainnet, tempoModerato }
|
|
1265
1265
|
] = await Promise.all([
|
|
1266
|
-
import("../tempo-session-store-
|
|
1266
|
+
import("../tempo-session-store-CCCG4HL7.js"),
|
|
1267
1267
|
import("viem/accounts"),
|
|
1268
1268
|
import("viem"),
|
|
1269
1269
|
import("viem/chains")
|
|
@@ -1416,7 +1416,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
1418
|
const fxSource = envMaybe.DVMKIT_FX_SOURCE;
|
|
1419
|
-
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-
|
|
1419
|
+
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-FM6WVLCR.js");
|
|
1420
1420
|
const fxFetcher = opts.fx ?? createFxFetcher({ source: resolveFxSourceFromEnv(envMaybe) });
|
|
1421
1421
|
const hostRailConfigured = (opts.paymentMethods?.length ?? 0) > 0 || (effectiveMints?.length ?? 0) > 0 || !!x402WithDualServe || !!mpp;
|
|
1422
1422
|
if (mounts.some((entry) => mountNeedsFx(entry, hostRailConfigured))) warmFxSnapshot(fxFetcher);
|
|
@@ -1426,7 +1426,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1426
1426
|
assertReceiptIdentity(envMaybe, opts.builder, receiptKey, cashuOpts.dvmId, opts.devMode);
|
|
1427
1427
|
let sharedPgReplayStore;
|
|
1428
1428
|
if (pgPool) {
|
|
1429
|
-
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-
|
|
1429
|
+
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-JJ6XPVIU.js");
|
|
1430
1430
|
const store2 = new PostgresReplayStore2(pgPool);
|
|
1431
1431
|
pendingInits.push(store2.init());
|
|
1432
1432
|
sharedPgReplayStore = store2;
|
|
@@ -1454,13 +1454,13 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1454
1454
|
}
|
|
1455
1455
|
let sharedPgConsumedStore;
|
|
1456
1456
|
if (pgPool) {
|
|
1457
|
-
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-
|
|
1457
|
+
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-7ONNOW37.js");
|
|
1458
1458
|
const consumedStore = new PostgresConsumedCredentialStore(pgPool);
|
|
1459
1459
|
pendingInits.push(consumedStore.init());
|
|
1460
1460
|
sharedPgConsumedStore = consumedStore;
|
|
1461
1461
|
}
|
|
1462
1462
|
if (pgPool) {
|
|
1463
|
-
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-
|
|
1463
|
+
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-4ZIL7IX2.js");
|
|
1464
1464
|
const pgLedger = new CreditLedger2(pgPool, tempoSessionStore);
|
|
1465
1465
|
pendingInits.push(pgLedger.init());
|
|
1466
1466
|
creditLedger = pgLedger;
|
|
@@ -1469,7 +1469,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1469
1469
|
pendingInits.push(pgProcessed.init());
|
|
1470
1470
|
processedPayments = pgProcessed;
|
|
1471
1471
|
} else {
|
|
1472
|
-
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-
|
|
1472
|
+
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-HCECP6R7.js");
|
|
1473
1473
|
creditLedger = disposableCashu?.ledger ?? new MemoryCreditLedger2();
|
|
1474
1474
|
const { MemoryProcessedPaymentStore: MemoryProcessedPaymentStore2 } = await import("../processed-payment-store-GKMAWOM3.js");
|
|
1475
1475
|
processedPayments = new MemoryProcessedPaymentStore2();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoChargeStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-O3JEEW5V.js";
|
|
4
4
|
import "./chunk-YG7G4DPZ.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-WIQLTSJY.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
7
|
export {
|
|
8
8
|
PostgresTempoChargeStore
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore,
|
|
3
3
|
assertMonotonicTransition
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-76W5MYFF.js";
|
|
5
5
|
import "./chunk-YG7G4DPZ.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-CYTV76CG.js";
|
|
7
|
+
import "./chunk-WIQLTSJY.js";
|
|
8
8
|
import "./chunk-COYKJRMM.js";
|
|
9
9
|
export {
|
|
10
10
|
PostgresTempoSessionStore,
|
package/dist/testing/index.js
CHANGED
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
MemoryJobStore,
|
|
6
6
|
createInstrumentedFetch
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-H2XKINRX.js";
|
|
8
8
|
import {
|
|
9
9
|
JobCancelledError
|
|
10
10
|
} from "../chunk-AFV77S4C.js";
|
|
11
11
|
import {
|
|
12
12
|
createNoopLogger
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-KIPJRLGP.js";
|
|
14
14
|
import "../chunk-KXWROQGK.js";
|
|
15
15
|
import "../chunk-BQJIFRAZ.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-MU3UX5M4.js";
|
|
17
17
|
import {
|
|
18
18
|
validateCurrency
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-XYLF33BJ.js";
|
|
20
|
+
import "../chunk-WIQLTSJY.js";
|
|
21
21
|
|
|
22
22
|
// src/sdk/testing/test-context.ts
|
|
23
23
|
function createTestContext(opts) {
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-OFSOLHRX.js";
|
|
7
7
|
import {
|
|
8
8
|
verifyX402Payment
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-UEYUFBSV.js";
|
|
10
|
+
import "./chunk-WNX22IND.js";
|
|
11
11
|
import {
|
|
12
12
|
X402_DEFAULT_FACILITATOR,
|
|
13
13
|
X402_DEFAULT_NETWORK,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
x402NetworkListForCopy,
|
|
37
37
|
x402SupportedNetworksHint
|
|
38
38
|
} from "./chunk-BPYMEMQX.js";
|
|
39
|
-
import "./chunk-
|
|
39
|
+
import "./chunk-WIQLTSJY.js";
|
|
40
40
|
export {
|
|
41
41
|
X402_DEFAULT_FACILITATOR,
|
|
42
42
|
X402_DEFAULT_NETWORK,
|