Minimal Anti Collusion Infrastructure (MACI) / deployMerkleProofPolicy
Variable: deployMerkleProofPolicy()
constdeployMerkleProofPolicy: (args,factories?,signer?,quiet?) =>Promise<[MerkleProofPolicy,MerkleProofChecker,MerkleProofPolicyFactoryContract,MerkleProofCheckerFactoryContract]>
Defined in: contracts/build/ts/deploy.d.ts:156
Deploy a MerkleProofPolicy contract
Parameters
args
the arguments to deploy policy
root
Uint8Array | string
factories?
TDeployedProxyFactories<MerkleProofCheckerFactoryContract, MerkleProofPolicyFactoryContract>
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<[MerkleProofPolicy, MerkleProofChecker, MerkleProofPolicyFactoryContract, MerkleProofCheckerFactoryContract]>
the deployed MerkleProofPolicy contracts