@aztec/l1-artifacts 4.0.0-nightly.20260114 → 4.0.0-nightly.20260115

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.
@@ -0,0 +1,47 @@
1
+ // SPDX-License-Identifier: UNLICENSED
2
+ pragma solidity >=0.8.27;
3
+
4
+ import {Test} from "forge-std/Test.sol";
5
+ import {Rollup} from "@aztec/core/Rollup.sol";
6
+ import {Registry} from "@aztec/governance/Registry.sol";
7
+ import {Governance} from "@aztec/governance/Governance.sol";
8
+ import {HonkVerifier} from "../generated/HonkVerifier.sol";
9
+
10
+ /**
11
+ * @notice This test is used to ensure that changes to L1 contracts don't go unnoticed.
12
+ * While still allowing the addition of more tests etc without having to update it.
13
+ * The test is fairly simple, check if the creation code has changed for the important
14
+ * contracts. If it has, the test will fail, so it needs to be updated.
15
+ * This should not be needed for master, so if you have a diff, it probably have to go to NEXT.
16
+ */
17
+ contract ScreamAndShoutTest is Test {
18
+ string internal constant ERR_STRING = "This belongs in NEXT!";
19
+
20
+ function test_GovernanceCreationCode() public pure {
21
+ bytes memory creationCode = type(Governance).creationCode;
22
+ bytes32 codeHash = keccak256(creationCode);
23
+
24
+ assertEq(codeHash, 0xf302136f8b3a84d3c36be87e283cda0d6ad04392b7e3c5379c55b2d5b2634c1c, ERR_STRING);
25
+ }
26
+
27
+ function test_HonkVerifierCreationCode() public pure {
28
+ bytes memory creationCode = type(HonkVerifier).creationCode;
29
+ bytes32 codeHash = keccak256(creationCode);
30
+
31
+ assertEq(codeHash, 0xe64a1670c48b0e0f03d405cdf00a7bc6823a47f89851e02680f827e055fd3c60, ERR_STRING);
32
+ }
33
+
34
+ function test_RegistryCreationCode() public pure {
35
+ bytes memory creationCode = type(Registry).creationCode;
36
+ bytes32 codeHash = keccak256(creationCode);
37
+
38
+ assertEq(codeHash, 0x2cb444995a1644607bd5bdeb3ce0027a8484849810c28b57e641cdf61d786c4c, ERR_STRING);
39
+ }
40
+
41
+ function test_RollupCreationCode() public pure {
42
+ bytes memory creationCode = type(Rollup).creationCode;
43
+ bytes32 codeHash = keccak256(creationCode);
44
+
45
+ assertEq(codeHash, 0xb87a83463eba5f258db1166fb43f2cd6c55169fb5ef39412157d3acea384f7ce, ERR_STRING);
46
+ }
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/l1-artifacts",
3
- "version": "4.0.0-nightly.20260114",
3
+ "version": "4.0.0-nightly.20260115",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./*": "./dest/*.js",
@@ -12,7 +12,7 @@
12
12
  "tsconfig": "./tsconfig.json"
13
13
  },
14
14
  "scripts": {
15
- "build": "yarn clean && yarn generate && tsgo -b",
15
+ "build": "yarn clean && yarn generate && ../scripts/tsc.sh",
16
16
  "clean": "rm -rf ./dest ./generated .tsbuildinfo",
17
17
  "formatting": "run -T prettier --check ./generated && run -T eslint ./generated",
18
18
  "formatting:fix": "run -T prettier -w ./generated",
@@ -25,7 +25,7 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "^22.15.17",
28
- "@typescript/native-preview": "7.0.0-dev.20251126.1",
28
+ "@typescript/native-preview": "7.0.0-dev.20260113.1",
29
29
  "ts-node": "^10.9.1",
30
30
  "typescript": "^5.3.3"
31
31
  },