-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathpackage.json
More file actions
142 lines (142 loc) · 5.2 KB
/
package.json
File metadata and controls
142 lines (142 loc) · 5.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"name": "@0glabs/0g-serving-broker",
"version": "0.7.4",
"description": "TS SDK for 0G Compute Network",
"main": "./lib.commonjs/index.js",
"bin": {
"0g-compute-cli": "cli.commonjs/cli/index.js"
},
"files": [
"types",
"lib.commonjs",
"lib.esm",
"cli.commonjs",
"web-ui/out/**/*",
"binary/0g-storage-client",
"binary/dcap-qvl-web_bg.wasm"
],
"exports": {
"types": "./types/index.d.ts",
"require": "./lib.commonjs/index.js",
"import": "./lib.esm/index.mjs"
},
"module": "./lib.esm/index.mjs",
"types": "./lib.esm/index.d.ts",
"engines": {
"node": ">=20.0.0"
},
"browser": {
"crypto": "crypto-browserify",
"stream": "stream-browserify",
"fs": false,
"path": false,
"os": false
},
"scripts": {
"format": "prettier --write \"src.ts/**/*.ts\"",
"lint": "eslint \"src.ts/**/*.ts\"",
"clean": "rm -rf dist lib.esm lib.commonjs types cli.commonjs",
"build:sdk": "tsc -b tsconfig.commonjs.json tsconfig.types.json tsconfig.cli.json && npx rollup -c rollup.config.mjs",
"build": "rm -rf dist lib.esm lib.commonjs types cli.commonjs && npm run build:sdk",
"build:with-ui": "npm run build:sdk && cd web-ui && pnpm install && pnpm build",
"gen-contract-type": "typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/inference/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/inference/InferenceServing.sol/InferenceServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/fine-tuning/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/fine-tuning/FineTuningServing.sol/FineTuningServing.json' && typechain --target ethers-v6 --node16-modules --out-dir src.ts/sdk/ledger/contract/typechain '../0g-serving-broker/api/libs/0g-serving-contract/artifacts/contracts/ledger/LedgerManager.sol/LedgerManager.json' && npm run format",
"gen-doc": "npx typedoc --tsconfig tsconfig.esm.json",
"test": "mocha 'lib.commonjs/**/*.test.js'",
"test:cli": "mocha 'cli.commonjs/cli/__tests__/*.test.js' --timeout 60000",
"test:all": "npm run test && npm run test:cli",
"prepare": "npm run build",
"prepublishOnly": "npm run build:with-ui"
},
"keywords": [],
"author": "0G Labs",
"license": "ISC",
"devDependencies": {
"@eslint/js": "^9.30.1",
"@rollup/plugin-commonjs": "^28.0.1",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-typescript": "^12.1.1",
"@typechain/ethers-v6": "^0.5.0",
"@types/adm-zip": "^0.5.7",
"@types/brotli": "^1.3.4",
"@types/chai": "^4.3.7",
"@types/circomlibjs": "^0.1.6",
"@types/crypto-js": "^4.2.2",
"@types/express": "^5.0.2",
"@types/mocha": "^10.0.1",
"@types/node": "^20.5.9",
"@types/prompts": "^2.4.9",
"@types/sinon": "^17.0.4",
"@types/update-notifier": "^6.0.8",
"chai": "^4.3.7",
"eslint": "^9.30.1",
"globals": "^16.3.0",
"js-sha3": "^0.9.1",
"mocha": "^10.2.0",
"openai": "^4.78.1",
"rollup": "^3.30.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-polyfill-node": "^0.13.0",
"sinon": "^19.0.2",
"ts-node": "^10.9.1",
"typechain": "^8.3.1",
"typedoc": "^0.26.10",
"typescript": "^5.6.2",
"typescript-eslint": "^8.36.0",
"uglify-js": "^3.17.4"
},
"dependencies": {
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/keccak256": "^5.7.0",
"adm-zip": "^0.5.16",
"axios": "^1.7.9",
"brotli": "^1.3.3",
"buffer": "^6.0.3",
"chalk": "^4.1.2",
"circomlibjs": "^0.1.6",
"cli-table3": "^0.6.5",
"commander": "^13.0.0",
"crypto-browserify": "^3.12.1",
"crypto-js": "^4.2.0",
"dotenv": "16.4.7",
"eciesjs": "^0.4.13",
"express": "5.1.0",
"form-data": "^4.0.1",
"prompts": "^2.4.2",
"stream-browserify": "^3.0.0",
"tslib": "^2.6.2",
"update-notifier": "^7.3.1",
"util": "^0.12.5"
},
"peerDependencies": {
"@types/circomlibjs": "^0.1.6",
"@types/crypto-js": "^4.2.2",
"circomlibjs": "^0.1.6",
"crypto-js": "^4.2.0",
"ethers": "^6.13.1"
},
"directories": {
"doc": "docs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/0glabs/0g-serving-user-broker.git"
},
"bugs": {
"url": "https://github.com/0glabs/0g-serving-user-broker/issues"
},
"homepage": "https://github.com/0glabs/0g-serving-user-broker#readme",
"pnpm": {
"overrides": {
"minimatch@3": "3.1.4",
"minimatch@5": "5.1.8",
"minimatch@9": "9.0.7",
"serialize-javascript": "7.0.3",
"bn.js@4": "4.12.3",
"bn.js@5": "5.2.3",
"ajv@6": "6.14.0",
"qs@6": "6.14.2",
"diff@7": "8.0.3"
}
}
}