farcasterxyz / contracts

Implementation of the Farcaster contracts
https://www.farcaster.xyz/
MIT License
340 stars 122 forks source link

chore: add key registry to deploy script #288

Closed horsefacts closed 1 year ago

horsefacts commented 1 year ago

Motivation

We're missing a deploy script for the new KeyRegistry.

Change Summary

Add KeyRegistry to Deploy.s.sol and add a standalone KeyRegistry.s.sol script to deploy only the key registry. I'd like to do a larger pass to make some changes to all the deploy scripts at once, but for now this adds KeyRegistry and follows our established patterns.

Merge Checklist

Choose all relevant options below by adding an x now or at any time before submitting for review

Additional Context

Close #268


PR-Codex overview

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

github-actions[bot] commented 1 year ago

Coverage after merging horsefacts/add-key-registry-to-deploy into main will be

98.16%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   Bundler.sol100%100%100%100%
   FnameResolver.sol96.30%75%100%100%122
   IdRegistry.sol100%100%100%100%
   KeyRegistry.sol100%100%100%100%
   StorageRent.sol98.93%98.53%100%98.99%547, 549
src/lib
   TransferHelper.sol0%0%0%0%15, 15, 15, 25–26, 26, 26
horsefacts commented 1 year ago

Gonna merge this for now and go ahead with the larger deploy script refactor mentioned above.