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

Omnichain governance deployments #57

Merged
merged 29 commits into from
May 23, 2024

Conversation

GitGuru7
Copy link
Contributor

Description

Resolves #

@GitGuru7 GitGuru7 marked this pull request as draft January 12, 2024 14:40
@GitGuru7 GitGuru7 changed the base branch from feat/VEN-1918 to feat/ven-1918 January 24, 2024 08:52
@GitGuru7 GitGuru7 marked this pull request as ready for review February 19, 2024 10:20
@chechu chechu requested a review from coreyar March 19, 2024 00:04
import bscTestnetGovernanceDeployments from "../../deployments/bsctestnet.json";
import { SUPPORTED_NETWORKS } from "./constants";

export const testnetNetworks = ["sepolia", "opbnbtestnet", "arbitrumsepolia"];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
export const testnetNetworks = ["sepolia", "opbnbtestnet", "arbitrumsepolia"];
export const testnetNetworks = ["sepolia", "opbnbtestnet", "arbitrumsepolia", "hardhat"];

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Scripts are working fine on hardhat, we don't need this change we need this only here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

import bscTestnetGovernanceDeployments from "../../deployments/bsctestnet.json";
import { SUPPORTED_NETWORKS } from "./constants";

export const testnetNetworks = ["sepolia", "opbnbtestnet", "arbitrumsepolia"];
const mainnetNetworks = ["ethereum", "opbnbmainnet", "arbitrumone"];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
const mainnetNetworks = ["ethereum", "opbnbmainnet", "arbitrumone"];
const mainnetNetworks = ["ethereum", "opbnbmainnet", "arbitrumone", "hardhat"];

Is the quickest way to test this in development to deploy both sides of governance to hardhat? My thought is to start this way for testing/ subgraph testing and then iterate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Scripts are working fine on hardhat, we don't need this change.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Correct the work fine but what we do loose without this change is deploying the target network contracts to hardhat which could be helpful for testing for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can still deploy target network contracts along with local network contracts on hardhat .
For hardhat it will take bscmainnet chain id by default, see here
LMK if I am missing something.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GitGuru7 GitGuru7 requested review from coreyar and chechu May 9, 2024 09:20
@GitGuru7 GitGuru7 force-pushed the feat/omnichain-governance-deployments branch from ca57fb8 to 3ddf06d Compare May 14, 2024 15:09
hardhat: 10102,
};

export const BNB_GUARDIAN = "0x1C2CAc6ec528c20800B2fe734820D87b581eAA6B";
Copy link
Member

Choose a reason for hiding this comment

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

We could move this variable to deploy/003-omnichain-source.ts, where it's only used

Copy link
Contributor Author

Choose a reason for hiding this comment

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


export const getSourceChainId = async (network: SUPPORTED_NETWORKS) => {
if (testnetNetworks.includes(network as string)) {
return 10102;
Copy link
Member

Choose a reason for hiding this comment

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

We could use the constant LZ_CHAINID.bsctestnet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GitGuru7 GitGuru7 merged commit 42ef64b into feat/ven-1918 May 23, 2024
4 checks passed
@chechu chechu mentioned this pull request Jul 15, 2024
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