-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: node upgrade infra #12127
feat: node upgrade infra #12127
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
46bfe8d
to
4985107
Compare
c64b04d
to
c9994ec
Compare
4985107
to
bd889f9
Compare
c9994ec
to
ab4338d
Compare
ab4338d
to
7936b84
Compare
9624c31
to
7af3690
Compare
7936b84
to
5e290d9
Compare
7af3690
to
a885fca
Compare
379759b
to
35ab869
Compare
e360e3b
to
b7279c9
Compare
35ab869
to
8bddbcb
Compare
b7279c9
to
4dd08e7
Compare
votingDuration: Timestamp.wrap(3600), | ||
executionDelay: Timestamp.wrap(3600), | ||
gracePeriod: Timestamp.wrap(3600), | ||
votingDelay: Timestamp.wrap(60), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an issue for picking real values for these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was 60 picked to make the test work? I would prefer they default high but we adjust the slot in a test to a lower value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed offline, the 60
was picked just to make the test fast, and acknowledging that for the first few upgrades on testnet, aztec labs likely be using proposeWithLock and voting, so shorter times are preferable.
Ideally these are configurable in a constructor, similar to the governanceproposer.
return walletGovernance.read.powerAt([this.walletClient!.account.address, now.timestamp]); | ||
} | ||
|
||
public async vote({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can obviously be DRYed with some kind of generic function.
4dd08e7
to
0131a55
Compare
8bddbcb
to
c1a2bd1
Compare
0131a55
to
20a306d
Compare
@@ -38,32 +54,12 @@ done || { | |||
echo "$output" | |||
|
|||
# Extract contract addresses using grep and regex | |||
rollup_address=$(echo "$output" | grep -oP 'Rollup Address: \K0x[a-fA-F0-9]{40}') | |||
registry_address=$(echo "$output" | grep -oP 'Registry Address: \K0x[a-fA-F0-9]{40}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
@@ -258,7 +258,14 @@ export async function createAztecNode( | |||
deps: { telemetry?: TelemetryClient; blobSinkClient?: BlobSinkClientInterface } = {}, | |||
options: { prefilledPublicData?: PublicDataTreeLeaf[] } = {}, | |||
) { | |||
const aztecNodeConfig: AztecNodeConfig = { ...getConfigEnvVars(), ...config }; | |||
// TODO(#12272): will clean this up. This is criminal. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🫢
|
||
import { createPublicClient, http } from 'viem'; | ||
|
||
export async function getL1Addresses( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice
@@ -0,0 +1,187 @@ | |||
import { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome awesome awesome awesome awesome awesome
c1a2bd1
to
cd46471
Compare
20a306d
to
9d24400
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I approve the change to the bootstrap.sh
9d24400
to
b3628eb
Compare
e811637
to
f9ff4ab
Compare
f9ff4ab
to
bb2043e
Compare
bb2043e
to
04afa69
Compare
Add utilities to make upgrades easy. Confirm that upgrades work in a spartan environment by:
Fix #9638
Fix #12071
Fix #12145