The script to deploy the proposal smart contract can be found in
This script is designed to deploy the TokenWeightedVoting smart contract on-chain. It sets up the necessary contract factory, defines the parameters for the contract constructor, and deploys the contract.
Running the Script
To run this deployment script, you need to use the Hardhat command line interface:
npx hardhat run scripts/deployProposalVotingContract.js --network <network-name>
This defines the address of the MOC token contract that the TokenWeightedVoting contract will interact with. This is the USDC address on the Sepolia testnet for testing purposes. In the production environment, this is to be set to the mainnet contract address for the MOC token.