Minimal Anti Collusion Infrastructure (MACI) / deployERC20VotesPolicy
Variable: deployERC20VotesPolicy()
constdeployERC20VotesPolicy: (args,factories?,signer?,quiet?) =>Promise<[ERC20VotesPolicy,ERC20VotesChecker,ERC20VotesPolicyFactoryContract,ERC20VotesCheckerFactoryContract]>
Defined in: contracts/build/ts/deploy.d.ts:202
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