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: chain type #42

Merged
merged 6 commits into from
Aug 8, 2024
Merged

feat: chain type #42

merged 6 commits into from
Aug 8, 2024

Conversation

0xkenj1
Copy link
Collaborator

@0xkenj1 0xkenj1 commented Aug 8, 2024

🤖 Linear

Closes ZKS-79

Description

  • Add chainType logic to L1MetricsService
  • extract diamond proxy fetching logic into a function called fetchDiamondProxyAddress

Copy link

linear bot commented Aug 8, 2024

ZKS-79 Chain type

Use getPubdataPricingMode from Getter facet: https://github.com/matter-labs/era-contracts/blob/8a70bbbc48125f5bde6189b4e3c6a3ee79631678/l1-contracts/contracts/state-transition/chain-interfaces/IGetters.sol#L113C14-L113C35 to retrieve if chain is Validium or Rollup

AC:

  • getChainType successfully implemented on L1MetricsService
  • Unit tests

@0xkenj1 0xkenj1 requested review from 0xyaco and 0xnigir1 August 8, 2024 00:56
Copy link
Collaborator

@0xnigir1 0xnigir1 left a comment

Choose a reason for hiding this comment

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

lgtm, just one comment in test cases

Copy link
Collaborator

Choose a reason for hiding this comment

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

💯

"getPubdataPricingMode",
[],
);
});
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should add the test case for Validium (if 1 is returned)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

lets do it ser, will add it

0xnigir1
0xnigir1 previously approved these changes Aug 8, 2024
0xyaco
0xyaco previously approved these changes Aug 8, 2024
@0xkenj1 0xkenj1 dismissed stale reviews from 0xyaco and 0xnigir1 August 8, 2024 15:08

The merge-base changed after approval.

@0xkenj1 0xkenj1 merged commit d94bdd0 into dev Aug 8, 2024
6 checks passed
@0xkenj1 0xkenj1 deleted the feat/chain-type branch August 8, 2024 15:27
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.

3 participants