@zoralabs/cointags-contracts
v0.1.2
Published
## Deployment
Maintainers
Keywords
Readme
Cointags
Deployment
The CointagsFactory contract is deployed deterministically using a turnkey account. The deployment process uses a helper contract, DeterministicDeployerAndCaller.
Prerequisites
- Ensure you have Forge installed.
- Familiarity with turnkey accounts is recommended.
Setting up environment variables
In the packages/cointags directory:
- Copy
.env.exampleto.env - Populate the parameters in
.env
Deploying the Cointags Factory
- Deploy the
CointagsFactorycontract, you must pass the--ffiflag to enable calling an external script to sign the deployment with turnkey:
forge script script/Deploy.s.sol $(chains {chainName} --deploy) --broadcast --verify --ffiwhere {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.
