I am trying to deploy multiple contracts using OpenZeppelin. The contracts deployed later have constructor arguments from the contracts deployed earlier.
A simplified deployment structure:
- token1: ERC-20
- token2: ERC-20
- tokenSwap(token1.address, token2.address)
- None of the contracts need any proxy of fancy features in this point, as it is a testnet deployment
I did not figure out how to write a OZ project file that has non-hardcoded constructor arguments? Is this possible? Are there any examples for this, or any other complex open source projects? The documentation here is a bit light: https://docs.openzeppelin.com/cli/2.7/configuration#project.json