Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a CLI tool to deploy the contracts using Foundry (#86)
`deploy` can be launched with `--help` to see its documentation: ``` $ ./deploy --help deploy - deploy the Liquity contracts. Usage: ./deploy [NETWORK_PRESET] [OPTIONS] Arguments: NETWORK_PRESET A network preset, which is a shorthand for setting certain options such as the chain ID and RPC URL. Options take precedence over network presets. Available presets: - local: Deploy to a local network - mainnet: Deploy to the Ethereum mainnet - tenderly-devnet: Deploy to a Tenderly devnet - liquity-testnet: Deploy to the Liquity v2 testnet Options: --chain-id <CHAIN_ID> Chain ID to deploy to. --deployer <DEPLOYER> Address or private key to deploy with. Requires a Ledger if an address is used. --ledger-path <LEDGER_PATH> HD path to use with the Ledger (only used when DEPLOYER is an address). --etherscan-api-key <ETHERSCAN_API_KEY> Etherscan API key to verify the contracts (required when verifying with Etherscan). --help, -h Show this help message. --open-demo-troves Open demo troves after deployment (local only). --rpc-url <RPC_URL> RPC URL to use. --verify Verify contracts after deployment. --verifier <VERIFIER> Verification provider to use. Possible values: etherscan, sourcify. --verifier-url <VERIFIER_URL> The verifier URL, if using a custom provider. Note: options can also be set via corresponding environment variables, e.g. --chain-id can be set via CHAIN_ID instead. Parameters take precedence over variables. ```
- Loading branch information