Skip to content

Commit 217794a

Browse files
author
AztecBot
committed
Merge branch 'next' into merge-train/barretenberg
2 parents 4f61dd0 + 0cba48d commit 217794a

7 files changed

Lines changed: 85 additions & 32 deletions

File tree

avm-transpiler/Cargo.lock

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

l1-contracts/gas_benchmark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
|----------------------|---------|---------|---------------|--------------|
6666
| propose | 334,960 | 352,320 | 4,580 | 73,280 |
6767
| submitEpochRootProof | 895,025 | 933,081 | 6,308 | 100,928 |
68-
| aggregate3 | 373,091 | 390,443 | - | - |
68+
| aggregate3 | 373,092 | 390,455 | - | - |
6969
| setupEpoch | 49,728 | 542,190 | - | - |
7070

7171
**Avg Gas Cost per Second**: 10,901.5 gas/second

l1-contracts/gas_benchmark_results.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@
5555
},
5656
"aggregate3": {
5757
"calls": 100,
58-
"min": 239389,
58+
"min": 239377,
5959
"mean": 245657,
60-
"median": 245991,
60+
"median": 245997,
6161
"max": 265021
6262
}
6363
}
@@ -118,10 +118,10 @@
118118
},
119119
"aggregate3": {
120120
"calls": 100,
121-
"min": 357506,
122-
"mean": 373091,
123-
"median": 373535,
124-
"max": 390443
121+
"min": 357518,
122+
"mean": 373092,
123+
"median": 373541,
124+
"max": 390455
125125
}
126126
}
127127
}

l1-contracts/src/governance/GSE.sol

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -661,8 +661,9 @@ contract GSE is IGSE, GSECore {
661661
/**
662662
* @notice Get the effective balance of the attester at the instance.
663663
*
664-
* The effective balance is the balance of the attester at the instance,
665-
* plus the balance of the attester at the bonus instance if the instance is the latest rollup.
664+
* The effective balance is the balance of the attester at the specific instance or at the bonus if the
665+
* instance is the latest rollup and he was not at the specific. We can do this as an `or` since the
666+
* attester may only be active at one of them.
666667
*
667668
* @param _instance - The instance to look at
668669
* @param _attester - The attester to look at
@@ -671,8 +672,8 @@ contract GSE is IGSE, GSECore {
671672
*/
672673
function effectiveBalanceOf(address _instance, address _attester) external view override(IGSE) returns (uint256) {
673674
uint256 balance = delegation.getBalanceOf(_instance, _attester);
674-
if (getLatestRollup() == _instance) {
675-
balance += delegation.getBalanceOf(BONUS_INSTANCE_ADDRESS, _attester);
675+
if (balance == 0 && getLatestRollup() == _instance) {
676+
return delegation.getBalanceOf(BONUS_INSTANCE_ADDRESS, _attester);
676677
}
677678
return balance;
678679
}

noir/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ function bump_noir_repo_ref {
227227
git add noir-repo-ref
228228

229229
# Update the Cargo.lock file in the transpiler to match the new ref.
230-
cargo check --manifest-path="../avm-transpiler/Cargo.toml"
230+
cargo update --workspace --manifest-path="../avm-transpiler/Cargo.toml"
231231

232232
# Build nargo and run formatter on `noir-projects`
233233
build_native

noir/noir-repo-ref

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2025-08-15
1+
nightly-2025-08-20

noir/noir-repo.patch

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
From e17834fb9768e2d5cfc053e4ce8c82da0586a099 Mon Sep 17 00:00:00 2001
1+
From 32263211e56ad073710fba5553d1d297e0d31f93 Mon Sep 17 00:00:00 2001
22
From: TomAFrench <tom@tomfren.ch>
33
Date: Sat, 15 Mar 2025 15:36:12 +0000
4-
Subject: [PATCH 1/2] chore: turn on `skipLibCheck`
4+
Subject: [PATCH 1/3] chore: turn on `skipLibCheck`
55

66
---
77
tooling/noir_codegen/tsconfig.json | 1 +
@@ -19,5 +19,57 @@ index 30dd2a7ee..a2712fd73 100644
1919
},
2020
"include": [
2121
"src/**/*.ts"
22-
--
22+
--
2323
2.43.0
24+
25+
From 7e03e95028ef37f86d7fd0d99a534fcea50f4708 Mon Sep 17 00:00:00 2001
26+
From: Tom French <15848336+TomAFrench@users.noreply.github.com>
27+
Date: Wed, 20 Aug 2025 14:10:23 +0000
28+
Subject: [PATCH 3/3] chore: fix acvm_js test
29+
30+
---
31+
acvm-repo/acvm_js/test/node/build_info.test.ts | 5 ++---
32+
acvm-repo/acvm_js/tsconfig.json | 6 +++---
33+
2 files changed, 5 insertions(+), 6 deletions(-)
34+
35+
diff --git a/acvm-repo/acvm_js/test/node/build_info.test.ts b/acvm-repo/acvm_js/test/node/build_info.test.ts
36+
index 362fd91af..8b4c7f2eb 100644
37+
--- a/acvm-repo/acvm_js/test/node/build_info.test.ts
38+
+++ b/acvm-repo/acvm_js/test/node/build_info.test.ts
39+
@@ -1,9 +1,8 @@
40+
import { expect } from 'chai';
41+
-import acvm_js from '@noir-lang/acvm_js';
42+
-const { buildInfo } = acvm_js;
43+
+import { buildInfo } from '@noir-lang/acvm_js';
44+
45+
import child_process from 'child_process';
46+
-import pkg from '../../package.json' with { type: 'json' };
47+
+import pkg from '../../package.json';
48+
49+
it('returns the correct build info', () => {
50+
let revision: string;
51+
diff --git a/acvm-repo/acvm_js/tsconfig.json b/acvm-repo/acvm_js/tsconfig.json
52+
index 4fd8e50df..791d6527a 100644
53+
--- a/acvm-repo/acvm_js/tsconfig.json
54+
+++ b/acvm-repo/acvm_js/tsconfig.json
55+
@@ -2,8 +2,8 @@
56+
"compilerOptions": {
57+
"moduleResolution": "node",
58+
"outDir": "lib",
59+
- "target": "ESNext",
60+
- "module": "ESNext",
61+
+ "target": "esnext",
62+
+ "module": "esnext",
63+
"strict": true,
64+
"experimentalDecorators": true,
65+
"esModuleInterop": true,
66+
@@ -13,4 +13,4 @@
67+
"sourceMap": true,
68+
"resolveJsonModule": true,
69+
}
70+
-}
71+
\ No newline at end of file
72+
+}
73+
--
74+
2.43.0
75+

0 commit comments

Comments
 (0)