@ghostspeak/sdk 1.6.3 → 1.7.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/README.md +492 -98
- package/dist/.tsbuildinfo +1 -1
- package/dist/index.d.ts +11778 -4720
- package/dist/index.js +52440 -10373
- package/dist/index.js.map +1 -1
- package/package.json +42 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ghostspeak/sdk",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "TypeScript SDK for GhostSpeak AI Agent Commerce Protocol",
|
|
3
|
+
"version": "1.7.0",
|
|
4
|
+
"description": "TypeScript SDK for GhostSpeak AI Agent Commerce Protocol - Production Ready Beta",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.js",
|
|
@@ -16,7 +16,9 @@
|
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "tsup",
|
|
19
|
+
"build": "bun run build:wasm && tsup",
|
|
20
|
+
"build:wasm": "bun run wasm:build",
|
|
21
|
+
"build:dev": "tsup --watch",
|
|
20
22
|
"dev": "tsup --watch",
|
|
21
23
|
"type-check": "tsc --noEmit",
|
|
22
24
|
"test": "vitest",
|
|
@@ -24,15 +26,37 @@
|
|
|
24
26
|
"test:unit": "vitest run tests/unit",
|
|
25
27
|
"test:integration": "vitest run tests/integration",
|
|
26
28
|
"test:e2e": "vitest run tests/e2e",
|
|
29
|
+
"test:benchmarks": "vitest run tests/benchmarks",
|
|
27
30
|
"test:watch": "vitest watch",
|
|
28
|
-
"test:coverage": "vitest run --coverage",
|
|
31
|
+
"test:coverage": "COVERAGE=true vitest run --coverage",
|
|
32
|
+
"test:coverage:quick": "COVERAGE=true QUICK_TEST=true vitest run --coverage",
|
|
29
33
|
"test:ui": "vitest --ui",
|
|
34
|
+
"test:quick": "QUICK_TEST=true vitest run",
|
|
35
|
+
"test:quick:watch": "QUICK_TEST=true vitest watch",
|
|
36
|
+
"test:full": "FULL_TEST_RUN=1 vitest run --reporter=verbose",
|
|
37
|
+
"test:full:coverage": "FULL_TEST_RUN=1 COVERAGE=true vitest run --coverage",
|
|
38
|
+
"test:shard": "vitest run --shard",
|
|
39
|
+
"test:crypto": "vitest run tests/**/crypto/**/*.test.ts tests/**/elgamal-complete.test.ts tests/**/bulletproofs.test.ts",
|
|
40
|
+
"test:utils": "vitest run tests/unit/utils --exclude='**/wasm-crypto-bridge.test.ts'",
|
|
41
|
+
"test:smart": "bun scripts/test-runner.ts",
|
|
42
|
+
"test:smart:quick": "bun scripts/test-runner.ts --quick",
|
|
43
|
+
"test:smart:all": "bun scripts/test-runner.ts --all",
|
|
44
|
+
"test:smart:coverage": "bun scripts/test-runner.ts --coverage",
|
|
45
|
+
"test:real": "RUN_REAL_TESTS=1 vitest run tests/integration/*-real-integration.test.ts",
|
|
46
|
+
"test:real:token": "RUN_REAL_TESTS=1 vitest run tests/integration/token-2022-real-integration.test.ts",
|
|
47
|
+
"test:real:confidential": "RUN_REAL_TESTS=1 vitest run tests/integration/confidential-transfer-real-integration.test.ts",
|
|
48
|
+
"benchmark": "bun run test:benchmarks",
|
|
49
|
+
"benchmark:crypto": "vitest run tests/benchmarks/crypto-performance.test.ts",
|
|
50
|
+
"wasm:build": "cd src/wasm/crypto-wasm && wasm-pack build --target web --out-dir ../../../dist/wasm --scope ghostspeak",
|
|
51
|
+
"wasm:build:dev": "cd src/wasm/crypto-wasm && wasm-pack build --dev --target web --out-dir ../../../dist/wasm --scope ghostspeak",
|
|
52
|
+
"wasm:clean": "rm -rf dist/wasm src/wasm/crypto-wasm/pkg",
|
|
53
|
+
"wasm:install": "cargo install wasm-pack",
|
|
30
54
|
"lint": "eslint src --no-error-on-unmatched-pattern --ignore-pattern 'src/generated/**' && eslint src/generated --no-error-on-unmatched-pattern --config .eslintrc.generated.js",
|
|
31
55
|
"lint:fix": "eslint src --fix --ignore-pattern 'src/generated/**' && eslint src/generated --fix --config .eslintrc.generated.js",
|
|
32
56
|
"generate": "tsx scripts/generate.ts && tsx scripts/post-process-lint.ts && tsx scripts/fix-circular-deps.ts",
|
|
33
|
-
"clean": "rm -rf dist coverage",
|
|
57
|
+
"clean": "rm -rf dist coverage && bun run wasm:clean",
|
|
34
58
|
"fix-imports": "tsx scripts/fix-imports.ts",
|
|
35
|
-
"fix-errors": "tsx scripts/fix-errors.ts",
|
|
59
|
+
"fix-coded-errors": "tsx scripts/fix-coded-errors.ts",
|
|
36
60
|
"fix-instruction-types": "tsx scripts/fix-instruction-types.ts",
|
|
37
61
|
"fix-generated-types": "tsx scripts/fix-generated-types.ts",
|
|
38
62
|
"fix-all-types": "tsx scripts/fix-all-types.ts",
|
|
@@ -44,7 +68,13 @@
|
|
|
44
68
|
"ai-agents",
|
|
45
69
|
"defi",
|
|
46
70
|
"typescript",
|
|
47
|
-
"web3"
|
|
71
|
+
"web3",
|
|
72
|
+
"protocol",
|
|
73
|
+
"commerce",
|
|
74
|
+
"autonomous-agents",
|
|
75
|
+
"marketplace",
|
|
76
|
+
"escrow",
|
|
77
|
+
"devnet-ready"
|
|
48
78
|
],
|
|
49
79
|
"author": "GhostSpeak Protocol",
|
|
50
80
|
"license": "MIT",
|
|
@@ -61,6 +91,10 @@
|
|
|
61
91
|
"access": "public"
|
|
62
92
|
},
|
|
63
93
|
"dependencies": {
|
|
94
|
+
"@noble/curves": "^1.9.4",
|
|
95
|
+
"@noble/hashes": "^1.8.0",
|
|
96
|
+
"@solana-program/system": "^0.7.0",
|
|
97
|
+
"@solana-program/token-2022": "^0.4.2",
|
|
64
98
|
"@solana/accounts": "^2.3.0",
|
|
65
99
|
"@solana/addresses": "^2.3.0",
|
|
66
100
|
"@solana/codecs-core": "^2.3.0",
|
|
@@ -77,6 +111,7 @@
|
|
|
77
111
|
"@solana/rpc-transport": "^2.0.0-experimental.9741939",
|
|
78
112
|
"@solana/rpc-types": "^2.3.0",
|
|
79
113
|
"@solana/signers": "^2.3.0",
|
|
114
|
+
"@solana/spl-token": "^0.4.13",
|
|
80
115
|
"@solana/sysvars": "^2.3.0",
|
|
81
116
|
"@solana/transactions": "^2.3.0",
|
|
82
117
|
"bs58": "^6.0.0"
|