@proto-kit/module 0.1.1-develop.211 → 0.1.1-develop.240
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/index.d.ts +0 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -5
- package/dist/method/runtimeMethod.d.ts.map +1 -1
- package/dist/method/runtimeMethod.js +1 -2
- package/dist/module/src/runtime/RuntimeModule.d.ts +0 -1
- package/dist/module/src/runtime/RuntimeModule.d.ts.map +1 -1
- package/dist/runtime/Runtime.d.ts +6 -5
- package/dist/runtime/Runtime.d.ts.map +1 -1
- package/dist/runtime/Runtime.js +5 -7
- package/dist/runtime/RuntimeModule.d.ts +1 -3
- package/dist/runtime/RuntimeModule.d.ts.map +1 -1
- package/dist/runtime/RuntimeModule.js +1 -1
- package/dist/state/InMemoryStateService.d.ts +1 -4
- package/dist/state/InMemoryStateService.d.ts.map +1 -1
- package/dist/state/decorator.d.ts.map +1 -1
- package/dist/state/decorator.js +1 -1
- package/package.json +4 -4
- package/src/index.ts +0 -2
- package/src/runtime/RuntimeModule.ts +0 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
export * from "./method/RuntimeMethodExecutionContext";
|
|
2
|
-
export * from "./method/assert";
|
|
3
1
|
export * from "./method/runtimeMethod";
|
|
4
2
|
export * from "./module/decorator";
|
|
5
3
|
export * from "./runtime/RuntimeModule";
|
|
6
4
|
export * from "./runtime/Runtime";
|
|
7
5
|
export * from "./state/InMemoryStateService";
|
|
8
|
-
export * from "./state/State";
|
|
9
|
-
export * from "./state/StateMap";
|
|
10
|
-
export * from "./state/StateServiceProvider";
|
|
11
6
|
export * from "./state/decorator";
|
|
12
7
|
export * from "./method/MethodParameterDecoder";
|
|
13
8
|
export * from "./runtime/MethodIdResolver";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
export * from "./method/RuntimeMethodExecutionContext";
|
|
2
|
-
export * from "./method/assert";
|
|
3
1
|
export * from "./method/runtimeMethod";
|
|
4
2
|
export * from "./module/decorator";
|
|
5
3
|
export * from "./runtime/RuntimeModule";
|
|
6
4
|
export * from "./runtime/Runtime";
|
|
7
5
|
export * from "./state/InMemoryStateService";
|
|
8
|
-
export * from "./state/State";
|
|
9
|
-
export * from "./state/StateMap";
|
|
10
|
-
export * from "./state/StateServiceProvider";
|
|
11
6
|
export * from "./state/decorator";
|
|
12
7
|
export * from "./method/MethodParameterDecoder";
|
|
13
8
|
export * from "./runtime/MethodIdResolver";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtimeMethod.d.ts","sourceRoot":"","sources":["../../src/method/runtimeMethod.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EAGf,kBAAkB,
|
|
1
|
+
{"version":3,"file":"runtimeMethod.d.ts","sourceRoot":"","sources":["../../src/method/runtimeMethod.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EAGf,kBAAkB,EAEnB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAYjE,wBAAgB,sBAAsB,CAEpC,gBAAgB,EAAE,eAAe,CAAC,GAAG,CAAC,EAAE,mDAczC;AAGD,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,kBAAkB,CAAC;AAEvE,wBAAgB,eAAe,CAC7B,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,EAC5B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,iBAoC9C;AAED,wBAAgB,iBAAiB,CAC/B,iBAAiB,EAAE,MAAM,EACzB,UAAU,EAAE,MAAM,UAGnB;AAED,eAAO,MAAM,wBAAwB,eAAe,CAAC;AACrD,eAAO,MAAM,6BAA6B,8BAA8B,CAAC;AAEzE;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,aAAa,CAAC,OAAO,CAAC,EAC9B,WAAW,EAAE,MAAM,WAKpB;AAED,wBAAgB,aAAa,aAEjB,cAAc,OAAO,CAAC,cAClB,MAAM,cACN,kBAAkB,UAuFjC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { container } from "tsyringe";
|
|
2
|
-
import { DefaultProvableHashList, ProvableStateTransition, MethodPublicOutput, } from "@proto-kit/protocol";
|
|
2
|
+
import { DefaultProvableHashList, ProvableStateTransition, MethodPublicOutput, RuntimeMethodExecutionContext } from "@proto-kit/protocol";
|
|
3
3
|
import { toProver } from "@proto-kit/common";
|
|
4
|
-
import { RuntimeMethodExecutionContext } from "./RuntimeMethodExecutionContext.js";
|
|
5
4
|
const errors = {
|
|
6
5
|
runtimeNotProvided: (name) => new Error(`Runtime was not provided for module: ${name}`),
|
|
7
6
|
methodInputsNotProvided: () => new Error("Method execution inputs not provided, provide them via context.inputs"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeModule.d.ts","sourceRoot":"","sources":["../../../../src/runtime/RuntimeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EACL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AM,CAAE,SAAQ,kBAAkB,CAAC,MAAM,CAAC;IACnE,OAAc,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAM;IAE7C;;OAEG;IACH,SAAgB,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAElD;;;;OAIG;IACI,eAAe,UAAQ;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;;IAY/C,OAAO,CAAC,SAAS;IAWjB,IAAW,WAAW,IAAI,kBAAkB,CAE3C;IAED,IAAW,OAAO,IAAI,YAAY,CAEjC;CACF"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Experimental } from "snarkyjs";
|
|
2
2
|
import { DependencyContainer } from "tsyringe";
|
|
3
3
|
import { StringKeyOf, ModuleContainer, ModulesConfig, ModulesRecord, TypedClass, ZkProgrammable, PlainZkProgram, WithZkProgrammable, AreProofsEnabled } from "@proto-kit/common";
|
|
4
|
-
import { MethodPublicOutput } from "@proto-kit/protocol";
|
|
5
|
-
import {
|
|
6
|
-
import { StateServiceProvider } from "../state/StateServiceProvider";
|
|
7
|
-
import { RuntimeModule } from "./RuntimeModule.js";
|
|
4
|
+
import { MethodPublicOutput, StateServiceProvider, StateService } from "@proto-kit/protocol";
|
|
5
|
+
import { RuntimeModule } from "./RuntimeModule";
|
|
8
6
|
/**
|
|
9
7
|
* Record of modules accepted by the Runtime module container.
|
|
10
8
|
*
|
|
@@ -16,7 +14,10 @@ export type RuntimeModulesRecord = ModulesRecord<TypedClass<RuntimeModule<unknow
|
|
|
16
14
|
* Definition / required arguments for the Runtime class
|
|
17
15
|
*/
|
|
18
16
|
export interface RuntimeDefinition<Modules extends RuntimeModulesRecord> {
|
|
19
|
-
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated
|
|
19
|
+
*/
|
|
20
|
+
state?: StateService;
|
|
20
21
|
modules: Modules;
|
|
21
22
|
config?: ModulesConfig<Modules>;
|
|
22
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/Runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAc,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,
|
|
1
|
+
{"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../src/runtime/Runtime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAc,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,eAAe,EACf,aAAa,EACb,aAAa,EACb,UAAU,EACV,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACb,MAAM,qBAAqB,CAAC;AAU7B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD;;;;;GAKG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,CAC9C,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CACnC,CAAC;AAOF;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,OAAO,SAAS,oBAAoB;IACrE;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CACjC;AAED,qBAAa,qBAAqB,CAChC,OAAO,SAAS,oBAAoB,CACpC,SAAQ,cAAc,CAAC,SAAS,EAA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AE5B;CACF"}
|
package/dist/runtime/Runtime.js
CHANGED
|
@@ -13,9 +13,8 @@ var Runtime_1;
|
|
|
13
13
|
import { Experimental } from "snarkyjs";
|
|
14
14
|
import { injectable } from "tsyringe";
|
|
15
15
|
import { ModuleContainer, ZkProgrammable, } from "@proto-kit/common";
|
|
16
|
-
import { MethodPublicOutput } from "@proto-kit/protocol";
|
|
17
|
-
import { combineMethodName, isRuntimeMethod, toWrappedMethod, } from "../method/runtimeMethod
|
|
18
|
-
import { StateServiceProvider } from "../state/StateServiceProvider";
|
|
16
|
+
import { MethodPublicOutput, StateServiceProvider, } from "@proto-kit/protocol";
|
|
17
|
+
import { combineMethodName, isRuntimeMethod, toWrappedMethod, } from "../method/runtimeMethod";
|
|
19
18
|
import { MethodIdFactory } from "../factories/MethodIdFactory";
|
|
20
19
|
const errors = {
|
|
21
20
|
methodNotFound: (methodKey) => new Error(`Unable to find method with id ${methodKey}`),
|
|
@@ -107,12 +106,11 @@ let Runtime = Runtime_1 = class Runtime extends ModuleContainer {
|
|
|
107
106
|
*/
|
|
108
107
|
constructor(definition) {
|
|
109
108
|
super(definition);
|
|
110
|
-
|
|
111
|
-
//
|
|
112
|
-
this.
|
|
109
|
+
this.stateServiceProviderInstance = new StateServiceProvider(
|
|
110
|
+
// eslint-disable-next-line etc/no-deprecated
|
|
111
|
+
this.definition.state);
|
|
113
112
|
this.definition = definition;
|
|
114
113
|
this.zkProgrammable = new RuntimeZkProgrammable(this);
|
|
115
|
-
// this.registerDependencyFactories([MethodIdFactory]);
|
|
116
114
|
}
|
|
117
115
|
// eslint-disable-next-line no-warning-comments
|
|
118
116
|
// TODO Remove after changing DFs to type-based approach
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ConfigurableModule, Presets } from "@proto-kit/common";
|
|
2
|
-
import { NetworkState, RuntimeTransaction } from "@proto-kit/protocol";
|
|
3
|
-
import { StateService } from "../state/InMemoryStateService";
|
|
2
|
+
import { NetworkState, RuntimeTransaction, StateService } from "@proto-kit/protocol";
|
|
4
3
|
import type { Runtime, RuntimeDefinition, RuntimeModulesRecord } from "./Runtime";
|
|
5
4
|
/**
|
|
6
5
|
* This type exists to carry over certain runtime properties
|
|
@@ -26,7 +25,6 @@ export declare class RuntimeModule<Config> extends ConfigurableModule<Config> {
|
|
|
26
25
|
*/
|
|
27
26
|
isRuntimeModule: boolean;
|
|
28
27
|
name?: string;
|
|
29
|
-
test?: number;
|
|
30
28
|
runtime?: Runtime<RuntimeModulesRecord>;
|
|
31
29
|
constructor();
|
|
32
30
|
private getInputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RuntimeModule.d.ts","sourceRoot":"","sources":["../../src/runtime/RuntimeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,
|
|
1
|
+
{"version":3,"file":"RuntimeModule.d.ts","sourceRoot":"","sources":["../../src/runtime/RuntimeModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,YAAY,EAGb,MAAM,qBAAqB,CAAC;AAI7B,OAAO,KAAK,EACV,OAAO,EACP,iBAAiB,EACjB,oBAAoB,EACrB,MAAM,WAAW,CAAC;AAMnB;;;GAGG;AACH,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;IAC7D,UAAU,EAAE,IAAI,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,CAAC;IAEnE,IAAI,YAAY,IAAI,YAAY,CAAC;CAClC;AAED;;GAEG;AACH,qBACa,aAAa,CAAC,MAAM,CAAE,SAAQ,kBAAkB,CAAC,MAAM,CAAC;IACnE,OAAc,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAM;IAE7C;;OAEG;IACH,SAAgB,kBAAkB,EAAE,MAAM,EAAE,CAAM;IAElD;;;;OAIG;IACI,eAAe,UAAQ;IAEvB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC;;IAY/C,OAAO,CAAC,SAAS;IAWjB,IAAW,WAAW,IAAI,kBAAkB,CAE3C;IAED,IAAW,OAAO,IAAI,YAAY,CAEjC;CACF"}
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { ConfigurableModule } from "@proto-kit/common";
|
|
11
11
|
import { container, injectable } from "tsyringe";
|
|
12
|
-
import { RuntimeMethodExecutionContext, } from "
|
|
12
|
+
import { RuntimeMethodExecutionContext, } from "@proto-kit/protocol";
|
|
13
13
|
import { runtimeMethodNamesMetadataKey } from "../method/runtimeMethod";
|
|
14
14
|
const errors = {
|
|
15
15
|
inputDataNotSet: () => new Error("Input data for runtime execution not set"),
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Field } from "snarkyjs";
|
|
2
|
-
|
|
3
|
-
get: (key: Field) => Field[] | undefined;
|
|
4
|
-
set: (key: Field, value: Field[] | undefined) => void;
|
|
5
|
-
}
|
|
2
|
+
import { StateService } from "@proto-kit/protocol";
|
|
6
3
|
/**
|
|
7
4
|
* Naive implementation of a StateService for testing purposes
|
|
8
5
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InMemoryStateService.d.ts","sourceRoot":"","sources":["../../src/state/InMemoryStateService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"InMemoryStateService.d.ts","sourceRoot":"","sources":["../../src/state/InMemoryStateService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD;;GAEG;AACH,qBAAa,oBAAqB,YAAW,YAAY;IAChD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,CAAM;IAEjD,GAAG,CAAC,GAAG,EAAE,KAAK,GAAG,KAAK,EAAE,GAAG,SAAS;IAIpC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,SAAS;CAWlD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/state/decorator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../src/state/decorator.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAgBjE;;;GAGG;AACH,wBAAgB,KAAK,mGAGJ,MAAM,UAqCtB"}
|
package/dist/state/decorator.js
CHANGED
|
@@ -30,7 +30,7 @@ export function state() {
|
|
|
30
30
|
value.path = path;
|
|
31
31
|
// eslint-disable-next-line no-warning-comments
|
|
32
32
|
// TODO: why is this complaining about `any`?
|
|
33
|
-
value.
|
|
33
|
+
value.stateServiceProvider = self.runtime.stateServiceProvider;
|
|
34
34
|
}
|
|
35
35
|
return value;
|
|
36
36
|
},
|
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.240+c14bb61",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -p tsconfig.json",
|
|
@@ -17,8 +17,6 @@
|
|
|
17
17
|
"access": "public"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@proto-kit/common": "*",
|
|
21
|
-
"@proto-kit/protocol": "*",
|
|
22
20
|
"lodash": "^4.17.21",
|
|
23
21
|
"loglevel": "^1.8.1",
|
|
24
22
|
"reflect-metadata": "^0.1.13"
|
|
@@ -28,8 +26,10 @@
|
|
|
28
26
|
"@types/lodash": "^4.14.194"
|
|
29
27
|
},
|
|
30
28
|
"peerDependencies": {
|
|
29
|
+
"@proto-kit/common": "*",
|
|
30
|
+
"@proto-kit/protocol": "*",
|
|
31
31
|
"snarkyjs": "0.12.0",
|
|
32
32
|
"tsyringe": "^4.7.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c14bb61579a67f7104eec116e09be06c7a4537cb"
|
|
35
35
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export * from "../../protocol/src/state/assert/assert";
|
|
2
1
|
export * from "./method/runtimeMethod";
|
|
3
2
|
export * from "./module/decorator";
|
|
4
3
|
export * from "./runtime/RuntimeModule";
|
|
5
4
|
export * from "./runtime/Runtime";
|
|
6
5
|
export * from "./state/InMemoryStateService";
|
|
7
|
-
export * from "@proto-kit/protocol/src/state/StateServiceProvider";
|
|
8
6
|
export * from "./state/decorator";
|
|
9
7
|
export * from "./method/MethodParameterDecoder";
|
|
10
8
|
export * from "./runtime/MethodIdResolver";
|