Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / deployERC20VotesPolicy

Variable: deployERC20VotesPolicy()

const deployERC20VotesPolicy: (args, factories?, signer?, quiet?) => Promise<[ERC20VotesPolicy, ERC20VotesChecker, ERC20VotesPolicyFactoryContract, ERC20VotesCheckerFactoryContract]>

Defined in: packages/contracts/build/ts/deploy.d.ts:189

Deploy a ERC20VotesPolicy contract

Parameters

args

the arguments to deploy policy

snapshotBlock

bigint

threshold

bigint

token

string

factories?

TDeployedProxyFactories<ERC20VotesCheckerFactoryContract, ERC20VotesPolicyFactoryContract>

the optional proxy factories to reuse for deployment

signer?

Signer

the signer to use to deploy the contract

quiet?

boolean

whether to suppress console output

Returns

Promise<[ERC20VotesPolicy, ERC20VotesChecker, ERC20VotesPolicyFactoryContract, ERC20VotesCheckerFactoryContract]>

the deployed ERC20VotesPolicy contracts