diff --git a/packages/builder/src/registry.ts b/packages/builder/src/registry.ts index cf086c03a..3437d9560 100644 --- a/packages/builder/src/registry.ts +++ b/packages/builder/src/registry.ts @@ -427,7 +427,7 @@ export class OnChainRegistry extends CannonRegistry { } async publish(packagesNames: string[], chainId: number, url: string, metaUrl?: string): Promise { - console.log(bold(blueBright('\nPublishing package to the registry on-chain...\n'))); + console.log(bold(blueBright('\nPublishing package to the registry onchain...'))); const packageData = this._preparePackageData(packagesNames, chainId, url, metaUrl); return [await this._publishPackages([packageData])]; } @@ -435,19 +435,19 @@ export class OnChainRegistry extends CannonRegistry { async publishMany( toPublish: { packagesNames: string[]; chainId: number; url: string; metaUrl?: string }[] ): Promise { - console.log(bold(blueBright('\nPublishing packages to the registry on-chain...\n'))); + console.log(bold(blueBright('\nPublishing packages to the registry onchain...'))); const packageDatas = toPublish.map((p) => this._preparePackageData(p.packagesNames, p.chainId, p.url, p.metaUrl)); return [await this._publishPackages(packageDatas)]; } async unpublish(packagesNames: string[], chainId: number): Promise { - console.log(bold(blueBright('\nUnpublishing package to the registry on-chain...\n'))); + console.log(bold(blueBright('\nUnpublishing package to the registry onchain...'))); const packageData = this._preparePackageData(packagesNames, chainId); return [await this._unpublishPackages([packageData])]; } async unpublishMany(toUnpublish: { name: string[]; chainId: number }[]): Promise { - console.log(bold(blueBright('\nUnpublishing packages to the registry on-chain...\n'))); + console.log(bold(blueBright('\nUnpublishing packages to the registry onchain...'))); const packageDatas = toUnpublish.map((p) => this._preparePackageData(p.name, p.chainId)); return [await this._unpublishPackages(packageDatas)]; } @@ -759,12 +759,11 @@ export class OnChainRegistry extends CannonRegistry { ); } - console.log(`\nEstimated gas: ${simulatedGas} wei`); - + console.log(`Estimated gas required: ${simulatedGas} wei`); const gasPrice = BigInt(this.overrides.maxFeePerGas || this.overrides.gasPrice || (await this.provider.getGasPrice())); - console.log(`\nGas price: ${viem.formatEther(gasPrice)} ETH`); + console.log(`Current gas price: ${viem.formatEther(gasPrice)} ETH`); const transactionFeeWei = simulatedGas * gasPrice; - console.log(`\nEstimated transaction Fee: ${viem.formatEther(transactionFeeWei)} ETH\n\n`); + console.log(`Estimated transaction fee: ${viem.formatEther(transactionFeeWei)} ETH\n\n`); if (this.signer && userBalance < transactionFeeWei) { console.log( diff --git a/packages/cli/src/commands/unpublish.ts b/packages/cli/src/commands/unpublish.ts index 8dc1e06aa..c3f494f33 100644 --- a/packages/cli/src/commands/unpublish.ts +++ b/packages/cli/src/commands/unpublish.ts @@ -172,12 +172,12 @@ export async function unpublish({ cliSettings, options, fullPackageRef, chainId log(); log( - `\nSettings:\n - Max Fee Per Gas: ${ + `\nUnpublish Transaction Settings\n - Max Fee Per Gas: ${ overrides.maxFeePerGas ? overrides.maxFeePerGas.toString() : 'default' }\n - Max Priority Fee Per Gas: ${ overrides.maxPriorityFeePerGas ? overrides.maxPriorityFeePerGas.toString() : 'default' }\n - Gas Limit: ${overrides.gasLimit ? overrides.gasLimit : 'default'}\n` + - " - To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n" + "To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n" ); log(); diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts index d4564b792..cad38933f 100644 --- a/packages/cli/src/index.ts +++ b/packages/cli/src/index.ts @@ -486,12 +486,12 @@ applyCommandsConfig(program.command('publish'), commandsConfig.publish).action(a }); log( - `\nSettings:\n - Max Fee Per Gas: ${ + `\nPublish Transaction Settings\n - Max Fee Per Gas: ${ overrides.maxFeePerGas ? overrides.maxFeePerGas.toString() : 'default' }\n - Max Priority Fee Per Gas: ${ overrides.maxPriorityFeePerGas ? overrides.maxPriorityFeePerGas.toString() : 'default' }\n - Gas Limit: ${overrides.gasLimit ? overrides.gasLimit : 'default'}\n` + - " - To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n" + "To alter these settings use the parameters '--max-fee-per-gas', '--max-priority-fee-per-gas', '--gas-limit'.\n" ); await publish({