Address feedback about logging and links (#44)

pull/47/head
J M Rossy 2 years ago committed by GitHub
parent 58a742d83f
commit da2954b9c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md
  2. 14
      src/warp/WarpRouteDeployer.ts

@ -80,4 +80,4 @@ yarn ts-node scripts/test-warp-transfer.ts \
### Deploying a Warp UI
If you'd like to create a web-based user interface for your warp routes, see the [Warp UI Template repository](https://github.com/hyperlane-xyz/hyperlane-warp-ui-template)
If you'd like to create a web-based user interface for your warp routes, see the [Warp UI documentation](https://docs.hyperlane.xyz/docs/deploy/deploy-warp-route/deploy-the-ui-for-your-warp-route)

@ -96,6 +96,9 @@ export class WarpRouteDeployer {
baseType,
baseTokenAddr,
);
this.logger(
`Using base token metadata: Name: ${baseTokenMetadata.name}, Symbol: ${baseTokenMetadata.symbol}, Decimals: ${baseTokenMetadata.decimals} `,
);
const owner = await this.signer.getAddress();
const configMap: ChainMap<HypERC20Config> = {
@ -113,6 +116,10 @@ export class WarpRouteDeployer {
.defaultIsmInterchainGasPaymaster,
},
};
this.logger(
`HypERC20Config config on base chain ${baseChainName}:`,
JSON.stringify(configMap[baseChainName]),
);
for (const synthetic of synthetics) {
const sChainName = synthetic.chainName;
@ -131,6 +138,10 @@ export class WarpRouteDeployer {
synthetic.interchainGasPaymaster ||
mergedContractAddresses[sChainName].defaultIsmInterchainGasPaymaster,
};
this.logger(
`HypERC20Config config on synthetic chain ${sChainName}:`,
JSON.stringify(configMap[sChainName]),
);
}
return {
configMap,
@ -146,7 +157,7 @@ export class WarpRouteDeployer {
chain: ChainName,
type: TokenType,
address: types.Address,
) {
): Promise<TokenMetadata> {
if (type === TokenType.native) {
return (
this.multiProvider.getChainMetadata(chain).nativeToken ||
@ -226,7 +237,6 @@ export class WarpRouteDeployer {
name,
symbol,
decimals,
logoURI: 'SET_IMG_URL_HERE',
hypCollateralAddress: hypTokenAddr,
};

Loading…
Cancel
Save