Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / deploySignupTokenPolicy

Variable: deploySignupTokenPolicy()

const deploySignupTokenPolicy: (args, factories?, signer?, quiet?) => Promise<[TokenPolicy, TokenChecker, TokenPolicyFactoryContract, TokenCheckerFactoryContract]>

Defined in: contracts/build/ts/deploy.d.ts:191

Deploy a TokenPolicy contract

Parameters​

args​

the arguments to deploy policy

token​

string

factories?​

TDeployedProxyFactories<TokenCheckerFactoryContract, TokenPolicyFactoryContract>

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<[TokenPolicy, TokenChecker, TokenPolicyFactoryContract, TokenCheckerFactoryContract]>

the deployed SignupTokenPolicy contract