From 88eb61b3fe20b3438c7a26ff23051862d4da88eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8r=E2=88=82=C2=A1?= Date: Tue, 11 Jul 2023 13:58:00 +0200 Subject: [PATCH] Updating the internal deployment script --- modules/client/test/helpers/deployContracts.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/modules/client/test/helpers/deployContracts.ts b/modules/client/test/helpers/deployContracts.ts index 251190fde..2c7a831e4 100644 --- a/modules/client/test/helpers/deployContracts.ts +++ b/modules/client/test/helpers/deployContracts.ts @@ -213,12 +213,28 @@ export async function deploy(): Promise { id("REGISTER_PLUGIN_REPO_PERMISSION"), ); + // Deploying the base contracts for the Token Voting Plugin + const governanceErc20Factory = new aragonContracts + .GovernanceERC20__factory(); + const governanceWrappedErc20Factory = new aragonContracts + .GovernanceWrappedERC20__factory(); + const governanceErc20Instance = await governanceErc20Factory.connect( + deployOwnerWallet, + ).deploy(AddressZero, "Test Token", "TTK", { amounts: [], receivers: [] }); + const governanceErc20WrappedInstance = await governanceWrappedErc20Factory + .connect( + deployOwnerWallet, + ).deploy(AddressZero, "Wrapped Test Token", "wTTK"); + // Token Voting Plugin const tokenVotingSetupFactory = new aragonContracts .TokenVotingSetup__factory(); const tokenVotingPluginSetup = await tokenVotingSetupFactory .connect(deployOwnerWallet) - .deploy(); + .deploy( + governanceErc20Instance.address, + governanceErc20WrappedInstance.address, + ); const tokenRepoAddress = await deployPlugin( "token-voting",