Token deployer yb route (#3435)
### Description Adds yield-bearing warp routes to CLI `create` and `deploy` ### Drive-by changes - hyperlane config create warp - Add logic to prompt user `Do you want this warp route to be yield-bearing (i.e. deposits into ERC-4626 vault)?` - If yes - Prompt `Enter the ERC-4626 vault address` - Otherwise, `Enter the collateral token address` - warp-token will be created with `base.address` set to the vault address - Updated prompt flow ``` Select base chain with the original token to warp sepolia? Are you creating a route for the native token of the base chain (e.g. Ether on Ethereum)? no Is this an NFT (i.e. ERC-721)? no Do you want this warp route to be yield-bearing (i.e. deposits into ERC-4626 vault)? // If yes Enter the ERC-4626 vault address // If not a warp route Enter the collateral token address ``` - hyperlane deploy warp - Adds logic to check if `base.type == collateralVault`, make sure that `base.address` exists (and not address(0)). - Deploys `HypERC20CollateralVaultDeposit.sol` using `base.address` - Update example/warp-route-deployment.yaml - Made some quality of life fixes - Add more details to logs - Add `yarn dev` in sdk to use `tsc --watch`. Similar to what's in the cli ### Related issues #3416 ### Backward compatibility Yes ### Testing Use this mock vault: 0xa2ecc6478d0aa9f4423a118c9a2d2b4bcf178a5b Manual/Unit Testspull/3447/head
parent
0338f81116
commit
dcb67e97da
Loading…
Reference in new issue