@ottochain/sdk 2.5.0 → 2.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/dist/cjs/apps/lending/assets.js +11 -1
- package/dist/cjs/index.js +9 -2
- package/dist/cjs/ottochain/index.js +11 -1
- package/dist/cjs/ottochain/metagraph-client.js +47 -3
- package/dist/cjs/ottochain/morphism-lint.js +99 -0
- package/dist/cjs/ottochain/state-proof.js +118 -0
- package/dist/cjs/ottochain/transaction.js +7 -1
- package/dist/cjs/ottochain/webhook-notifications.js +33 -0
- package/dist/cjs/schema/effects.js +43 -6
- package/dist/cjs/schema/fiber-app.js +7 -2
- package/dist/cjs/schema/guard-lint.js +102 -0
- package/dist/esm/apps/lending/assets.js +11 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/ottochain/index.js +4 -0
- package/dist/esm/ottochain/metagraph-client.js +47 -3
- package/dist/esm/ottochain/morphism-lint.js +95 -0
- package/dist/esm/ottochain/state-proof.js +113 -0
- package/dist/esm/ottochain/transaction.js +7 -1
- package/dist/esm/ottochain/webhook-notifications.js +30 -0
- package/dist/esm/schema/effects.js +41 -5
- package/dist/esm/schema/fiber-app.js +7 -2
- package/dist/esm/schema/guard-lint.js +102 -0
- package/dist/types/apps/lending/assets.d.ts +11 -1
- package/dist/types/index.d.ts +5 -1
- package/dist/types/ottochain/index.d.ts +7 -1
- package/dist/types/ottochain/metagraph-client.d.ts +69 -15
- package/dist/types/ottochain/morphism-lint.d.ts +56 -0
- package/dist/types/ottochain/state-proof.d.ts +51 -0
- package/dist/types/ottochain/transaction.d.ts +7 -1
- package/dist/types/ottochain/types.d.ts +22 -0
- package/dist/types/ottochain/webhook-notifications.d.ts +91 -0
- package/dist/types/schema/effects.d.ts +39 -5
- package/dist/types/schema/guard-lint.d.ts +6 -0
- package/package.json +6 -6
|
@@ -32,6 +32,11 @@
|
|
|
32
32
|
*
|
|
33
33
|
* leading-dot — `{"var":".foo"}` resolves to null on chain.
|
|
34
34
|
*
|
|
35
|
+
* H1 — a `_spawn` whose child `owners` are not provably a SUBSET of the spawning
|
|
36
|
+
* parent's owners. The chain now fails-closed (aborts the transition) under
|
|
37
|
+
* every spawnOwnerPolicy when child owners ⊄ parent owners; this advisory
|
|
38
|
+
* flags the strong not-subset signals (hardcoded / `event.*`-derived owners).
|
|
39
|
+
*
|
|
35
40
|
* This is a STANDALONE validator. It is deliberately NOT wired into
|
|
36
41
|
* `defineFiberApp` / `toProtoDefinition`: doing so would break the build until
|
|
37
42
|
* every app is remediated. Run it via `scripts/lint-apps.mjs`.
|
|
@@ -58,6 +63,7 @@ export declare const LINT_CODES: {
|
|
|
58
63
|
readonly WITNESS_IN_TRANSITION: "witness-in-transition";
|
|
59
64
|
readonly DROPPED_DIRECTIVE: "dropped-directive";
|
|
60
65
|
readonly LEADING_DOT_VAR: "leading-dot-var";
|
|
66
|
+
readonly SPAWN_OWNERS: "spawn-owners";
|
|
61
67
|
};
|
|
62
68
|
/**
|
|
63
69
|
* The ONLY `$`-prefixed keys the engine injects (`ReservedKeys`). Anything else
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ottochain/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
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",
|
|
@@ -148,12 +148,12 @@
|
|
|
148
148
|
},
|
|
149
149
|
"devDependencies": {
|
|
150
150
|
"@babel/preset-env": "^7.29.7",
|
|
151
|
-
"@commitlint/cli": "^21.
|
|
152
|
-
"@commitlint/config-conventional": "^21.
|
|
151
|
+
"@commitlint/cli": "^21.2.0",
|
|
152
|
+
"@commitlint/config-conventional": "^21.2.0",
|
|
153
153
|
"@eslint/js": "^10.0.1",
|
|
154
154
|
"@jest/globals": "^30.3.0",
|
|
155
155
|
"@types/jest": "^30.0.0",
|
|
156
|
-
"@types/node": "^26.0
|
|
156
|
+
"@types/node": "^26.1.0",
|
|
157
157
|
"@typescript-eslint/eslint-plugin": "^8.62.0",
|
|
158
158
|
"@typescript-eslint/parser": "^8.62.0",
|
|
159
159
|
"eslint": "^10.6.0",
|
|
@@ -161,8 +161,8 @@
|
|
|
161
161
|
"openapi-typescript": "^7.13.0",
|
|
162
162
|
"prettier": "^3.9.1",
|
|
163
163
|
"ts-jest": "29.4.9",
|
|
164
|
-
"ts-proto": "^2.
|
|
165
|
-
"typedoc": "^0.28.
|
|
164
|
+
"ts-proto": "^2.12.0",
|
|
165
|
+
"typedoc": "^0.28.20",
|
|
166
166
|
"typescript": "^6.0.3"
|
|
167
167
|
},
|
|
168
168
|
"peerDependencies": {
|