@secondlayer/cli 9.3.0 → 9.3.2
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/cli.js +12 -10
- package/dist/cli.js.map +3 -3
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -29255,6 +29255,9 @@ import { createHash } from "node:crypto";
|
|
|
29255
29255
|
import { existsSync as existsSync2, mkdirSync, readFileSync as readFileSync3, writeFileSync as writeFileSync2 } from "node:fs";
|
|
29256
29256
|
import { dirname as dirname3, resolve as resolve2 } from "node:path";
|
|
29257
29257
|
import { Index } from "@secondlayer/sdk";
|
|
29258
|
+
import {
|
|
29259
|
+
DECODED_EVENT_TYPES
|
|
29260
|
+
} from "@secondlayer/stacks/filters";
|
|
29258
29261
|
function filterHashOf(sources) {
|
|
29259
29262
|
const stable = JSON.stringify(Object.fromEntries(Object.entries(sources).sort(([a4], [b2]) => a4.localeCompare(b2))), (_k, v2) => typeof v2 === "bigint" ? `${v2}n` : v2);
|
|
29260
29263
|
return createHash("sha256").update(stable).digest("hex").slice(0, 16);
|
|
@@ -29281,12 +29284,11 @@ function loadCassette(name, filterHash) {
|
|
|
29281
29284
|
return parsed;
|
|
29282
29285
|
}
|
|
29283
29286
|
function eventTypeFor(filter) {
|
|
29284
|
-
if (filter.type === "print_event")
|
|
29285
|
-
return "print";
|
|
29286
29287
|
if (filter.type === "contract_call" || filter.type === "contract_deploy") {
|
|
29287
29288
|
return null;
|
|
29288
29289
|
}
|
|
29289
|
-
|
|
29290
|
+
const candidate = filter.type === "print_event" ? "print" : filter.type;
|
|
29291
|
+
return DECODED_EVENT_TYPES.includes(candidate) ? candidate : null;
|
|
29290
29292
|
}
|
|
29291
29293
|
async function runSubgraphTest(file, options3) {
|
|
29292
29294
|
const absPath = resolve2(file);
|
|
@@ -34739,7 +34741,7 @@ var {
|
|
|
34739
34741
|
// package.json
|
|
34740
34742
|
var package_default = {
|
|
34741
34743
|
name: "@secondlayer/cli",
|
|
34742
|
-
version: "9.3.
|
|
34744
|
+
version: "9.3.2",
|
|
34743
34745
|
repository: {
|
|
34744
34746
|
type: "git",
|
|
34745
34747
|
url: "git+https://github.com/ryanwaits/secondlayer.git",
|
|
@@ -34788,11 +34790,11 @@ var package_default = {
|
|
|
34788
34790
|
dependencies: {
|
|
34789
34791
|
"@inquirer/prompts": "^8.2.0",
|
|
34790
34792
|
"@secondlayer/bundler": "^0.4.0",
|
|
34791
|
-
"@secondlayer/scaffold": "^1.5.
|
|
34792
|
-
"@secondlayer/sdk": "^6.
|
|
34793
|
-
"@secondlayer/shared": "^7.0
|
|
34794
|
-
"@secondlayer/stacks": "^
|
|
34795
|
-
"@secondlayer/subgraphs": "^3.23.
|
|
34793
|
+
"@secondlayer/scaffold": "^1.5.1",
|
|
34794
|
+
"@secondlayer/sdk": "^6.42.0",
|
|
34795
|
+
"@secondlayer/shared": "^7.4.0",
|
|
34796
|
+
"@secondlayer/stacks": "^3.0.0",
|
|
34797
|
+
"@secondlayer/subgraphs": "^3.23.1",
|
|
34796
34798
|
"@biomejs/js-api": "^0.7.0",
|
|
34797
34799
|
"@biomejs/wasm-nodejs": "^1.9.0",
|
|
34798
34800
|
esbuild: "^0.27.4",
|
|
@@ -38619,5 +38621,5 @@ registerAccountCommand(program);
|
|
|
38619
38621
|
registerKeysCommand(program);
|
|
38620
38622
|
program.parse();
|
|
38621
38623
|
|
|
38622
|
-
//# debugId=
|
|
38624
|
+
//# debugId=96199EDBECA3D51564756E2164756E21
|
|
38623
38625
|
//# sourceMappingURL=cli.js.map
|