@dvmkit/sdk 0.15.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-IVW5UMD3.js → chunk-2UZOJRRS.js} +1 -1
- package/dist/{chunk-G47UY3BK.js → chunk-4IFZHJQK.js} +1 -1
- package/dist/{chunk-BAHZK334.js → chunk-5U2RG3ZW.js} +6 -2
- package/dist/{chunk-GB2N4NG5.js → chunk-7N5VDCG3.js} +2 -2
- package/dist/{chunk-CVT5LTAK.js → chunk-7QGS27UT.js} +1 -1
- package/dist/{chunk-FOXGN4KQ.js → chunk-ELNWQS24.js} +1 -1
- package/dist/{chunk-I2H2XYQV.js → chunk-F2LNWZCV.js} +1 -1
- package/dist/{chunk-RQK7OFJO.js → chunk-FRGKANTZ.js} +1 -1
- package/dist/{chunk-2I6NXIPG.js → chunk-ICHC4VDZ.js} +1 -1
- package/dist/{chunk-LM6E4YHQ.js → chunk-K4ZQE7IB.js} +2 -2
- package/dist/{chunk-P5KQKLWL.js → chunk-MD34LE6M.js} +1 -1
- package/dist/{chunk-YMMCRQ2H.js → chunk-N4SBDUVD.js} +1 -1
- package/dist/{chunk-IUODXRQN.js → chunk-OYBSDJR6.js} +2 -2
- package/dist/{chunk-CRH6BMMG.js → chunk-PBT3H2LZ.js} +1 -1
- package/dist/{chunk-33J3NQDZ.js → chunk-PP5WHB6T.js} +1 -1
- package/dist/{chunk-ZJRGORJ3.js → chunk-SGSHDMHP.js} +19 -19
- package/dist/{chunk-R7FH7SHX.js → chunk-TN6MWTZI.js} +2 -2
- package/dist/{chunk-PKLNMMKF.js → chunk-V4CBI5HB.js} +1 -1
- package/dist/{chunk-ZO2ZAPG3.js → chunk-V73WRF46.js} +1 -1
- package/dist/{chunk-7NZRJPEP.js → chunk-VQHBJXBL.js} +1 -1
- package/dist/{chunk-LZFZGY7L.js → chunk-XBQTFOIT.js} +1 -1
- package/dist/{chunk-QRYGBKCR.js → chunk-XSF5YTEY.js} +1 -1
- package/dist/{credit-ledger-EZDZYLSK.js → credit-ledger-VWZ5NP7V.js} +3 -3
- package/dist/index.js +4 -4
- package/dist/internal/caller.js +7 -7
- package/dist/internal/server.js +20 -20
- package/dist/{memory-credit-ledger-REZGHPJP.js → memory-credit-ledger-DZWRQGSF.js} +4 -4
- package/dist/{mpp-setup-RG5JDMIO.js → mpp-setup-3NJY354I.js} +3 -3
- package/dist/{payout-reporter-DDQ7FGRC.js → payout-reporter-P3652TLG.js} +2 -2
- package/dist/{postgres-consumed-credential-store-I4WTNVQZ.js → postgres-consumed-credential-store-S2CBQ4NO.js} +1 -1
- package/dist/{postgres-job-store-IXTNWT4K.js → postgres-job-store-JRSG54VJ.js} +2 -2
- package/dist/{postgres-replay-store-3F5FCUXN.js → postgres-replay-store-ZPILIJIW.js} +2 -2
- package/dist/{pricing-HLYEGPXD.js → pricing-3P7KAONY.js} +3 -3
- package/dist/{revenue-reporter-RIEHBKRA.js → revenue-reporter-2P3PWJJM.js} +2 -2
- package/dist/server/index.js +27 -27
- package/dist/{tempo-charge-store-B5SYDCBK.js → tempo-charge-store-2LK6IDLS.js} +2 -2
- package/dist/{tempo-session-store-FHW7N22I.js → tempo-session-store-5MHCH3YW.js} +3 -3
- package/dist/testing/index.js +6 -6
- package/dist/{x402-AY6P5KV4.js → x402-6T73AZQ6.js} +3 -3
- package/package.json +1 -1
|
@@ -1024,7 +1024,8 @@ var diagnostic_catalogue_v1_default = {
|
|
|
1024
1024
|
identityFields: [
|
|
1025
1025
|
"dvm_id",
|
|
1026
1026
|
"dvm_slug",
|
|
1027
|
-
"builder_id"
|
|
1027
|
+
"builder_id",
|
|
1028
|
+
"dvm_resolution"
|
|
1028
1029
|
],
|
|
1029
1030
|
capabilityFields: [
|
|
1030
1031
|
"capability"
|
|
@@ -1445,11 +1446,14 @@ function projectHost(value) {
|
|
|
1445
1446
|
}
|
|
1446
1447
|
function validateIdentity(key, value) {
|
|
1447
1448
|
if (typeof value !== "string") return void 0;
|
|
1449
|
+
if (key === "dvm_resolution") return value === "none" ? value : void 0;
|
|
1448
1450
|
if (key === "dvm_slug") return SLUG_RE.test(value) ? value : void 0;
|
|
1449
1451
|
return value.length <= 36 && UUID_RE.test(value) ? value : void 0;
|
|
1450
1452
|
}
|
|
1451
1453
|
function projectIdentity(key, authority) {
|
|
1452
|
-
|
|
1454
|
+
const identities = authority && AUTHORITY_IDENTITIES.get(authority);
|
|
1455
|
+
if (key === "dvm_resolution" && identities?.dvm_id) return void 0;
|
|
1456
|
+
return identities?.[key];
|
|
1453
1457
|
}
|
|
1454
1458
|
function projectCapability(value, authority) {
|
|
1455
1459
|
if (typeof value !== "string" || !CAPABILITY_RE.test(value)) return void 0;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loggers
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TN6MWTZI.js";
|
|
4
4
|
import {
|
|
5
5
|
diagnosticConsole
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5U2RG3ZW.js";
|
|
7
7
|
|
|
8
8
|
// src/sdk/server/mpp-setup.ts
|
|
9
9
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
} from "./chunk-5UC7TOQC.js";
|
|
11
11
|
import {
|
|
12
12
|
applyRetryToPool
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ELNWQS24.js";
|
|
14
14
|
import {
|
|
15
15
|
x402NetworkByCaip2
|
|
16
16
|
} from "./chunk-BPYMEMQX.js";
|
|
17
17
|
import {
|
|
18
18
|
diagnosticConsole
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5U2RG3ZW.js";
|
|
20
20
|
|
|
21
21
|
// src/sdk/server/credit-ledger.ts
|
|
22
22
|
import { randomUUID } from "crypto";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createX402FacilitatorAuthHeaders,
|
|
3
3
|
settleWithFacilitator,
|
|
4
4
|
verifyWithFacilitator
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-F2LNWZCV.js";
|
|
6
6
|
import {
|
|
7
7
|
buildPaymentRequirements,
|
|
8
8
|
decodePayment,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-66HGCPBU.js";
|
|
16
16
|
import {
|
|
17
17
|
diagnosticConsole
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5U2RG3ZW.js";
|
|
19
19
|
|
|
20
20
|
// src/lib/x402/verify.ts
|
|
21
21
|
async function verifyX402Payment(paymentHeader, config, requiredUsdcMicro, resource, btcUsdRate, exactVersions = { v1: true, v2: true }) {
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-XRLKGCAW.js";
|
|
6
6
|
import {
|
|
7
7
|
x402EarnedCeiling
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ICHC4VDZ.js";
|
|
9
9
|
import {
|
|
10
10
|
createX402FacilitatorAuthHeaders,
|
|
11
11
|
createX402FacilitatorClient,
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
verifyWithFacilitator,
|
|
15
15
|
withPaymentDiagnostics,
|
|
16
16
|
withPaymentStage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-F2LNWZCV.js";
|
|
18
18
|
import {
|
|
19
19
|
MemoryCreditLedger
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PP5WHB6T.js";
|
|
21
21
|
import {
|
|
22
22
|
PostgresJobStore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-N4SBDUVD.js";
|
|
24
24
|
import {
|
|
25
25
|
SIGNED_ENVELOPE_FIELDS,
|
|
26
26
|
SignedRequestError,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
humanizeZodIssues,
|
|
29
29
|
signedRequestInput,
|
|
30
30
|
zodIssuesOf
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-V73WRF46.js";
|
|
32
32
|
import {
|
|
33
33
|
MemoryJobStore,
|
|
34
34
|
UNCAPPABLE_ASK_TOTAL,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
isJobRetentionStore,
|
|
38
38
|
isReceiptIssuingStore,
|
|
39
39
|
isStreamableJobStore
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-V4CBI5HB.js";
|
|
41
41
|
import {
|
|
42
42
|
ContentHoldError,
|
|
43
43
|
JobCancelledError,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
receiptPubkeyFromSecret,
|
|
79
79
|
toLockPubkey,
|
|
80
80
|
verifyChallenge
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-XBQTFOIT.js";
|
|
82
82
|
import {
|
|
83
83
|
X402_BATCH_SETTLEMENT_SCHEME,
|
|
84
84
|
X402_DEFAULT_FACILITATOR,
|
|
@@ -105,7 +105,7 @@ import {
|
|
|
105
105
|
} from "./chunk-SXL44PL5.js";
|
|
106
106
|
import {
|
|
107
107
|
createConsoleLogger
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-VQHBJXBL.js";
|
|
109
109
|
import {
|
|
110
110
|
StepCache
|
|
111
111
|
} from "./chunk-BQJIFRAZ.js";
|
|
@@ -122,7 +122,7 @@ import {
|
|
|
122
122
|
roundUsd,
|
|
123
123
|
satsToFiat,
|
|
124
124
|
validateCurrency
|
|
125
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-7QGS27UT.js";
|
|
126
126
|
import {
|
|
127
127
|
CreditLedger,
|
|
128
128
|
CreditLedgerError,
|
|
@@ -138,7 +138,7 @@ import {
|
|
|
138
138
|
isNonChannelBitcoinRail,
|
|
139
139
|
netOwedSats,
|
|
140
140
|
x402SettlementPending
|
|
141
|
-
} from "./chunk-
|
|
141
|
+
} from "./chunk-K4ZQE7IB.js";
|
|
142
142
|
import {
|
|
143
143
|
parseStoreValue
|
|
144
144
|
} from "./chunk-YG7G4DPZ.js";
|
|
@@ -156,7 +156,7 @@ import {
|
|
|
156
156
|
} from "./chunk-5UC7TOQC.js";
|
|
157
157
|
import {
|
|
158
158
|
withPostgresRecoveryContext
|
|
159
|
-
} from "./chunk-
|
|
159
|
+
} from "./chunk-ELNWQS24.js";
|
|
160
160
|
import {
|
|
161
161
|
DvmError,
|
|
162
162
|
x402NetworkByCaip2
|
|
@@ -174,17 +174,17 @@ import {
|
|
|
174
174
|
installHostedTempoCloseGuard,
|
|
175
175
|
isTempoInsufficientFundsError,
|
|
176
176
|
resolveTempoNetwork
|
|
177
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-7N5VDCG3.js";
|
|
178
178
|
import {
|
|
179
179
|
loggers,
|
|
180
180
|
pinDimension,
|
|
181
181
|
withSpan,
|
|
182
182
|
withTraceContext
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-TN6MWTZI.js";
|
|
184
184
|
import {
|
|
185
185
|
createDiagnosticCapabilityAuthority,
|
|
186
186
|
diagnosticConsole
|
|
187
|
-
} from "./chunk-
|
|
187
|
+
} from "./chunk-5U2RG3ZW.js";
|
|
188
188
|
|
|
189
189
|
// src/sdk/server/lock-pubkey-store.ts
|
|
190
190
|
async function initLockPubkeyTable(db) {
|
|
@@ -3928,7 +3928,7 @@ async function verifyUpfrontPaymentInScope(opts) {
|
|
|
3928
3928
|
x402Requirements
|
|
3929
3929
|
});
|
|
3930
3930
|
}
|
|
3931
|
-
const { verifyX402Payment } = await import("./x402-
|
|
3931
|
+
const { verifyX402Payment } = await import("./x402-6T73AZQ6.js");
|
|
3932
3932
|
const receipt = await withPaymentStage("verifier_broadcast", () => verifyX402Payment(
|
|
3933
3933
|
x402Payment,
|
|
3934
3934
|
x402Config,
|
|
@@ -4953,7 +4953,7 @@ async function verifyIncomingPaymentInScope(body, opts, snapshot) {
|
|
|
4953
4953
|
snapshot
|
|
4954
4954
|
});
|
|
4955
4955
|
}
|
|
4956
|
-
const { verifyX402Payment } = await import("./x402-
|
|
4956
|
+
const { verifyX402Payment } = await import("./x402-6T73AZQ6.js");
|
|
4957
4957
|
const receipt = await withPaymentStage("verifier_broadcast", () => verifyX402Payment(
|
|
4958
4958
|
body.content.x402_payment,
|
|
4959
4959
|
opts.x402Config,
|
|
@@ -5404,7 +5404,7 @@ async function processIncomingPaymentInScope(job, body, opts) {
|
|
|
5404
5404
|
try {
|
|
5405
5405
|
const requiredMsats = job.pendingPaymentMsats ?? 0;
|
|
5406
5406
|
const requiredUsdcMicro = job.pendingX402AmountUsdcMicro !== void 0 ? BigInt(job.pendingX402AmountUsdcMicro) : BigInt(msatsToUsdc(requiredMsats, rate));
|
|
5407
|
-
const { verifyX402Payment } = await import("./x402-
|
|
5407
|
+
const { verifyX402Payment } = await import("./x402-6T73AZQ6.js");
|
|
5408
5408
|
const receipt = await withPaymentStage("verifier_broadcast", () => verifyX402Payment(
|
|
5409
5409
|
body.content.x402_payment,
|
|
5410
5410
|
opts.x402Config,
|
|
@@ -21014,7 +21014,7 @@ async function createDVMServer(descriptor, opts) {
|
|
|
21014
21014
|
}
|
|
21015
21015
|
}
|
|
21016
21016
|
if (!opts.onJobCompleted && platformToken && platformUrl && dvmId && opts.db) {
|
|
21017
|
-
const { RevenueReporter } = await import("./revenue-reporter-
|
|
21017
|
+
const { RevenueReporter } = await import("./revenue-reporter-2P3PWJJM.js");
|
|
21018
21018
|
const reporter = new RevenueReporter(
|
|
21019
21019
|
opts.db,
|
|
21020
21020
|
platformUrl,
|
|
@@ -21024,7 +21024,7 @@ async function createDVMServer(descriptor, opts) {
|
|
|
21024
21024
|
revenueReporter = reporter;
|
|
21025
21025
|
await reporter.init();
|
|
21026
21026
|
reporter.startRetryLoop();
|
|
21027
|
-
const { MemoryX402BatchStore, PayoutReporter } = await import("./payout-reporter-
|
|
21027
|
+
const { MemoryX402BatchStore, PayoutReporter } = await import("./payout-reporter-P3652TLG.js");
|
|
21028
21028
|
payoutReporter = new PayoutReporter({
|
|
21029
21029
|
dvmId,
|
|
21030
21030
|
db: opts.db,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
extendDiagnosticIdentityAuthority,
|
|
8
8
|
projectDiagnosticFields,
|
|
9
9
|
projectSpanRow
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5U2RG3ZW.js";
|
|
11
11
|
|
|
12
12
|
// src/observability/context.ts
|
|
13
13
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -137,7 +137,7 @@ function ownDataValue(input, key) {
|
|
|
137
137
|
}
|
|
138
138
|
function ownIdentityKeys(input) {
|
|
139
139
|
try {
|
|
140
|
-
return ["dvm_id", "dvm_slug", "builder_id"].filter((key) => {
|
|
140
|
+
return ["dvm_id", "dvm_slug", "builder_id", "dvm_resolution"].filter((key) => {
|
|
141
141
|
const descriptor = (typeof input === "object" && input !== null || typeof input === "function") && Object.getOwnPropertyDescriptor(input, key);
|
|
142
142
|
return descriptor && "value" in descriptor;
|
|
143
143
|
});
|
|
@@ -10,14 +10,14 @@ import {
|
|
|
10
10
|
isDrainMethod,
|
|
11
11
|
isFundingRail,
|
|
12
12
|
x402SettlementPending
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-K4ZQE7IB.js";
|
|
14
14
|
import "./chunk-YG7G4DPZ.js";
|
|
15
15
|
import "./chunk-COYKJRMM.js";
|
|
16
16
|
import "./chunk-5UC7TOQC.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-ELNWQS24.js";
|
|
18
18
|
import "./chunk-BPYMEMQX.js";
|
|
19
19
|
import "./chunk-H3GGFEE5.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-5U2RG3ZW.js";
|
|
21
21
|
export {
|
|
22
22
|
CreditLedger,
|
|
23
23
|
CreditLedgerError,
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
SignedRequestError,
|
|
12
12
|
createSignedRequestVerifier
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-V73WRF46.js";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_CREDIT_MAX,
|
|
16
16
|
DEFAULT_CREDIT_MIN,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
} from "./chunk-SXL44PL5.js";
|
|
24
24
|
import {
|
|
25
25
|
buildUpfront
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PBT3H2LZ.js";
|
|
27
27
|
import {
|
|
28
28
|
DEFAULT_FX_CURRENCIES,
|
|
29
29
|
DEFAULT_FX_RATE_SOURCE,
|
|
@@ -41,9 +41,9 @@ import {
|
|
|
41
41
|
roundUsd,
|
|
42
42
|
satsToFiat,
|
|
43
43
|
validateCurrency
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-7QGS27UT.js";
|
|
45
45
|
import "./chunk-H3GGFEE5.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-5U2RG3ZW.js";
|
|
47
47
|
|
|
48
48
|
// src/sdk/configure.ts
|
|
49
49
|
function configureDVM(config) {
|
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-XSF5YTEY.js";
|
|
36
36
|
import {
|
|
37
37
|
MemoryKVStore
|
|
38
38
|
} from "../chunk-SDK6KDJN.js";
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
withWalletLock,
|
|
135
135
|
writeAgentMnemonic,
|
|
136
136
|
writeIdentity
|
|
137
|
-
} from "../chunk-
|
|
137
|
+
} from "../chunk-XBQTFOIT.js";
|
|
138
138
|
import {
|
|
139
139
|
X402_BATCH_SETTLEMENT_SCHEME,
|
|
140
140
|
X402_DEFAULT_FACILITATOR,
|
|
@@ -178,7 +178,7 @@ import {
|
|
|
178
178
|
import {
|
|
179
179
|
createNoopLogger,
|
|
180
180
|
createStdoutLogger
|
|
181
|
-
} from "../chunk-
|
|
181
|
+
} from "../chunk-VQHBJXBL.js";
|
|
182
182
|
import {
|
|
183
183
|
redactUrl,
|
|
184
184
|
redactUrlsInText
|
|
@@ -192,7 +192,7 @@ import {
|
|
|
192
192
|
InvalidUsdPriceError,
|
|
193
193
|
parseUsdPrice,
|
|
194
194
|
warmFxSnapshot
|
|
195
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-7QGS27UT.js";
|
|
196
196
|
import {
|
|
197
197
|
computeResultHash,
|
|
198
198
|
isDrainReceipt,
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
import {
|
|
212
212
|
applyRetryToPool,
|
|
213
213
|
withInitRetry
|
|
214
|
-
} from "../chunk-
|
|
214
|
+
} from "../chunk-ELNWQS24.js";
|
|
215
215
|
import {
|
|
216
216
|
DvmError,
|
|
217
217
|
X402_NETWORKS,
|
|
@@ -238,7 +238,7 @@ import {
|
|
|
238
238
|
randomTraceId,
|
|
239
239
|
setEmitter,
|
|
240
240
|
withTraceContext
|
|
241
|
-
} from "../chunk-
|
|
241
|
+
} from "../chunk-TN6MWTZI.js";
|
|
242
242
|
import "../chunk-66HGCPBU.js";
|
|
243
243
|
import {
|
|
244
244
|
DIAGNOSTIC_CATALOGUE_VERSION,
|
|
@@ -249,7 +249,7 @@ import {
|
|
|
249
249
|
projectDiagnosticFields,
|
|
250
250
|
projectEventName,
|
|
251
251
|
projectSpanRow
|
|
252
|
-
} from "../chunk-
|
|
252
|
+
} from "../chunk-5U2RG3ZW.js";
|
|
253
253
|
|
|
254
254
|
// src/lib/budget-core.ts
|
|
255
255
|
function checkBudgetForLedger(ledger, opts) {
|
package/dist/internal/server.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-FRGKANTZ.js";
|
|
4
4
|
import {
|
|
5
5
|
verifyX402Payment
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-OYBSDJR6.js";
|
|
7
7
|
import {
|
|
8
8
|
RevenueReporter
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-2UZOJRRS.js";
|
|
10
10
|
import {
|
|
11
11
|
PostgresTempoChargeStore
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-MD34LE6M.js";
|
|
13
13
|
import {
|
|
14
14
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
15
15
|
MintHealthTracker,
|
|
@@ -61,27 +61,27 @@ import {
|
|
|
61
61
|
verifyUpfrontPayment,
|
|
62
62
|
x402RequiredUsdcMicro,
|
|
63
63
|
x402SettledShare
|
|
64
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-SGSHDMHP.js";
|
|
65
65
|
import "../chunk-XRLKGCAW.js";
|
|
66
66
|
import {
|
|
67
67
|
PayoutReporter
|
|
68
|
-
} from "../chunk-
|
|
68
|
+
} from "../chunk-ICHC4VDZ.js";
|
|
69
69
|
import {
|
|
70
70
|
settleWithFacilitator,
|
|
71
71
|
verifyWithFacilitator
|
|
72
|
-
} from "../chunk-
|
|
73
|
-
import "../chunk-
|
|
74
|
-
import "../chunk-
|
|
72
|
+
} from "../chunk-F2LNWZCV.js";
|
|
73
|
+
import "../chunk-PP5WHB6T.js";
|
|
74
|
+
import "../chunk-N4SBDUVD.js";
|
|
75
75
|
import {
|
|
76
76
|
SIGNED_ENVELOPE_FIELDS,
|
|
77
77
|
SIGNED_ENVELOPE_TYPES,
|
|
78
78
|
createDefaultReplayStore,
|
|
79
79
|
humanizeZodError
|
|
80
|
-
} from "../chunk-
|
|
80
|
+
} from "../chunk-V73WRF46.js";
|
|
81
81
|
import {
|
|
82
82
|
createInstrumentedFetch,
|
|
83
83
|
isStaleJobReapable
|
|
84
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-V4CBI5HB.js";
|
|
85
85
|
import {
|
|
86
86
|
JobCancelledError,
|
|
87
87
|
abortJob,
|
|
@@ -93,14 +93,14 @@ import {
|
|
|
93
93
|
} from "../chunk-KVKJ7R5V.js";
|
|
94
94
|
import {
|
|
95
95
|
toLockPubkey
|
|
96
|
-
} from "../chunk-
|
|
96
|
+
} from "../chunk-XBQTFOIT.js";
|
|
97
97
|
import "../chunk-62FI3NJF.js";
|
|
98
98
|
import "../chunk-SXL44PL5.js";
|
|
99
|
-
import "../chunk-
|
|
99
|
+
import "../chunk-VQHBJXBL.js";
|
|
100
100
|
import "../chunk-FUJ36YDV.js";
|
|
101
101
|
import "../chunk-BQJIFRAZ.js";
|
|
102
|
-
import "../chunk-
|
|
103
|
-
import "../chunk-
|
|
102
|
+
import "../chunk-PBT3H2LZ.js";
|
|
103
|
+
import "../chunk-7QGS27UT.js";
|
|
104
104
|
import {
|
|
105
105
|
NON_CHANNEL_BITCOIN_RAILS,
|
|
106
106
|
depleteLots,
|
|
@@ -110,20 +110,20 @@ import {
|
|
|
110
110
|
isNonChannelBitcoinRail,
|
|
111
111
|
lotOwedSats,
|
|
112
112
|
netOwedSats
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-K4ZQE7IB.js";
|
|
114
114
|
import "../chunk-YG7G4DPZ.js";
|
|
115
115
|
import "../chunk-COYKJRMM.js";
|
|
116
116
|
import "../chunk-5UC7TOQC.js";
|
|
117
|
-
import "../chunk-
|
|
117
|
+
import "../chunk-ELNWQS24.js";
|
|
118
118
|
import "../chunk-BPYMEMQX.js";
|
|
119
119
|
import "../chunk-H3GGFEE5.js";
|
|
120
120
|
import {
|
|
121
121
|
_testing,
|
|
122
122
|
wrapMppx
|
|
123
|
-
} from "../chunk-
|
|
124
|
-
import "../chunk-
|
|
123
|
+
} from "../chunk-7N5VDCG3.js";
|
|
124
|
+
import "../chunk-TN6MWTZI.js";
|
|
125
125
|
import "../chunk-66HGCPBU.js";
|
|
126
|
-
import "../chunk-
|
|
126
|
+
import "../chunk-5U2RG3ZW.js";
|
|
127
127
|
export {
|
|
128
128
|
DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
|
|
129
129
|
JobCancelledError,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MemoryCreditLedger
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-PP5WHB6T.js";
|
|
4
|
+
import "./chunk-K4ZQE7IB.js";
|
|
5
5
|
import "./chunk-YG7G4DPZ.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
7
|
import "./chunk-5UC7TOQC.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-ELNWQS24.js";
|
|
9
9
|
import "./chunk-BPYMEMQX.js";
|
|
10
10
|
import "./chunk-H3GGFEE5.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-5U2RG3ZW.js";
|
|
12
12
|
export {
|
|
13
13
|
MemoryCreditLedger
|
|
14
14
|
};
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
parseMppMethodsAllowlist,
|
|
21
21
|
resolveTempoNetwork,
|
|
22
22
|
wrapMppx
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-7N5VDCG3.js";
|
|
24
|
+
import "./chunk-TN6MWTZI.js";
|
|
25
25
|
import "./chunk-66HGCPBU.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-5U2RG3ZW.js";
|
|
27
27
|
export {
|
|
28
28
|
MPPX_HMAC_MISMATCH_REASON,
|
|
29
29
|
TEMPO_MAINNET_CHAIN_ID,
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
PayoutReporter,
|
|
5
5
|
PostgresX402BatchStore,
|
|
6
6
|
x402EarnedCeiling
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ICHC4VDZ.js";
|
|
8
8
|
import "./chunk-COYKJRMM.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5U2RG3ZW.js";
|
|
10
10
|
export {
|
|
11
11
|
MemoryX402BatchStore,
|
|
12
12
|
PAYOUT_SNAPSHOT_INTERVAL_MS,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresJobStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N4SBDUVD.js";
|
|
4
4
|
import "./chunk-KVKJ7R5V.js";
|
|
5
5
|
import "./chunk-BQJIFRAZ.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-5U2RG3ZW.js";
|
|
8
8
|
export {
|
|
9
9
|
PostgresJobStore
|
|
10
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildUpfront
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PBT3H2LZ.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-7QGS27UT.js";
|
|
26
|
+
import "./chunk-5U2RG3ZW.js";
|
|
27
27
|
export {
|
|
28
28
|
DEFAULT_FX_CURRENCIES,
|
|
29
29
|
DEFAULT_FX_RATE_SOURCE,
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresReplayStore
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-4IFZHJQK.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-XSF5YTEY.js";
|
|
22
22
|
import {
|
|
23
23
|
MemoryKVStore
|
|
24
24
|
} from "../chunk-SDK6KDJN.js";
|
|
@@ -82,29 +82,29 @@ import {
|
|
|
82
82
|
toCreditView,
|
|
83
83
|
unknownRouteNotFound,
|
|
84
84
|
writeOffHostedTempoCloseReport
|
|
85
|
-
} from "../chunk-
|
|
85
|
+
} from "../chunk-SGSHDMHP.js";
|
|
86
86
|
import {
|
|
87
87
|
MemoryProcessedPaymentStore,
|
|
88
88
|
PostgresProcessedPaymentStore,
|
|
89
89
|
ProcessedPaymentReplayError
|
|
90
90
|
} from "../chunk-XRLKGCAW.js";
|
|
91
|
-
import "../chunk-
|
|
92
|
-
import "../chunk-
|
|
91
|
+
import "../chunk-ICHC4VDZ.js";
|
|
92
|
+
import "../chunk-F2LNWZCV.js";
|
|
93
93
|
import {
|
|
94
94
|
MemoryCreditLedger
|
|
95
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-PP5WHB6T.js";
|
|
96
96
|
import {
|
|
97
97
|
PostgresJobStore
|
|
98
|
-
} from "../chunk-
|
|
98
|
+
} from "../chunk-N4SBDUVD.js";
|
|
99
99
|
import {
|
|
100
100
|
SignedRequestError,
|
|
101
101
|
createDefaultReplayStore,
|
|
102
102
|
createSignedRequestVerifier,
|
|
103
103
|
signedRequestInput
|
|
104
|
-
} from "../chunk-
|
|
104
|
+
} from "../chunk-V73WRF46.js";
|
|
105
105
|
import {
|
|
106
106
|
isStreamableJobStore
|
|
107
|
-
} from "../chunk-
|
|
107
|
+
} from "../chunk-V4CBI5HB.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-XBQTFOIT.js";
|
|
119
119
|
import {
|
|
120
120
|
X402_DEFAULT_FACILITATOR,
|
|
121
121
|
X402_DEFAULT_NETWORK,
|
|
@@ -127,11 +127,11 @@ import {
|
|
|
127
127
|
SIGNED_REQUEST_STATEMENT_VERSION,
|
|
128
128
|
signedRequestStatementHeader
|
|
129
129
|
} from "../chunk-SXL44PL5.js";
|
|
130
|
-
import "../chunk-
|
|
130
|
+
import "../chunk-VQHBJXBL.js";
|
|
131
131
|
import "../chunk-FUJ36YDV.js";
|
|
132
132
|
import "../chunk-BQJIFRAZ.js";
|
|
133
|
-
import "../chunk-
|
|
134
|
-
import "../chunk-
|
|
133
|
+
import "../chunk-PBT3H2LZ.js";
|
|
134
|
+
import "../chunk-7QGS27UT.js";
|
|
135
135
|
import {
|
|
136
136
|
CreditLedger,
|
|
137
137
|
CreditLedgerError,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
PostgresX402ChannelStorage,
|
|
140
140
|
X402RelaySubmissionLockError,
|
|
141
141
|
allocateDrawValue
|
|
142
|
-
} from "../chunk-
|
|
142
|
+
} from "../chunk-K4ZQE7IB.js";
|
|
143
143
|
import "../chunk-YG7G4DPZ.js";
|
|
144
144
|
import {
|
|
145
145
|
SDK_INIT_ADVISORY_LOCK,
|
|
@@ -148,7 +148,7 @@ import {
|
|
|
148
148
|
import "../chunk-5UC7TOQC.js";
|
|
149
149
|
import {
|
|
150
150
|
applyRetryToPool
|
|
151
|
-
} from "../chunk-
|
|
151
|
+
} from "../chunk-ELNWQS24.js";
|
|
152
152
|
import {
|
|
153
153
|
assertSupportedX402Network
|
|
154
154
|
} from "../chunk-BPYMEMQX.js";
|
|
@@ -159,14 +159,14 @@ import {
|
|
|
159
159
|
TEMPO_SETTLEMENT_DEFAULT_LOW_BALANCE_MICRO,
|
|
160
160
|
TempoSettlementReadiness,
|
|
161
161
|
resolveTempoNetwork
|
|
162
|
-
} from "../chunk-
|
|
162
|
+
} from "../chunk-7N5VDCG3.js";
|
|
163
163
|
import {
|
|
164
164
|
initLoggers
|
|
165
|
-
} from "../chunk-
|
|
165
|
+
} from "../chunk-TN6MWTZI.js";
|
|
166
166
|
import "../chunk-66HGCPBU.js";
|
|
167
167
|
import {
|
|
168
168
|
diagnosticConsole
|
|
169
|
-
} from "../chunk-
|
|
169
|
+
} from "../chunk-5U2RG3ZW.js";
|
|
170
170
|
|
|
171
171
|
// src/sdk/server/cashu-env.ts
|
|
172
172
|
async function resolveCashuOptsFromEnv(env, pool, cashuModeHint) {
|
|
@@ -1190,7 +1190,7 @@ function createDVMHost(opts = {}) {
|
|
|
1190
1190
|
});
|
|
1191
1191
|
applyRetryToPool(pool, "dvm-host");
|
|
1192
1192
|
pgPool = pool;
|
|
1193
|
-
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-
|
|
1193
|
+
const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-JRSG54VJ.js");
|
|
1194
1194
|
const pgJobStore = new PostgresJobStore2(pool);
|
|
1195
1195
|
pendingInits.push(pgJobStore.init(), pgJobStore.initStreaming());
|
|
1196
1196
|
jobStore = pgJobStore;
|
|
@@ -1283,11 +1283,11 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1283
1283
|
let tempoChargeBackend = "user-supplied";
|
|
1284
1284
|
const mppTempoRecipient = envMaybe.DVMKIT_TEMPO_RECIPIENT;
|
|
1285
1285
|
if (!mpp && mppTempoRecipient) {
|
|
1286
|
-
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-
|
|
1286
|
+
const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-3NJY354I.js");
|
|
1287
1287
|
tempoChargeBackend = pgPool ? "postgres" : "memory";
|
|
1288
1288
|
let tempoCharge;
|
|
1289
1289
|
if (pgPool) {
|
|
1290
|
-
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-
|
|
1290
|
+
const { PostgresTempoChargeStore } = await import("../tempo-charge-store-2LK6IDLS.js");
|
|
1291
1291
|
const chargeStore = new PostgresTempoChargeStore(pgPool);
|
|
1292
1292
|
tempoChargeStore = chargeStore;
|
|
1293
1293
|
pendingInits.push(chargeStore.init());
|
|
@@ -1307,7 +1307,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1307
1307
|
{ createPublicClient, createWalletClient, erc20Abi, http },
|
|
1308
1308
|
{ tempo: tempoMainnet, tempoModerato }
|
|
1309
1309
|
] = await Promise.all([
|
|
1310
|
-
import("../tempo-session-store-
|
|
1310
|
+
import("../tempo-session-store-5MHCH3YW.js"),
|
|
1311
1311
|
import("viem/accounts"),
|
|
1312
1312
|
import("viem"),
|
|
1313
1313
|
import("viem/chains")
|
|
@@ -1460,7 +1460,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
1462
|
const fxSource = envMaybe.DVMKIT_FX_SOURCE;
|
|
1463
|
-
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-
|
|
1463
|
+
const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-3P7KAONY.js");
|
|
1464
1464
|
const fxFetcher = opts.fx ?? createFxFetcher({ source: resolveFxSourceFromEnv(envMaybe) });
|
|
1465
1465
|
const hostRailConfigured = (opts.paymentMethods?.length ?? 0) > 0 || (effectiveMints?.length ?? 0) > 0 || !!x402WithDualServe || !!mpp;
|
|
1466
1466
|
if (mounts.some((entry) => mountNeedsFx(entry, hostRailConfigured))) warmFxSnapshot(fxFetcher);
|
|
@@ -1470,7 +1470,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1470
1470
|
assertReceiptIdentity(envMaybe, opts.builder, receiptKey, cashuOpts.dvmId, opts.devMode);
|
|
1471
1471
|
let sharedPgReplayStore;
|
|
1472
1472
|
if (pgPool) {
|
|
1473
|
-
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-
|
|
1473
|
+
const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-ZPILIJIW.js");
|
|
1474
1474
|
const store2 = new PostgresReplayStore2(pgPool);
|
|
1475
1475
|
pendingInits.push(store2.init());
|
|
1476
1476
|
sharedPgReplayStore = store2;
|
|
@@ -1498,13 +1498,13 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1498
1498
|
}
|
|
1499
1499
|
let sharedPgConsumedStore;
|
|
1500
1500
|
if (pgPool) {
|
|
1501
|
-
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-
|
|
1501
|
+
const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-S2CBQ4NO.js");
|
|
1502
1502
|
const consumedStore = new PostgresConsumedCredentialStore(pgPool);
|
|
1503
1503
|
pendingInits.push(consumedStore.init());
|
|
1504
1504
|
sharedPgConsumedStore = consumedStore;
|
|
1505
1505
|
}
|
|
1506
1506
|
if (pgPool) {
|
|
1507
|
-
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-
|
|
1507
|
+
const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-VWZ5NP7V.js");
|
|
1508
1508
|
const pgLedger = new CreditLedger2(pgPool, tempoSessionStore);
|
|
1509
1509
|
pendingInits.push(pgLedger.init());
|
|
1510
1510
|
creditLedger = pgLedger;
|
|
@@ -1513,7 +1513,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
|
|
|
1513
1513
|
pendingInits.push(pgProcessed.init());
|
|
1514
1514
|
processedPayments = pgProcessed;
|
|
1515
1515
|
} else {
|
|
1516
|
-
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-
|
|
1516
|
+
const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-DZWRQGSF.js");
|
|
1517
1517
|
creditLedger = disposableCashu?.ledger ?? new MemoryCreditLedger2();
|
|
1518
1518
|
const { MemoryProcessedPaymentStore: MemoryProcessedPaymentStore2 } = await import("../processed-payment-store-GKMAWOM3.js");
|
|
1519
1519
|
processedPayments = new MemoryProcessedPaymentStore2();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoChargeStore
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MD34LE6M.js";
|
|
4
4
|
import "./chunk-YG7G4DPZ.js";
|
|
5
5
|
import "./chunk-COYKJRMM.js";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-5U2RG3ZW.js";
|
|
7
7
|
export {
|
|
8
8
|
PostgresTempoChargeStore
|
|
9
9
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgresTempoSessionStore,
|
|
3
3
|
assertMonotonicTransition
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FRGKANTZ.js";
|
|
5
5
|
import "./chunk-YG7G4DPZ.js";
|
|
6
6
|
import "./chunk-COYKJRMM.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-ELNWQS24.js";
|
|
8
|
+
import "./chunk-5U2RG3ZW.js";
|
|
9
9
|
export {
|
|
10
10
|
PostgresTempoSessionStore,
|
|
11
11
|
assertMonotonicTransition
|
package/dist/testing/index.js
CHANGED
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
MemoryJobStore,
|
|
6
6
|
createInstrumentedFetch
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-V4CBI5HB.js";
|
|
8
8
|
import {
|
|
9
9
|
JobCancelledError
|
|
10
10
|
} from "../chunk-KVKJ7R5V.js";
|
|
11
11
|
import {
|
|
12
12
|
createNoopLogger
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-VQHBJXBL.js";
|
|
14
14
|
import "../chunk-FUJ36YDV.js";
|
|
15
15
|
import "../chunk-BQJIFRAZ.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-PBT3H2LZ.js";
|
|
17
17
|
import {
|
|
18
18
|
validateCurrency
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import "../chunk-
|
|
19
|
+
} from "../chunk-7QGS27UT.js";
|
|
20
|
+
import "../chunk-TN6MWTZI.js";
|
|
21
21
|
import "../chunk-66HGCPBU.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-5U2RG3ZW.js";
|
|
23
23
|
|
|
24
24
|
// src/sdk/testing/test-context.ts
|
|
25
25
|
function createTestContext(opts) {
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-WMGXJQI3.js";
|
|
7
7
|
import {
|
|
8
8
|
verifyX402Payment
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-OYBSDJR6.js";
|
|
10
|
+
import "./chunk-F2LNWZCV.js";
|
|
11
11
|
import {
|
|
12
12
|
X402_DEFAULT_FACILITATOR,
|
|
13
13
|
X402_DEFAULT_NETWORK,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
x402SupportedNetworksHint
|
|
38
38
|
} from "./chunk-BPYMEMQX.js";
|
|
39
39
|
import "./chunk-66HGCPBU.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-5U2RG3ZW.js";
|
|
41
41
|
export {
|
|
42
42
|
X402_DEFAULT_FACILITATOR,
|
|
43
43
|
X402_DEFAULT_NETWORK,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dvmkit/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "SDK for building Digital Vending Machines: pay-per-use HTTPS services AI agents can find, pay, and call with no account or API key",
|
|
5
5
|
"author": "DVM Technologies Ltd",
|
|
6
6
|
"keywords": [
|