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: support zkEVM mainnet #1208

Merged
merged 21 commits into from Mar 6, 2024
Merged

feat: support zkEVM mainnet #1208

merged 21 commits into from Mar 6, 2024

Conversation

impelcrypto
Copy link
Member

@impelcrypto impelcrypto commented Feb 29, 2024

Pull Request Summary

  • feat: support zkEVM mainnet
    • withdrawal bridge is temporally disabled

Check list

  • contains breaking changes
  • adds new feature
  • modifies existing feature (bug fix or improvements)
  • relies on other tasks
  • documentation changes
  • tested on mobile devices

This pull request makes the following changes:

Adds

image

Screenshot 2024-02-29 at 11 06 49 PM

@impelcrypto impelcrypto requested review from ayumitk, bobo-k2, gluneau and Kahonnohak and removed request for ayumitk February 29, 2024 15:43
Copy link

github-actions bot commented Feb 29, 2024

Visit the preview URL for this PR (updated for commit f9da926):

https://astar-apps--pr1208-feat-astar-zkevm-mai-g5fe7u46.web.app

(expires Wed, 13 Mar 2024 02:45:42 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: dd76fe72958fe2910fef9d53f0b4539b82b849db

@@ -21,32 +22,33 @@ import { astarNativeTokenErcAddr } from 'src/modules/xcm';
type MerkleProof = {
main_exit_root: string;
merkle_proof: string[];
rollup_merkle_proof: string[];
// Todo: remove '?'
rollup_merkle_proof?: string[];
Copy link
Contributor

Choose a reason for hiding this comment

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

@impelcrypto what should occur so that you can remove the ?

Copy link
Member Author

Choose a reason for hiding this comment

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

This key doesn't exist in zKatana's API but zKyoto and mainnet. So we should remove ? when we migrate the testnet to zKyoto


const abi = isAggregateContract ? ZK_EVM_AGGREGATED_BRIDGE_ABI : ZK_EVM_BRIDGE_ABI;
// ABI: https://github.com/0xPolygonHermez/zkevm-bridge-ui/blob/7c84791d06770569d316f27d62c3989bef81be58/abis/bridge.json
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we keep these comments in? Do they serve a purpose?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because I can't find the ABI on Etherscan. Perhaps I should update the comment to point at the main branch.
https://etherscan.io/address/0x2a3dd3eb832af982ec71669e178424b10dca2ede#code

Copy link
Contributor

@gluneau gluneau left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Kahonnohak Kahonnohak left a comment

Choose a reason for hiding this comment

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

LGTM

@impelcrypto impelcrypto merged commit 1a8db6e into main Mar 6, 2024
8 of 9 checks passed
@impelcrypto impelcrypto deleted the feat/astar-zkevm-mainnet branch March 6, 2024 02:47
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

3 participants