Skip to content

Commit

Permalink
Updating the internal deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed Jul 11, 2023
1 parent 00249b3 commit 88eb61b
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion modules/client/test/helpers/deployContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,28 @@ export async function deploy(): Promise<Deployment> {
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",
Expand Down

0 comments on commit 88eb61b

Please sign in to comment.