Skip to content

Commit

Permalink
(deploy) feat: Use address instead of PK in deployment summary, ...
Browse files Browse the repository at this point in the history
...and add mode to it.
  • Loading branch information
bingen committed Jan 20, 2025
1 parent 6c130da commit 4827cda
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
1 change: 1 addition & 0 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"bugs": "https://github.com/liquity/bold/issues",
"homepage": "https://github.com/liquity/bold#readme",
"devDependencies": {
"@ethereumjs/util": "^9.1.0",
"@nomicfoundation/hardhat-chai-matchers": "^1.0.0",
"@nomicfoundation/hardhat-foundry": "^1.0.1",
"@nomicfoundation/hardhat-network-helpers": "^1.0.0",
Expand Down
4 changes: 3 additions & 1 deletion contracts/utils/deploy-cli.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { $, chalk, echo, fs, minimist, question } from "zx";
import { bytesToHex, hexToBytes, privateToAddress } from "@ethereumjs/util";

const HELP = `
deploy - deploy the Liquity contracts.
Expand Down Expand Up @@ -195,7 +196,8 @@ export async function main() {
Deploying Liquity contracts with the following settings:
CHAIN_ID: ${options.chainId}
DEPLOYER: ${options.deployer}
MODE: ${options.mode}
DEPLOYER: ${bytesToHex(privateToAddress(hexToBytes(options.deployer)))}
DEPLOYMENT_MODE: ${options.mode}
SALT: ${options.salt ? options.salt : chalk.yellow("block.timestamp will be used !!")}
ETHERSCAN_API_KEY: ${options.etherscanApiKey && "(secret)"}
Expand Down
24 changes: 23 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4827cda

Please sign in to comment.