-
Notifications
You must be signed in to change notification settings - Fork 37
Changes to allow "votable" config for votable ERC20 warp routes #59
base: main
Are you sure you want to change the base?
Conversation
armanthepythonguy
commented
Jun 23, 2023
- Added an optional config in warpRouteConfig
- Added an optional votable field to synthetics in WarpRouteDeployer
config/warp_tokens.ts
Outdated
@@ -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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
}, | ||
], | ||
}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this whitespace change
src/warp/WarpRouteDeployer.ts
Outdated
@@ -119,9 +118,12 @@ export class WarpRouteDeployer { | |||
JSON.stringify(configMap[baseChainName]), | |||
); | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary whitespace change