Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

Changes to allow "votable" config for votable ERC20 warp routes #59

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

armanthepythonguy
Copy link

  • Added an optional config in warpRouteConfig
  • Added an optional votable field to synthetics in WarpRouteDeployer

@nambrot nambrot self-assigned this Jun 26, 2023
@@ -5,6 +5,7 @@ import type { WarpRouteConfig } from '../src/warp/config';
// A config for deploying Warp Routes to a set of chains
// Not required for Hyperlane core deployments
export const warpRouteConfig: WarpRouteConfig = {
// votable:true You can enable this config if you want to make your synthetic ERC20 tokens votable
Copy link
Contributor

Choose a reason for hiding this comment

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

Put these on different lines to make it obvious that votable is something that can be commented out

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, shouldn't this be on the synthetics part of the config? So move it to line 21?

Copy link
Author

Choose a reason for hiding this comment

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

I have updated it. Now you have the votable options both in the base as well as the synthetic chain. If votable is true in the base chain it will deploy the HypERC20CollateralVotable.sol and similarly, in the synthetic chain HypERC20Votable.sol

},
],
};
};
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove this whitespace change

@@ -119,9 +118,12 @@ export class WarpRouteDeployer {
JSON.stringify(configMap[baseChainName]),
);


Copy link
Contributor

Choose a reason for hiding this comment

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

Unnecessary whitespace change

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants