Skip to content
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

fix: More migration fixes, bumping contracts #1694

Merged
merged 36 commits into from
Apr 19, 2024

Conversation

kelemeno
Copy link
Contributor

What ❔

Why ❔

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.
  • Spellcheck has been run via zk spellcheck.
  • Linkcheck has been run via zk linkcheck.

@kelemeno kelemeno changed the title More migration fixes, bumping contracts fix: More migration fixes, bumping contracts Apr 15, 2024
@kelemeno kelemeno mentioned this pull request Apr 18, 2024
6 tasks
core/tests/ts-integration/package.json Outdated Show resolved Hide resolved
"license": "MIT",
"private": true,
"scripts": {
"test": "zk f jest --forceExit --testTimeout 120000",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also, why did we change the padding for this file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just changed the padding because it also changed in kl-factory, so just changing it back.

the 120k is an error, will fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -58,6 +61,21 @@ async function hyperchainUpgrade1() {
);
}

async function insertAddresses() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need it? we will have the new facets deployed and they would be written to the facets.json

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am using a different deployment script, because we also need to deploy the STM, Bridgehub, and other contracts, and we need to set the initial diamond cut in the STM. Doing this seemed easier.

infrastructure/protocol-upgrade/src/hyperchain-upgrade.ts Outdated Show resolved Hide resolved
infrastructure/protocol-upgrade/src/hyperchain-upgrade.ts Outdated Show resolved Hide resolved
infrastructure/protocol-upgrade/src/hyperchain-upgrade.ts Outdated Show resolved Hide resolved
infrastructure/protocol-upgrade/src/hyperchain-upgrade.ts Outdated Show resolved Hide resolved
infrastructure/zk/src/contract.ts Show resolved Hide resolved
yarn.lock Outdated Show resolved Hide resolved
Copy link
Contributor

Detected VM performance changes

Benchmark name change in estimated runtime change in number of opcodes executed
call_far N/A +3 (+0.0%)
finish_eventful_frames N/A +3 (+0.0%)
deploy_simple_contract N/A +3 (+0.0%)
decode_shl_sub N/A +3 (+0.0%)
slot_hash_collision N/A +3 (+0.0%)
write_and_decode N/A +3 (+0.0%)
event_spam N/A +3 (+0.0%)
access_memory N/A +3 (+0.0%)

Changes in number of opcodes executed indicate that the gas price of the benchmark has changed, which causes it run out of gas at a different time. Or that it is behaving completely differently.

@kelemeno kelemeno merged commit 01974b3 into kl-factory Apr 19, 2024
42 checks passed
@kelemeno kelemeno deleted the kl/factory-migration-fix branch April 19, 2024 21:18
@ly0va ly0va restored the kl/factory-migration-fix branch April 19, 2024 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants