@seljs/runtime 1.4.0-beta.27 → 1.4.0-beta.38
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/_virtual/_rolldown/runtime.cjs +1 -1
- package/dist/analysis/call-collector.cjs +0 -1
- package/dist/debug.cjs +1 -1
- package/dist/environment/contract-caller.cjs +1 -1
- package/dist/environment/contract-caller.mjs +1 -0
- package/dist/environment/environment.cjs +8 -4
- package/dist/environment/environment.d.cts +0 -1
- package/dist/environment/environment.d.mts +0 -1
- package/dist/environment/environment.mjs +8 -3
- package/dist/environment/error-wrapper.cjs +0 -1
- package/dist/environment/index.cjs +4 -2
- package/dist/environment/index.d.cts +4 -0
- package/dist/environment/index.d.mts +2 -1
- package/dist/environment/index.mjs +3 -3
- package/dist/environment/types.d.cts +0 -1
- package/dist/environment/types.d.mts +0 -1
- package/dist/errors/errors.cjs +4 -1
- package/dist/errors/errors.d.cts +0 -1
- package/dist/errors/errors.d.mts +0 -1
- package/dist/errors/index.cjs +17 -3
- package/dist/errors/index.d.cts +2 -0
- package/dist/errors/index.d.mts +2 -1
- package/dist/errors/index.mjs +2 -2
- package/dist/execution/decode-revert.cjs +0 -1
- package/dist/execution/index.d.cts +2 -0
- package/dist/execution/index.d.mts +2 -1
- package/dist/execution/multi-round-executor.cjs +2 -0
- package/dist/execution/multi-round-executor.mjs +2 -0
- package/dist/execution/multicall-batcher.cjs +1 -1
- package/dist/execution/multicall-batcher.mjs +1 -0
- package/dist/execution/multicall.cjs +0 -1
- package/dist/execution/round-executor.cjs +3 -1
- package/dist/execution/round-executor.mjs +3 -0
- package/dist/execution/types.d.cts +0 -1
- package/dist/execution/types.d.mts +0 -1
- package/dist/factory.d.cts +1 -1
- package/dist/factory.d.mts +1 -0
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +4 -1
- package/dist/index.d.mts +4 -1
- package/package.json +7 -8
|
@@ -15,7 +15,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
}
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
18
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
19
19
|
value: mod,
|
|
20
20
|
enumerable: true
|
|
21
21
|
}) : target, mod));
|
package/dist/debug.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
2
2
|
let debug = require("debug");
|
|
3
|
-
debug = require_runtime.__toESM(debug);
|
|
3
|
+
debug = require_runtime.__toESM(debug, 1);
|
|
4
4
|
//#region src/debug.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates a namespaced debug logger for a SEL module.
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_errors = require("../errors/errors.cjs");
|
|
3
2
|
require("../errors/index.cjs");
|
|
4
3
|
const require_replay_cache = require("./replay-cache.cjs");
|
|
@@ -21,6 +20,7 @@ const debug = require_debug.createLogger("contract-caller");
|
|
|
21
20
|
* Create one per `evaluate()` call and pass it through the handler closure.
|
|
22
21
|
*/
|
|
23
22
|
var CallCounter = class {
|
|
23
|
+
maxCalls;
|
|
24
24
|
count = 0;
|
|
25
25
|
constructor(maxCalls, initialCount = 0) {
|
|
26
26
|
this.maxCalls = maxCalls;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_builtin_contracts = require("./builtin-contracts.cjs");
|
|
3
2
|
const require_errors = require("../errors/errors.cjs");
|
|
4
3
|
require("../errors/index.cjs");
|
|
@@ -160,7 +159,10 @@ var SELRuntime = class {
|
|
|
160
159
|
}
|
|
161
160
|
planExecution(expression, evaluationContext) {
|
|
162
161
|
const checkResult = this.checker.check(expression);
|
|
163
|
-
if (!checkResult.valid)
|
|
162
|
+
if (!checkResult.valid) {
|
|
163
|
+
const errorDiags = checkResult.diagnostics.filter((d) => d.severity === "error");
|
|
164
|
+
throw new require_errors.SELLintError(errorDiags);
|
|
165
|
+
}
|
|
164
166
|
const parseResult = this.env.parse(expression);
|
|
165
167
|
const collectedCalls = require_call_collector.collectCalls(parseResult.ast, { get: (name) => this.findContract(name) });
|
|
166
168
|
debug("evaluate: collected %d calls", collectedCalls.length);
|
|
@@ -178,11 +180,13 @@ var SELRuntime = class {
|
|
|
178
180
|
}
|
|
179
181
|
async executeContractCalls(collectedCalls, executionVariables, resolvedClient) {
|
|
180
182
|
debug("evaluate: calls to execute — %o", collectedCalls.map((c) => `${c.contract}.${c.method}`));
|
|
181
|
-
const
|
|
183
|
+
const graph = require_dependency_analyzer.analyzeDependencies(collectedCalls);
|
|
184
|
+
const plan = require_round_planner.planRounds(graph, {
|
|
182
185
|
maxRounds: this.maxRounds,
|
|
183
186
|
maxCalls: this.maxCalls
|
|
184
187
|
});
|
|
185
|
-
const
|
|
188
|
+
const contractInfoMap = require_contract_caller.buildContractInfoMap(this.schema.contracts);
|
|
189
|
+
const executor = new require_multi_round_executor.MultiRoundExecutor(resolvedClient, contractInfoMap, this.multicallOptions);
|
|
186
190
|
let executionResult;
|
|
187
191
|
try {
|
|
188
192
|
executionResult = await executor.execute(plan, executionVariables, await require_contract_caller.resolveExecutionBlockNumber(resolvedClient));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SELRuntimeConfig } from "./types.cjs";
|
|
2
2
|
import { EvaluateOptions, EvaluateResult } from "../execution/types.cjs";
|
|
3
3
|
import { TypeCheckResult } from "@marcbachmann/cel-js";
|
|
4
|
-
|
|
5
4
|
//#region src/environment/environment.d.ts
|
|
6
5
|
declare class SELRuntime {
|
|
7
6
|
private readonly env;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SELRuntimeConfig } from "./types.mjs";
|
|
2
2
|
import { EvaluateOptions, EvaluateResult } from "../execution/types.mjs";
|
|
3
3
|
import { TypeCheckResult } from "@marcbachmann/cel-js";
|
|
4
|
-
|
|
5
4
|
//#region src/environment/environment.d.ts
|
|
6
5
|
declare class SELRuntime {
|
|
7
6
|
private readonly env;
|
|
@@ -159,7 +159,10 @@ var SELRuntime = class {
|
|
|
159
159
|
}
|
|
160
160
|
planExecution(expression, evaluationContext) {
|
|
161
161
|
const checkResult = this.checker.check(expression);
|
|
162
|
-
if (!checkResult.valid)
|
|
162
|
+
if (!checkResult.valid) {
|
|
163
|
+
const errorDiags = checkResult.diagnostics.filter((d) => d.severity === "error");
|
|
164
|
+
throw new SELLintError(errorDiags);
|
|
165
|
+
}
|
|
163
166
|
const parseResult = this.env.parse(expression);
|
|
164
167
|
const collectedCalls = collectCalls(parseResult.ast, { get: (name) => this.findContract(name) });
|
|
165
168
|
debug("evaluate: collected %d calls", collectedCalls.length);
|
|
@@ -177,11 +180,13 @@ var SELRuntime = class {
|
|
|
177
180
|
}
|
|
178
181
|
async executeContractCalls(collectedCalls, executionVariables, resolvedClient) {
|
|
179
182
|
debug("evaluate: calls to execute — %o", collectedCalls.map((c) => `${c.contract}.${c.method}`));
|
|
180
|
-
const
|
|
183
|
+
const graph = analyzeDependencies(collectedCalls);
|
|
184
|
+
const plan = planRounds(graph, {
|
|
181
185
|
maxRounds: this.maxRounds,
|
|
182
186
|
maxCalls: this.maxCalls
|
|
183
187
|
});
|
|
184
|
-
const
|
|
188
|
+
const contractInfoMap = buildContractInfoMap(this.schema.contracts);
|
|
189
|
+
const executor = new MultiRoundExecutor(resolvedClient, contractInfoMap, this.multicallOptions);
|
|
185
190
|
let executionResult;
|
|
186
191
|
try {
|
|
187
192
|
executionResult = await executor.execute(plan, executionVariables, await resolveExecutionBlockNumber(resolvedClient));
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
require("./client.cjs");
|
|
2
|
-
require("./environment.cjs");
|
|
1
|
+
const require_client = require("./client.cjs");
|
|
2
|
+
const require_environment = require("./environment.cjs");
|
|
3
|
+
exports.SELRuntime = require_environment.SELRuntime;
|
|
4
|
+
exports.validateClient = require_client.validateClient;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SELClient, validateClient } from "./client.cjs";
|
|
2
|
+
import { MulticallOptions, SELLimits, SELRuntimeConfig } from "./types.cjs";
|
|
3
|
+
import { SELRuntime } from "./environment.cjs";
|
|
4
|
+
export { MulticallOptions, type SELClient, SELLimits, SELRuntime, SELRuntimeConfig, validateClient };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { SELClient, validateClient } from "./client.mjs";
|
|
2
2
|
import { MulticallOptions, SELLimits, SELRuntimeConfig } from "./types.mjs";
|
|
3
|
-
import { SELRuntime } from "./environment.mjs";
|
|
3
|
+
import { SELRuntime } from "./environment.mjs";
|
|
4
|
+
export { MulticallOptions, type SELClient, SELLimits, SELRuntime, SELRuntimeConfig, validateClient };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./client.mjs";
|
|
2
|
-
import "./environment.mjs";
|
|
3
|
-
export {};
|
|
1
|
+
import { validateClient } from "./client.mjs";
|
|
2
|
+
import { SELRuntime } from "./environment.mjs";
|
|
3
|
+
export { SELRuntime, validateClient };
|
package/dist/errors/errors.cjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
let _seljs_common = require("@seljs/common");
|
|
3
2
|
//#region src/errors/errors.ts
|
|
4
3
|
/**
|
|
@@ -148,6 +147,8 @@ exports.SELCircularDependencyError = SELCircularDependencyError;
|
|
|
148
147
|
exports.SELClientError = SELClientError;
|
|
149
148
|
exports.SELContractError = SELContractError;
|
|
150
149
|
exports.SELContractRevertError = SELContractRevertError;
|
|
150
|
+
exports.SELError = _seljs_common.SELError;
|
|
151
|
+
exports.SELEvaluationError = _seljs_common.SELEvaluationError;
|
|
151
152
|
exports.SELExecutionError = SELExecutionError;
|
|
152
153
|
exports.SELExecutionLimitError = SELExecutionLimitError;
|
|
153
154
|
exports.SELLintError = SELLintError;
|
|
@@ -155,3 +156,5 @@ exports.SELMulticallBatchError = SELMulticallBatchError;
|
|
|
155
156
|
exports.SELProviderError = SELProviderError;
|
|
156
157
|
exports.SELProviderRpcError = SELProviderRpcError;
|
|
157
158
|
exports.SELProviderTransportError = SELProviderTransportError;
|
|
159
|
+
exports.SELRuntimeError = _seljs_common.SELRuntimeError;
|
|
160
|
+
exports.SELStaticError = _seljs_common.SELStaticError;
|
package/dist/errors/errors.d.cts
CHANGED
package/dist/errors/errors.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SELDiagnostic } from "@seljs/checker";
|
|
2
2
|
import { SELError as SELError$1, SELEvaluationError as SELEvaluationError$1, SELRuntimeError, SELStaticError } from "@seljs/common";
|
|
3
|
-
|
|
4
3
|
//#region src/errors/errors.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Thrown when a contract-layer call fails after execution reached the
|
package/dist/errors/index.cjs
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
require("
|
|
2
|
-
require("
|
|
3
|
-
|
|
1
|
+
const require_errors = require("./errors.cjs");
|
|
2
|
+
let _seljs_common = require("@seljs/common");
|
|
3
|
+
exports.SELCircularDependencyError = require_errors.SELCircularDependencyError;
|
|
4
|
+
exports.SELClientError = require_errors.SELClientError;
|
|
5
|
+
exports.SELContractError = require_errors.SELContractError;
|
|
6
|
+
exports.SELContractRevertError = require_errors.SELContractRevertError;
|
|
7
|
+
exports.SELError = _seljs_common.SELError;
|
|
8
|
+
exports.SELEvaluationError = _seljs_common.SELEvaluationError;
|
|
9
|
+
exports.SELExecutionError = require_errors.SELExecutionError;
|
|
10
|
+
exports.SELExecutionLimitError = require_errors.SELExecutionLimitError;
|
|
11
|
+
exports.SELLintError = require_errors.SELLintError;
|
|
12
|
+
exports.SELMulticallBatchError = require_errors.SELMulticallBatchError;
|
|
13
|
+
exports.SELProviderError = require_errors.SELProviderError;
|
|
14
|
+
exports.SELProviderRpcError = require_errors.SELProviderRpcError;
|
|
15
|
+
exports.SELProviderTransportError = require_errors.SELProviderTransportError;
|
|
16
|
+
exports.SELRuntimeError = _seljs_common.SELRuntimeError;
|
|
17
|
+
exports.SELStaticError = _seljs_common.SELStaticError;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError } from "./errors.cjs";
|
|
2
|
+
export { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError };
|
package/dist/errors/index.d.mts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError } from "./errors.mjs";
|
|
1
|
+
import { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError } from "./errors.mjs";
|
|
2
|
+
export { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError };
|
package/dist/errors/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import "./errors.mjs";
|
|
2
|
-
export {};
|
|
1
|
+
import { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError } from "./errors.mjs";
|
|
2
|
+
export { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError };
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
import { EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionMeta, ExecutionResult } from "./types.mjs";
|
|
1
|
+
import { EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionMeta, ExecutionResult } from "./types.mjs";
|
|
2
|
+
export type { EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionMeta, ExecutionResult };
|
|
@@ -5,6 +5,8 @@ const require_round_executor = require("./round-executor.cjs");
|
|
|
5
5
|
//#region src/execution/multi-round-executor.ts
|
|
6
6
|
const debug = require_debug.createLogger("execute");
|
|
7
7
|
var MultiRoundExecutor = class {
|
|
8
|
+
client;
|
|
9
|
+
multicallOptions;
|
|
8
10
|
contracts;
|
|
9
11
|
constructor(client, contracts, multicallOptions) {
|
|
10
12
|
this.client = client;
|
|
@@ -5,6 +5,8 @@ import { RoundExecutor } from "./round-executor.mjs";
|
|
|
5
5
|
//#region src/execution/multi-round-executor.ts
|
|
6
6
|
const debug = createLogger("execute");
|
|
7
7
|
var MultiRoundExecutor = class {
|
|
8
|
+
client;
|
|
9
|
+
multicallOptions;
|
|
8
10
|
contracts;
|
|
9
11
|
constructor(client, contracts, multicallOptions) {
|
|
10
12
|
this.client = client;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_multicall = require("./multicall.cjs");
|
|
3
2
|
const require_errors = require("../errors/errors.cjs");
|
|
4
3
|
require("../errors/index.cjs");
|
|
@@ -7,6 +6,7 @@ let ox = require("ox");
|
|
|
7
6
|
//#region src/execution/multicall-batcher.ts
|
|
8
7
|
const debug = require_debug.createLogger("execute:multicall");
|
|
9
8
|
var MulticallBatcher = class {
|
|
9
|
+
client;
|
|
10
10
|
address;
|
|
11
11
|
batchSize;
|
|
12
12
|
constructor(client, options) {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
require("../_virtual/_rolldown/runtime.cjs");
|
|
2
1
|
const require_errors = require("../errors/errors.cjs");
|
|
3
2
|
require("../errors/index.cjs");
|
|
4
3
|
const require_debug = require("../debug.cjs");
|
|
@@ -8,6 +7,9 @@ let _seljs_common = require("@seljs/common");
|
|
|
8
7
|
//#region src/execution/round-executor.ts
|
|
9
8
|
const debug = require_debug.createLogger("execute:round");
|
|
10
9
|
var RoundExecutor = class {
|
|
10
|
+
contracts;
|
|
11
|
+
cache;
|
|
12
|
+
batcher;
|
|
11
13
|
constructor(contracts, cache, batcher) {
|
|
12
14
|
this.contracts = contracts;
|
|
13
15
|
this.cache = cache;
|
|
@@ -7,6 +7,9 @@ import { SELConfigError } from "@seljs/common";
|
|
|
7
7
|
//#region src/execution/round-executor.ts
|
|
8
8
|
const debug = createLogger("execute:round");
|
|
9
9
|
var RoundExecutor = class {
|
|
10
|
+
contracts;
|
|
11
|
+
cache;
|
|
12
|
+
batcher;
|
|
10
13
|
constructor(contracts, cache, batcher) {
|
|
11
14
|
this.contracts = contracts;
|
|
12
15
|
this.cache = cache;
|
package/dist/factory.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SELRuntimeConfig } from "./environment/types.cjs";
|
|
2
2
|
import { SELRuntime } from "./environment/environment.cjs";
|
|
3
|
-
|
|
3
|
+
import "./environment/index.cjs";
|
|
4
4
|
//#region src/factory.d.ts
|
|
5
5
|
declare const createSEL: (config: SELRuntimeConfig) => SELRuntime;
|
|
6
6
|
//#endregion
|
package/dist/factory.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SELRuntimeConfig } from "./environment/types.mjs";
|
|
2
2
|
import { SELRuntime } from "./environment/environment.mjs";
|
|
3
|
+
import "./environment/index.mjs";
|
|
3
4
|
//#region src/factory.d.ts
|
|
4
5
|
declare const createSEL: (config: SELRuntimeConfig) => SELRuntime;
|
|
5
6
|
//#endregion
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,10 @@ import { SELClient, validateClient } from "./environment/client.cjs";
|
|
|
2
2
|
import { MulticallOptions, SELLimits, SELRuntimeConfig } from "./environment/types.cjs";
|
|
3
3
|
import { EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionMeta, ExecutionResult } from "./execution/types.cjs";
|
|
4
4
|
import { SELRuntime } from "./environment/environment.cjs";
|
|
5
|
+
import "./environment/index.cjs";
|
|
5
6
|
import { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError } from "./errors/errors.cjs";
|
|
7
|
+
import "./errors/index.cjs";
|
|
6
8
|
import { createSEL } from "./factory.cjs";
|
|
7
9
|
import { CallArgument, CollectedCall, DependencyGraph, ExecutionPlan, ExecutionRound, GraphNode } from "./analysis/types.cjs";
|
|
8
|
-
|
|
10
|
+
import "./execution/index.cjs";
|
|
11
|
+
export { type CallArgument, type CollectedCall, type DependencyGraph, type EvaluateOptions, type EvaluateResult, type ExecutionContext, type ExecutionMeta, type ExecutionPlan, type ExecutionResult, type ExecutionRound, type GraphNode, MulticallOptions, SELCircularDependencyError, type SELClient, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLimits, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntime, SELRuntimeConfig, SELRuntimeError, SELStaticError, createSEL, validateClient };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,10 @@ import { SELClient, validateClient } from "./environment/client.mjs";
|
|
|
2
2
|
import { MulticallOptions, SELLimits, SELRuntimeConfig } from "./environment/types.mjs";
|
|
3
3
|
import { EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionMeta, ExecutionResult } from "./execution/types.mjs";
|
|
4
4
|
import { SELRuntime } from "./environment/environment.mjs";
|
|
5
|
+
import "./environment/index.mjs";
|
|
5
6
|
import { SELCircularDependencyError, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntimeError, SELStaticError } from "./errors/errors.mjs";
|
|
7
|
+
import "./errors/index.mjs";
|
|
6
8
|
import { createSEL } from "./factory.mjs";
|
|
7
9
|
import { CallArgument, CollectedCall, DependencyGraph, ExecutionPlan, ExecutionRound, GraphNode } from "./analysis/types.mjs";
|
|
8
|
-
|
|
10
|
+
import "./execution/index.mjs";
|
|
11
|
+
export { type CallArgument, type CollectedCall, type DependencyGraph, type EvaluateOptions, type EvaluateResult, type ExecutionContext, type ExecutionMeta, type ExecutionPlan, type ExecutionResult, type ExecutionRound, type GraphNode, MulticallOptions, SELCircularDependencyError, type SELClient, SELClientError, SELContractError, SELContractRevertError, SELError, SELEvaluationError, SELExecutionError, SELExecutionLimitError, SELLimits, SELLintError, SELMulticallBatchError, SELProviderError, SELProviderRpcError, SELProviderTransportError, SELRuntime, SELRuntimeConfig, SELRuntimeError, SELStaticError, createSEL, validateClient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seljs/runtime",
|
|
3
|
-
"version": "1.4.0-beta.
|
|
3
|
+
"version": "1.4.0-beta.38",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/abinnovision/seljs"
|
|
6
6
|
},
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@marcbachmann/cel-js": "^7.5.3",
|
|
53
|
-
"@seljs/checker": "1.4.0-beta.
|
|
54
|
-
"@seljs/common": "1.4.0-beta.
|
|
55
|
-
"@seljs/env": "1.4.0-beta.
|
|
53
|
+
"@seljs/checker": "1.4.0-beta.38",
|
|
54
|
+
"@seljs/common": "1.4.0-beta.38",
|
|
55
|
+
"@seljs/env": "1.4.0-beta.38",
|
|
56
56
|
"@seljs/schema": "1.3.0",
|
|
57
|
-
"@seljs/types": "1.4.0-beta.
|
|
57
|
+
"@seljs/types": "1.4.0-beta.38",
|
|
58
58
|
"debug": "^4.4.3",
|
|
59
59
|
"ox": "^0.14.20",
|
|
60
60
|
"viem": "^2.47.6"
|
|
@@ -68,13 +68,12 @@
|
|
|
68
68
|
"concurrently": "^9.2.1",
|
|
69
69
|
"eslint": "^9.39.4",
|
|
70
70
|
"prettier": "^3.8.1",
|
|
71
|
-
"tsdown": "^0.
|
|
72
|
-
"typescript": "^
|
|
71
|
+
"tsdown": "^0.22.14",
|
|
72
|
+
"typescript": "^6.0.3",
|
|
73
73
|
"vitest": "^4.1.0",
|
|
74
74
|
"zod": "^4.3.6"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"typescript": "^5",
|
|
78
77
|
"zod": "^4.0.0"
|
|
79
78
|
},
|
|
80
79
|
"publishConfig": {
|