-
Notifications
You must be signed in to change notification settings - Fork 599
test: add testnet compat test #14601
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import type { InitialAccountData } from '@aztec/accounts/testing'; | ||
| import { Fr } from '@aztec/aztec.js'; | ||
| import { getSponsoredFPCAddress } from '@aztec/cli/cli-utils'; | ||
| import { getVKTreeRoot } from '@aztec/noir-protocol-circuits-types/vk-tree'; | ||
| import { protocolContractTreeRoot } from '@aztec/protocol-contracts'; | ||
| import { getGenesisValues } from '@aztec/world-state/testing'; | ||
|
|
||
| /** | ||
| * This test suit makes sure that the code in the monorepo is still compatible with the latest version of testnet | ||
| * Only update these values after a governance update that changes the protocol is enacted | ||
| */ | ||
| describe('Testnet compatibility', () => { | ||
| it('has expected VK tree root', () => { | ||
| expect(getVKTreeRoot()).toEqual( | ||
| Fr.fromHexString('0x2339da454741e2360c4e27c6f68767215a5b6ce150527d32d6b6c95aa92ec8c9'), | ||
| ); | ||
| }); | ||
| it('has expected Protocol Contracts tree root', () => { | ||
| expect(protocolContractTreeRoot).toEqual( | ||
| Fr.fromHexString('0x2efd3fd6b542f09e9f76c84337f46370f67729ce54c815d35866b4cb2a267203'), | ||
| ); | ||
| }); | ||
| it('has expected Genesis tree roots', async () => { | ||
| const initialAccounts: InitialAccountData[] = []; | ||
| const sponsoredFPCAddress = await getSponsoredFPCAddress(); | ||
| const initialFundedAccounts = initialAccounts.map(a => a.address).concat(sponsoredFPCAddress); | ||
| const { genesisArchiveRoot } = await getGenesisValues(initialFundedAccounts); | ||
|
|
||
| expect(genesisArchiveRoot).toEqual( | ||
| Fr.fromHexString('0x1f9a1f495b0a8f12ebc07e1bea931ea1e2b6f862b6da9d5395ab11c5374ccabb'), | ||
| ); | ||
| }); | ||
| }); |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Maybe I should create
aztec/bootstrap.shand move this inside it.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.
why make the exception? only other place with a nested bootstrap is end-to-end - which is a bit more complex.