Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / deployMerkleProofPolicy

Variable: deployMerkleProofPolicy()

const deployMerkleProofPolicy: (args, factories?, signer?, quiet?) => Promise<[MerkleProofPolicy, MerkleProofChecker, MerkleProofPolicyFactoryContract, MerkleProofCheckerFactoryContract]>

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

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