text: import sdk from "./1-initialize-sdk.js";
  
  const appModule = sdk.getAppModule(
    "0x9195b7Fe61a2253DC48eA3770aEc4813F8F13745",
  );
  
  (async () => {
    try {
      const voteModule = await appModule.deployVoteModule({
        name: "MovieNightDao: Movie Choices",
  
        // This is the location of our governance token, our ERC-20 contract!
        votingTokenAddress: "0x1cDE52BF90dD9F988042Bc5C0B5D1E444b7258d9",
  
        // After a proposal is created, when can members start voting?
        // For now, we set this to immediately.
        proposalStartWaitTimeInSeconds: 0,
  
        // How long do members have to vote on a proposal when it's created?
        // Here, we set it to 24 hours (86400 seconds)
        proposalVotingTimeInSeconds: 24 * 60 * 60,
  
        // Will explain more below.
        votingQuorumFraction: 0,
  
        // What's the minimum # of tokens a user needs to be allowed to create a proposal?
        // I set it to 0. Meaning no tokens are required for a user to be allowed to
        // create a proposal.
        minimumNumberOfTokensNeededToPropose: "0",
      });
  
      console.log(
        "✅ Successfully deployed vote module, address:",
        voteModule.address,
      );
    } catch (err) {
      console.error("Failed to deploy vote module", err);
    }
  })();