Cointags
Deployment
The CointagsFactory
contract is deployed deterministically using a turnkey account. The deployment process uses a helper contract, DeterministicDeployerAndCaller.
Prerequisites
Setting up environment variables
In the packages/cointags
directory:
- Copy
.env.example
to .env
- Populate the parameters in
.env
Deploying the Cointags Factory
- Deploy the
CointagsFactory
contract, you must pass the --ffi
flag to enable calling an external script to sign the deployment with turnkey:
forge script script/Deploy.s.sol $(chains {chainName} --deploy) --broadcast --verify --ffi
where {chainName}
is the emdash name of the chain you want to deploy on.
- Verify the factory contract. Since it is deployed with create2, foundry won't always recognize the deployed contract; verification instructions will be printed out in the logs.