From cc74084a4369764280de0d73e597aaab5deae533 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Dan?= Date: Thu, 15 Jun 2023 15:24:57 -0400 Subject: [PATCH] feat: return addresses of all contracts --- scripts/deploy-topos-msg-protocol.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/deploy-topos-msg-protocol.ts b/scripts/deploy-topos-msg-protocol.ts index 6561912..f0222a0 100644 --- a/scripts/deploy-topos-msg-protocol.ts +++ b/scripts/deploy-topos-msg-protocol.ts @@ -88,7 +88,7 @@ const main = async function (...args: string[]) { 4_000_000 ) - await processContract( + const erc20MessagingAddresss = await processContract( 'ERC20Messaging', wallet, erc20MessagingJSON, @@ -98,6 +98,13 @@ const main = async function (...args: string[]) { ) setSubnetId(toposCoreProxyAddress, wallet, subnetId) + + return ` + export TOPOS_CORE_CONTRACT_ADDRESS=${toposCoreAddress} + export TOPOS_CORE_PROXY_CONTRACT_ADDRESS=${toposCoreProxyAddress} + export TOKEN_DEPLOYER_CONTRACT_ADDRESS=${tokenDeployerAddress} + export ERC20_MESSAGING_CONTRACT_ADDRESS=${erc20MessagingAddresss} + ` } const sanitizeHexString = function (hexString: string) {