onflow / contract-updater

Enabling delayed contract updates to a wrapped account at or beyond a specified block height
The Unlicense
4 stars 9 forks source link

Stable cadence refactor #6

Closed sisyphusSmiling closed 4 months ago

sisyphusSmiling commented 1 year ago

Related: #1

This PR updates repo contents for Cadence 1.0 compatibility. While the MigrationStagingContract won't be used after 1.0 migration, staging and updating the contract will enhance auditability and transparency post-migration, enabling the migrated contracts can be validated against the code as staged. Migrating the contract also allows us to clean up the account after some time if need be.

Refactors for StagedContractUpdates are also included. Although this contract was not used as a mechanism for migration as originally intended, others may still find it useful moving forward to coordinate updates to distributed contract system.

sisyphusSmiling commented 5 months ago

Update: As of this writing, MigrationStagingContract migrated successfully in a local migration and has been staged for inclusion in the subsequent Testnet migration.

codecov-commenter commented 5 months ago

Codecov Report

Attention: Patch coverage is 93.44262% with 4 lines in your changes missing coverage. Please review.

Please upload report for BASE (stable-cadence@735a84b). Learn more about missing BASE report.

Files Patch % Lines
contracts/DependencyAudit.cdc 93.02% 3 Missing :warning:
.../staged-contract-updates/StagedContractUpdates.cdc 87.50% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## stable-cadence #6 +/- ## ================================================= Coverage ? 83.89% ================================================= Files ? 6 Lines ? 298 Branches ? 0 ================================================= Hits ? 250 Misses ? 48 Partials ? 0 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.