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

feat: bump to latest node 18 and allow unlimited contract size on rootchain #212

Merged
merged 21 commits into from
Dec 7, 2023

Conversation

leovct
Copy link
Contributor

@leovct leovct commented Dec 4, 2023

Description

We merged latest changes from maticnetwork/contracts into mardizzone/node-16 (maticnetwork/contracts#490), the branch used to deploy matic contracts in the PoS setup of matic-cli.

The problem is that it deploys a new contract StakeManagerTestable which exhausts all the gas on deployment. I didn't find any problems with the contract, its dependencies and the constructors, so I allowed unlimited contract size deployment on L1 to solve the issue. It also requires updating from ganache 7.5.0 to 7.7.0 - which causes some esm issues, we're trying to fix the problem.

Related ticket: https://polygon.atlassian.net/browse/DVT-1146

Other changes

  • Bump to latest node 18 version and upgrade code to ES6 to get rid of esm which caused issues when trying to bump ganache version, thanks to @gatsbyz 🙏
  • Speed up deployment by avoiding compiling contracts multiple times (with compile-none).
  • Bump actions versions.

Changes

  • Bugfix (non-breaking change that solves an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (change that is not backwards-compatible and/or changes current functionality)
  • New test case for remote devnet

Breaking changes

Please complete this section if any breaking changes have been made, otherwise delete it

Checklist

  • I have added at least 2 reviewer or the whole pos-v1 team
  • I have added sufficient documentation in code
  • I will be resolving comments - if any - by pushing each fix in a separate commit and linking the commit hash in the comment reply

Cross repository changes

It should never be the case...

  • This PR requires changes to bor
    • In case link the PR here:
  • This PR requires changes to heimdall
    • In case link the PR here:

Testing

  • I have tested this code manually on local environment
  • I have tested this code manually on remote devnet using express-cli
  • I have tested this code manually on mumbai

Manual tests

Please complete this section with the steps you performed if you ran manual tests for this functionality, otherwise delete it

Additional comments

Please post additional comments in this section if you have them, otherwise delete it

@leovct leovct changed the title fix: deploy stake manager testable fix: deploy StakeManagerTestable contract Dec 4, 2023
@leovct leovct force-pushed the fix/deploy-stake-manager-testable branch from bcef3c8 to b362763 Compare December 4, 2023 18:32
package.json Outdated Show resolved Hide resolved
@marcello33 marcello33 force-pushed the fix/deploy-stake-manager-testable branch from ba923c4 to b362763 Compare December 4, 2023 20:04
@gatsbyz gatsbyz force-pushed the fix/deploy-stake-manager-testable branch from 1ccc9c7 to 9d5d160 Compare December 6, 2023 00:28
@gatsbyz gatsbyz force-pushed the fix/deploy-stake-manager-testable branch 3 times, most recently from dd65d1a to 26f482a Compare December 6, 2023 01:21
@gatsbyz gatsbyz force-pushed the fix/deploy-stake-manager-testable branch from 7d1aaf3 to bf27ba2 Compare December 6, 2023 02:26
@leovct leovct changed the title fix: deploy StakeManagerTestable contract feat: bump to latest node 18 and deploy StakeManagerTestable contract Dec 6, 2023
@leovct leovct marked this pull request as ready for review December 6, 2023 08:24
package.json Outdated Show resolved Hide resolved
src/express/common/files-utils.js Outdated Show resolved Hide resolved
Co-authored-by: marcello33 <[email protected]>
@leovct leovct changed the title feat: bump to latest node 18 and deploy StakeManagerTestable contract feat: bump to latest node 18 and allow unlimited contract size on rootchain Dec 6, 2023
@marcello33
Copy link
Contributor

Fixed with a workaround for this issue

@marcello33 marcello33 merged commit 977270c into master Dec 7, 2023
5 checks passed
@leovct leovct deleted the fix/deploy-stake-manager-testable branch December 7, 2023 07:44
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.

4 participants