@zoralabs/cointags-contracts
v0.1.2
Published
## Deployment
Downloads
231
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.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.