@zoralabs/comments-contracts
v0.0.2
Published
## Deployment
Downloads
128
Maintainers
Keywords
Readme
Comments
Deployment
The Comments
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/comments
directory:
- Copy
.env.example
to.env
- Populate the parameters in
.env
Deploying the Comments Contracts
- Deploy the
Comments
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 proxy contracts. Since they are deployed with create2, foundry wont always recognize the deployed contract, so verification needs to happen manually:
for the comments contract:
forge verify-contract 0x7777777C2B3132e03a65721a41745C07170a5877 Comments $(chains {chainName} --verify) --constructor-args 0x000000000000000000000000064de410ce7aba82396332c5837b4c6b96108283
for the caller and commenter contract:
forge verify-contract 0x77777775C5074b74540d9cC63Dd840A8c692B4B5 CallerAndCommenter $(chains {chainName} --verify) --constructor-args 0x000000000000000000000000064de410ce7aba82396332c5837b4c6b96108283