@proto-kit/module 0.1.1-develop.335 → 0.1.1-develop.339
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/Runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAc,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EAEd,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACb,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/Runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,mBAAmB,EAAc,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EAEd,gBAAgB,EAChB,sBAAsB,EACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACb,MAAM,qBAAqB,CAAC;AAS7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAC9C,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CACnC,CAAC;A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MAAM,GACf,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,GAAG,SAAS;IAwBhD;;;;;;OAMG;IACI,cAAc,CACnB,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,EAChC,eAAe,EAAE,YAAY,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAQ9D;;OAEG;IACH,IAAW,kBAAkB,aAE5B;CACF"}
|
package/dist/runtime/Runtime.js
CHANGED
|
@@ -15,6 +15,7 @@ import { injectable } from "tsyringe";
|
|
|
15
15
|
import { ModuleContainer, ZkProgrammable, } from "@proto-kit/common";
|
|
16
16
|
import { MethodPublicOutput, } from "@proto-kit/protocol";
|
|
17
17
|
import { combineMethodName, isRuntimeMethod, toWrappedMethod, } from "../method/runtimeMethod";
|
|
18
|
+
import { MethodIdFactory } from "../factories/MethodIdFactory";
|
|
18
19
|
const errors = {
|
|
19
20
|
methodNotFound: (methodKey) => new Error(`Unable to find method with id ${methodKey}`),
|
|
20
21
|
};
|
|
@@ -116,6 +117,7 @@ let Runtime = Runtime_1 = class Runtime extends ModuleContainer {
|
|
|
116
117
|
// TODO Remove after changing DFs to type-based approach
|
|
117
118
|
create(childContainerProvider) {
|
|
118
119
|
super.create(childContainerProvider);
|
|
120
|
+
this.registerDependencyFactories([MethodIdFactory]);
|
|
119
121
|
}
|
|
120
122
|
get appChain() {
|
|
121
123
|
return this.container.resolve("AreProofsEnabled");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@proto-kit/module",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.1-develop.
|
|
5
|
+
"version": "0.1.1-develop.339+f49c8b8",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -p tsconfig.json",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"o1js": "0.13.1",
|
|
32
32
|
"tsyringe": "^4.7.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "f49c8b84c8c0b0d9dfbc5570e0fa2fb0f8590c75"
|
|
35
35
|
}
|
package/src/runtime/Runtime.ts
CHANGED
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
toWrappedMethod,
|
|
27
27
|
WrappedMethod,
|
|
28
28
|
} from "../method/runtimeMethod";
|
|
29
|
-
import { MethodIdFactory } from "../factories/MethodIdFactory";
|
|
30
29
|
|
|
31
30
|
import { RuntimeModule } from "./RuntimeModule";
|
|
32
31
|
import { MethodIdResolver } from "./MethodIdResolver";
|
|
33
32
|
import { RuntimeEnvironment } from "./RuntimeEnvironment";
|
|
33
|
+
import { MethodIdFactory } from "../factories/MethodIdFactory";
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Record of modules accepted by the Runtime module container.
|
|
@@ -222,6 +222,8 @@ export class Runtime<Modules extends RuntimeModulesRecord>
|
|
|
222
222
|
// TODO Remove after changing DFs to type-based approach
|
|
223
223
|
public create(childContainerProvider: ChildContainerProvider) {
|
|
224
224
|
super.create(childContainerProvider);
|
|
225
|
+
|
|
226
|
+
this.registerDependencyFactories([MethodIdFactory])
|
|
225
227
|
}
|
|
226
228
|
|
|
227
229
|
public get appChain(): AreProofsEnabled | undefined {
|