@ottochain/sdk 1.3.0 → 1.4.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/README.md +8 -7
- package/package.json +21 -17
package/README.md
CHANGED
|
@@ -247,25 +247,25 @@ import { ContractState, Contract } from '@ottochain/sdk/apps/contracts';
|
|
|
247
247
|
|
|
248
248
|
```bash
|
|
249
249
|
# Install dependencies
|
|
250
|
-
|
|
250
|
+
pnpm install
|
|
251
251
|
|
|
252
252
|
# Build
|
|
253
|
-
|
|
253
|
+
pnpm run build
|
|
254
254
|
|
|
255
255
|
# Run tests
|
|
256
|
-
|
|
256
|
+
pnpm test
|
|
257
257
|
|
|
258
258
|
# Run tests with coverage
|
|
259
|
-
|
|
259
|
+
pnpm run test:coverage
|
|
260
260
|
|
|
261
261
|
# Lint
|
|
262
|
-
|
|
262
|
+
pnpm run lint
|
|
263
263
|
|
|
264
264
|
# Generate documentation
|
|
265
|
-
|
|
265
|
+
pnpm run docs
|
|
266
266
|
|
|
267
267
|
# Generate protobuf types
|
|
268
|
-
|
|
268
|
+
pnpm run generate
|
|
269
269
|
```
|
|
270
270
|
|
|
271
271
|
## Project Structure
|
|
@@ -303,3 +303,4 @@ ottochain-sdk/
|
|
|
303
303
|
## License
|
|
304
304
|
|
|
305
305
|
Apache-2.0
|
|
306
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ottochain/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "TypeScript SDK for ottochain metagraph operations - signing, encoding, and network interactions",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -66,21 +66,6 @@
|
|
|
66
66
|
"dist",
|
|
67
67
|
"README.md"
|
|
68
68
|
],
|
|
69
|
-
"scripts": {
|
|
70
|
-
"build": "npm run build:cjs && npm run build:esm && npm run build:types && npm run build:fixup",
|
|
71
|
-
"build:fixup": "echo '{\"type\":\"module\"}' > dist/esm/package.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
72
|
-
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
73
|
-
"build:esm": "tsc -p tsconfig.esm.json",
|
|
74
|
-
"build:types": "tsc -p tsconfig.types.json",
|
|
75
|
-
"test": "jest",
|
|
76
|
-
"test:coverage": "jest --coverage",
|
|
77
|
-
"lint": "eslint src tests",
|
|
78
|
-
"format": "prettier --write src tests",
|
|
79
|
-
"generate": "buf generate",
|
|
80
|
-
"lint:proto": "buf lint",
|
|
81
|
-
"docs": "typedoc",
|
|
82
|
-
"docs:watch": "typedoc --watch"
|
|
83
|
-
},
|
|
84
69
|
"keywords": [
|
|
85
70
|
"ottochain",
|
|
86
71
|
"constellation",
|
|
@@ -114,6 +99,10 @@
|
|
|
114
99
|
},
|
|
115
100
|
"devDependencies": {
|
|
116
101
|
"@babel/preset-env": "^7.29.0",
|
|
102
|
+
"@commitlint/cli": "^20.4.4",
|
|
103
|
+
"@commitlint/config-conventional": "^19.0.0",
|
|
104
|
+
"@eslint/js": "^9.39.3",
|
|
105
|
+
"@jest/globals": "^30.3.0",
|
|
117
106
|
"@types/jest": "^30.0.0",
|
|
118
107
|
"@types/node": "^25.3.3",
|
|
119
108
|
"@typescript-eslint/eslint-plugin": "^8.56.1",
|
|
@@ -134,5 +123,20 @@
|
|
|
134
123
|
},
|
|
135
124
|
"publishConfig": {
|
|
136
125
|
"registry": "https://registry.npmjs.org"
|
|
126
|
+
},
|
|
127
|
+
"scripts": {
|
|
128
|
+
"build": "npm run build:cjs && npm run build:esm && npm run build:types && npm run build:fixup",
|
|
129
|
+
"build:fixup": "echo '{\"type\":\"module\"}' > dist/esm/package.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
|
|
130
|
+
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
131
|
+
"build:esm": "tsc -p tsconfig.esm.json",
|
|
132
|
+
"build:types": "tsc -p tsconfig.types.json",
|
|
133
|
+
"test": "jest",
|
|
134
|
+
"test:coverage": "jest --coverage",
|
|
135
|
+
"lint": "eslint src tests",
|
|
136
|
+
"format": "prettier --write src tests",
|
|
137
|
+
"generate": "buf generate",
|
|
138
|
+
"lint:proto": "buf lint",
|
|
139
|
+
"docs": "typedoc",
|
|
140
|
+
"docs:watch": "typedoc --watch"
|
|
137
141
|
}
|
|
138
|
-
}
|
|
142
|
+
}
|