Skip to content

Post deployment verification script#1727

Merged
maurelian merged 2 commits intodevelopfrom
maurelian/eng-1630-post-deployment-verification-script
Nov 11, 2021
Merged

Post deployment verification script#1727
maurelian merged 2 commits intodevelopfrom
maurelian/eng-1630-post-deployment-verification-script

Conversation

@maurelian
Copy link
Copy Markdown
Contributor

@maurelian maurelian commented Nov 9, 2021

This is an early iteration on the script to validate deployments. I'd like to get it reviewed, or even merged, to validate the direction.

How to test:

  1. export CONTRACTS_RPC_URL=https://kovan.infura.io/v3/YOURKEYHERE
  2. Run this:
npx hardhat validate:address-dictator \
--dictator 0x9816d75a8FEc3a26995aF7C1900215541Be2a210 \
--manager 0x96df6a39fB4Da2BF154e527f2Aa73B0992B15e28 \
--multisig 0x54E2e4B3A7C3045Dcf1e927b890D33BACCcCE249

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Nov 9, 2021

🦋 Changeset detected

Latest commit: 5c62a2b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@eth-optimism/contracts Patch
@eth-optimism/batch-submitter Patch
@eth-optimism/data-transport-layer Patch
@eth-optimism/message-relayer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch 2 times, most recently from a391a63 to 70c46bf Compare November 9, 2021 20:27
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 9, 2021

Codecov Report

Merging #1727 (5c62a2b) into develop (29eedf5) will increase coverage by 0.05%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #1727      +/-   ##
===========================================
+ Coverage    71.81%   71.87%   +0.05%     
===========================================
  Files           69       67       -2     
  Lines         2303     2176     -127     
  Branches       344      327      -17     
===========================================
- Hits          1654     1564      -90     
+ Misses         649      612      -37     
Flag Coverage Δ
batch-submitter 61.56% <ø> (ø)
contracts 87.96% <ø> (ø)
core-utils 56.53% <ø> (ø)
data-transport-layer 38.23% <ø> (ø)
message-relayer ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/message-relayer/src/relay-tx.ts
packages/message-relayer/hardhat.config.ts

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 29eedf5...5c62a2b. Read the comment docs.

@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch from a578f38 to 439a515 Compare November 10, 2021 05:12
@maurelian maurelian marked this pull request as ready for review November 10, 2021 05:12
@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch 2 times, most recently from 59ea8de to 714ac0d Compare November 10, 2021 16:25
@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch 2 times, most recently from 625d036 to 97287a1 Compare November 10, 2021 19:31
Copy link
Copy Markdown
Collaborator

@ben-chain ben-chain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional validation which I can think of is:

  • verify that AM.owner == multisig.address

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reminder on these

Base automatically changed from regenesis/0.5.0 to develop November 10, 2021 22:08
@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch 7 times, most recently from 7818da5 to df241ab Compare November 11, 2021 14:23
Comment on lines 4 to 16
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Improves the UX of running these scripts, by allowing the user to review and process each step before moving on.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes the wall of text easier to read.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind of an ugly function, but it makes the scripts much cleaner.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this more consistent with the other prompts.

@smartcontracts smartcontracts force-pushed the maurelian/eng-1630-post-deployment-verification-script branch from df241ab to af390ba Compare November 11, 2021 14:39
@smartcontracts
Copy link
Copy Markdown
Contributor

Rebased on develop

@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch 2 times, most recently from 1a76419 to 9064681 Compare November 11, 2021 14:48
@github-actions github-actions bot added the A-integration Area: integration tests label Nov 11, 2021
@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch from 132e6eb to 984c0fb Compare November 11, 2021 15:18
@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch from 984c0fb to 8165e12 Compare November 11, 2021 15:26
feat: Add task-utils, with interactive user prompt
feat: Add colors to printed strings
fix: Detect network name
refactor: Extract comparison and logs into printComparison()
feat: validate source code of all updated addresses
fix: await isHardhatNode
fix: Remove todo comments
refactor: Extract to getContractArtifacts
feat: Add validation of libAddressManager

fix: allow passing URL as an arg

fix: batches contract name

improve logging

Validation: lots of logging improvements

feat: Add validate ChugSplashDictator
fix: truncateLongString should return at least 32 bytes
refactor: Rename task-utils to validation-utils

fixup! feat: Add validate ChugSplashDictator fix: truncateLongString should return at least 32 bytes refactor: Rename task-utils to validation-utils
@maurelian maurelian force-pushed the maurelian/eng-1630-post-deployment-verification-script branch from 8165e12 to 5c62a2b Compare November 11, 2021 15:28
@maurelian maurelian merged commit d59341a into develop Nov 11, 2021
@maurelian maurelian deleted the maurelian/eng-1630-post-deployment-verification-script branch November 11, 2021 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-integration Area: integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants