@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/CHANGELOG.md +49 -0
- package/README.md +294 -53
- package/THIRD-PARTY-NOTICES.txt +7 -0
- package/dist/{chunk-IPZJXELQ.js → chunk-KRSFEITH.js} +3594 -469
- package/dist/{chunk-4P34CLTO.js → chunk-OEEC5P3E.js} +1323 -252
- package/dist/{chunk-NEM3HEZW.js → chunk-TPLD2L6B.js} +141 -13
- package/dist/client.d.ts +192 -52
- package/dist/client.js +11 -4
- package/dist/index.d.ts +3 -77
- package/dist/index.js +26 -5
- package/dist/{internal-DzEGXm14.d.ts → internal-CJEu9yUF.d.ts} +131 -24
- package/dist/server.d.ts +255 -50
- package/dist/server.js +18 -2
- package/package.json +10 -8
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-
|
|
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-
|
|
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.
|
|
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 \"
|
|
58
|
-
"build:deps": "
|
|
59
|
-
"build": "
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
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:*",
|