@atumlabs/payment-gateway-client 1.0.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/LICENSE.md +83 -0
- package/README.md +247 -0
- package/dist/cli/payment-status.d.ts +1 -0
- package/dist/cli/payment-status.js +3125 -0
- package/dist/cli/quote-status.d.ts +1 -0
- package/dist/cli/quote-status.js +3125 -0
- package/dist/cli/request-quote.d.ts +1 -0
- package/dist/cli/request-quote.js +3177 -0
- package/dist/cli/send-payment.d.ts +1 -0
- package/dist/cli/send-payment.js +5472 -0
- package/dist/index.d.ts +3645 -0
- package/dist/index.js +7031 -0
- package/package.json +80 -0
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atumlabs/payment-gateway-client",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "TypeScript client for Atum Payment Gateway API",
|
|
5
|
+
"author": "Atum Labs, Inc.",
|
|
6
|
+
"homepage": "https://github.com/Atum-Labs/protocol/tree/main/payment-gateway-client#readme",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Atum-Labs/protocol.git",
|
|
10
|
+
"directory": "payment-gateway-client"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Atum-Labs/protocol/issues"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"atum",
|
|
17
|
+
"payment-gateway",
|
|
18
|
+
"cross-chain",
|
|
19
|
+
"stablecoin",
|
|
20
|
+
"usdc",
|
|
21
|
+
"permit2",
|
|
22
|
+
"caip-19",
|
|
23
|
+
"evm",
|
|
24
|
+
"solana",
|
|
25
|
+
"tron",
|
|
26
|
+
"client",
|
|
27
|
+
"sdk"
|
|
28
|
+
],
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
},
|
|
32
|
+
"main": "dist/index.js",
|
|
33
|
+
"types": "dist/index.d.ts",
|
|
34
|
+
"bin": {
|
|
35
|
+
"send-payment": "./dist/cli/send-payment.js",
|
|
36
|
+
"request-quote": "./dist/cli/request-quote.js",
|
|
37
|
+
"quote-status": "./dist/cli/quote-status.js",
|
|
38
|
+
"payment-status": "./dist/cli/payment-status.js"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"generate": "openapi-ts --input ../schemas/apis/payment-gateway/v1/openapi.yaml --output ./src/generated --client axios --name PaymentGatewayClient --useOptions",
|
|
42
|
+
"prebuild:deps": "node -e \"if(!require('fs').existsSync('../key-management/common/typescript/tsconfig.json')){console.error('protocol key-management packages not found at ../key-management. Is this checked out inside the protocol monorepo?');process.exit(1)}\"",
|
|
43
|
+
"build:deps": "tsc -p ../key-management/common/typescript/tsconfig.json && tsc -p ../key-management/providers/turnkey/typescript/tsconfig.json && tsc -p ../contracts/svm/escrow-encoding/typescript/tsconfig.json && tsc -p ../contracts/evm/escrow-encoding/typescript/tsconfig.json && tsc -p ../contracts/tvm/escrow-encoding/typescript/tsconfig.json",
|
|
44
|
+
"build": "pnpm run build:deps && tsup && chmod +x dist/cli/*.js",
|
|
45
|
+
"pretest": "pnpm run build:deps",
|
|
46
|
+
"test": "jest",
|
|
47
|
+
"clean": "rm -rf dist ../key-management/common/typescript/dist ../key-management/providers/turnkey/typescript/dist ../contracts/svm/escrow-encoding/typescript/dist ../contracts/evm/escrow-encoding/typescript/dist ../contracts/tvm/escrow-encoding/typescript/dist",
|
|
48
|
+
"check:publishable": "node scripts/check-publishable.mjs",
|
|
49
|
+
"prepare": "pnpm run build",
|
|
50
|
+
"prepublishOnly": "pnpm run build && pnpm run check:publishable"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@solana/web3.js": "^1.91.0",
|
|
54
|
+
"axios": "1.13.2",
|
|
55
|
+
"bs58": "^6.0.0",
|
|
56
|
+
"commander": "^12.0.0",
|
|
57
|
+
"ethers": "^6.11.0",
|
|
58
|
+
"tweetnacl": "^1.0.3",
|
|
59
|
+
"zod": "^3.25.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@atum-labs/evm-escrow-encoding": "workspace:*",
|
|
63
|
+
"@atum-labs/km-core": "workspace:*",
|
|
64
|
+
"@atum-labs/solana-escrow-encoding": "workspace:*",
|
|
65
|
+
"@atum-labs/turnkey-signer": "workspace:*",
|
|
66
|
+
"@atum-labs/tvm-escrow-encoding": "workspace:*",
|
|
67
|
+
"@hey-api/openapi-ts": "^0.45.1",
|
|
68
|
+
"@types/jest": "^29.5.5",
|
|
69
|
+
"@types/node": "^20.0.0",
|
|
70
|
+
"jest": "^29.7.0",
|
|
71
|
+
"ts-jest": "^29.1.1",
|
|
72
|
+
"tsup": "^8.5.1",
|
|
73
|
+
"typescript": "^5.0.0",
|
|
74
|
+
"uuid": "^9.0.0"
|
|
75
|
+
},
|
|
76
|
+
"files": [
|
|
77
|
+
"dist/**/*"
|
|
78
|
+
],
|
|
79
|
+
"license": "MIT"
|
|
80
|
+
}
|