Skip to content

Commit

Permalink
fix: osx compilation (#152)
Browse files Browse the repository at this point in the history
* fix: osx compilation

* chore: address comments
  • Loading branch information
jeluard authored Feb 8, 2024
1 parent 1d7508f commit d79efcc
Show file tree
Hide file tree
Showing 8 changed files with 500 additions and 547 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@
"devDependencies": {
"@chainsafe/blst": "^0.2.4",
"@chainsafe/eslint-plugin-node": "^11.2.3",
"@chainsafe/lodestar-spec-test-util": "^0.18.0",
"@chainsafe/threads": "^1.9.0",
"@lodestar/spec-test-util": "1.13.0",
"@types/chai": "^4.2.9",
"@types/mocha": "^10.0.0",
"@types/randombytes": "^2.0.0",
Expand Down Expand Up @@ -116,7 +116,7 @@
},
"resolutions": {
"mocha": "^9.2.2",
"v8-profiler-next": "1.3.0"
"v8-profiler-next": "1.10.0"
},
"peerDependencies": {
"@chainsafe/blst": "^0.2.4"
Expand Down
3 changes: 2 additions & 1 deletion test/downloadSpecTests.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {downloadTests} from "@chainsafe/lodestar-spec-test-util";
import {downloadTests} from "@lodestar/spec-test-util";
import {SPEC_TEST_VERSION, SPEC_TESTS_DIR, SPEC_TEST_TO_DOWNLOAD} from "./params.js";

/* eslint-disable no-console */
Expand All @@ -8,6 +8,7 @@ downloadTests(
specVersion: SPEC_TEST_VERSION,
outputDir: SPEC_TESTS_DIR,
testsToDownload: SPEC_TEST_TO_DOWNLOAD,
specTestsRepoUrl: "https://github.com/ethereum/consensus-spec-tests",
},
console.log
).catch((e) => {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/aggregate.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import {describeDirectorySpecTest, InputType} from "@chainsafe/lodestar-spec-test-util";
import {describeDirectorySpecTest, InputType} from "@lodestar/spec-test-util";
import {bytesToHex, hexToBytes} from "../../src/helpers/index.js";
import {SPEC_TESTS_DIR} from "../params.js";
import {describeForAllImplementations} from "../switch.js";
Expand All @@ -10,6 +10,7 @@ interface IAggregateSigsTestCase {
input: string[];
output: string;
};
meta?: unknown;
}

describeForAllImplementations((bls) => {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/aggregate_verify.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import {describeDirectorySpecTest, InputType} from "@chainsafe/lodestar-spec-test-util";
import {describeDirectorySpecTest, InputType} from "@lodestar/spec-test-util";
import {hexToBytes} from "../../src/helpers/index.js";
import {SPEC_TESTS_DIR} from "../params.js";
import {describeForAllImplementations} from "../switch.js";
Expand All @@ -13,6 +13,7 @@ interface IAggregateSigsVerifyTestCase {
};
output: boolean;
};
meta?: unknown;
}

describeForAllImplementations((bls) => {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/fast_aggregate_verify.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import {describeDirectorySpecTest, InputType} from "@chainsafe/lodestar-spec-test-util";
import {describeDirectorySpecTest, InputType} from "@lodestar/spec-test-util";
import {hexToBytes} from "../../src/helpers/index.js";
import {SPEC_TESTS_DIR} from "../params.js";
import {describeForAllImplementations} from "../switch.js";
Expand All @@ -14,6 +14,7 @@ interface IAggregateSigsVerifyTestCase {
};
output: boolean;
};
meta?: unknown;
}

describeForAllImplementations((bls) => {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/sign.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import {describeDirectorySpecTest, InputType} from "@chainsafe/lodestar-spec-test-util";
import {describeDirectorySpecTest, InputType} from "@lodestar/spec-test-util";
import {bytesToHex, hexToBytes} from "../../src/helpers/index.js";
import {SPEC_TESTS_DIR} from "../params.js";
import {describeForAllImplementations} from "../switch.js";
Expand All @@ -13,6 +13,7 @@ interface ISignMessageTestCase {
};
output: string;
};
meta?: unknown;
}

describeForAllImplementations((bls) => {
Expand Down
3 changes: 2 additions & 1 deletion test/spec/verify.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import path from "path";
import {describeDirectorySpecTest, InputType} from "@chainsafe/lodestar-spec-test-util";
import {describeDirectorySpecTest, InputType} from "@lodestar/spec-test-util";
import {hexToBytes} from "../../src/helpers/index.js";
import {SPEC_TESTS_DIR} from "../params.js";
import {describeForAllImplementations} from "../switch.js";
Expand All @@ -13,6 +13,7 @@ interface IVerifyTestCase {
};
output: boolean;
};
meta?: unknown;
}

describeForAllImplementations((bls) => {
Expand Down
Loading

0 comments on commit d79efcc

Please sign in to comment.