@atumlabs/mppx-atum-escrow 0.2.2 → 0.4.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/server.js CHANGED
@@ -6,26 +6,42 @@
6
6
  */
7
7
  import { createRequire as __atumCreateRequire } from 'module'; const require = __atumCreateRequire(import.meta.url);
8
8
  import {
9
+ PaymentRejectedError,
10
+ SettlementFailedError,
11
+ SettlementPendingError,
12
+ buildChargeChallenge,
9
13
  buildChargeRequest,
10
14
  corridorFromDefaults,
15
+ isPaymentRejected,
16
+ isSettlementFailed,
17
+ isSettlementPending,
11
18
  registerServer,
12
19
  validateCorridor
13
- } from "./chunk-NEM3HEZW.js";
20
+ } from "./chunk-TPLD2L6B.js";
14
21
  import {
15
22
  ChargeRequestSchema,
16
23
  CredentialPayloadSchema,
17
24
  INTENT,
25
+ INTENT_ID_META_KEY,
18
26
  METHOD_NAME,
19
27
  atumEscrowChargeMethod
20
- } from "./chunk-4P34CLTO.js";
28
+ } from "./chunk-OEEC5P3E.js";
21
29
  export {
22
30
  ChargeRequestSchema,
23
31
  CredentialPayloadSchema,
24
32
  INTENT,
33
+ INTENT_ID_META_KEY,
25
34
  METHOD_NAME,
35
+ PaymentRejectedError,
36
+ SettlementFailedError,
37
+ SettlementPendingError,
26
38
  atumEscrowChargeMethod,
39
+ buildChargeChallenge,
27
40
  buildChargeRequest,
28
41
  corridorFromDefaults,
42
+ isPaymentRejected,
43
+ isSettlementFailed,
44
+ isSettlementPending,
29
45
  registerServer,
30
46
  validateCorridor
31
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atumlabs/mppx-atum-escrow",
3
- "version": "0.2.2",
3
+ "version": "0.4.0",
4
4
  "description": "Atum cross-chain escrow payment method for the Machine Payments Protocol (MPP).",
5
5
  "author": "Atum Labs, Inc.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -54,13 +54,14 @@
54
54
  "THIRD-PARTY-NOTICES.txt"
55
55
  ],
56
56
  "scripts": {
57
- "prebuild:deps": "node -e \"const {existsSync}=require('fs');for(const p of ['../contracts/evm/escrow-encoding/typescript/tsconfig.json','../contracts/tvm/escrow-encoding/typescript/tsconfig.json','../contracts/svm/escrow-encoding/typescript/tsconfig.json','../schemas/apis/x402/v1/bindings/typescript/tsconfig.json','../schemas/apis/fulfillment-confirmation/v1/bindings/typescript/tsconfig.json','../schemas/declarations/PaymentRequest/v1/bindings/typescript/sender-auth/tsconfig.json']){if(!existsSync(p)){console.error('bundled sibling not found at '+p+'. Is this checked out inside the protocol monorepo?');process.exit(1)}}if(!existsSync('../payment-gateway-client/dist/index.js')){console.error('@atum-labs/payment-gateway-client is not built. Run its build first (pnpm --filter @atum-labs/payment-gateway-client build).');process.exit(1)}\"",
58
- "build:deps": "tsc -p ../contracts/evm/escrow-encoding/typescript/tsconfig.json && tsc -p ../contracts/tvm/escrow-encoding/typescript/tsconfig.json && tsc -p ../contracts/svm/escrow-encoding/typescript/tsconfig.json && tsc -p ../schemas/apis/x402/v1/bindings/typescript/tsconfig.json && tsc -p ../schemas/apis/fulfillment-confirmation/v1/bindings/typescript/tsconfig.json && tsc -p ../schemas/declarations/PaymentRequest/v1/bindings/typescript/sender-auth/tsconfig.json",
59
- "build": "pnpm run build:deps && tsup && node scripts/stamp-entry-headers.mjs",
60
- "typecheck": "pnpm run build:deps && tsc --noEmit",
61
- "pretest": "pnpm run build:deps",
62
- "test": "vitest run",
63
- "clean": "rm -rf dist ../contracts/evm/escrow-encoding/typescript/dist ../contracts/tvm/escrow-encoding/typescript/dist ../contracts/svm/escrow-encoding/typescript/dist ../schemas/apis/x402/v1/bindings/typescript/dist ../schemas/apis/fulfillment-confirmation/v1/bindings/typescript/dist ../schemas/declarations/PaymentRequest/v1/bindings/typescript/sender-auth/dist",
57
+ "prebuild:deps": "node -e \"if(!require('fs').existsSync('../pnpm-workspace.yaml')){console.error('protocol workspace not found at ../pnpm-workspace.yaml. Is this checked out inside the protocol monorepo?');process.exit(1)}\"",
58
+ "build:deps": "pnpm --filter \"@atum-labs/mppx-atum-escrow^...\" run build",
59
+ "build": "tsup && node scripts/stamp-entry-headers.mjs",
60
+ "lint": "eslint . --max-warnings 0",
61
+ "typecheck": "tsc --noEmit",
62
+ "typecheck:tests": "tsc -p tsconfig.test.json",
63
+ "test": "pnpm run typecheck:tests && vitest run",
64
+ "clean": "rm -rf dist && pnpm --filter \"@atum-labs/mppx-atum-escrow^...\" run clean",
64
65
  "check:publishable": "node scripts/check-publishable.mjs",
65
66
  "gen:notices": "node scripts/gen-third-party-notices.mjs",
66
67
  "prepare": "pnpm run build",
@@ -82,6 +83,7 @@
82
83
  "@atum-labs/fulfillment-confirmation": "workspace:*",
83
84
  "@atum-labs/payment-gateway-client": "workspace:*",
84
85
  "@atum-labs/payment-request-sender-auth": "workspace:*",
86
+ "@atum-labs/payment-request-token-approval": "workspace:*",
85
87
  "@atum-labs/publish-guard": "workspace:*",
86
88
  "@atum-labs/schema-declarations": "workspace:*",
87
89
  "@atum-labs/solana-escrow-encoding": "workspace:*",