Skip to content

Feat: adapter v4 - #79

Merged
JonathanAmenechi merged 9 commits into
mainfrom
feat/adapter-v4
Sep 3, 2025
Merged

Feat: adapter v4#79
JonathanAmenechi merged 9 commits into
mainfrom
feat/adapter-v4

Conversation

@JonathanAmenechi

Copy link
Copy Markdown
Collaborator

Overview

Description

Testing instructions

Types of changes

  • Refactor/enhancement
  • Bug fix/behavior correction
  • New feature
  • Breaking change
  • Other, additional

Notes

Status

  • Prefix PR title with WIP if necessary (changes not yet made).
  • Add tests to cover changes as needed.
  • Update documentation/changelog as needed.
  • Verify all tests run correctly in CI and pass.
  • Ready for review/merge.

@JonathanAmenechi
JonathanAmenechi marked this pull request as ready for review July 10, 2025 00:58
Copilot AI review requested due to automatic review settings July 10, 2025 00:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR replaces the “emergency resolution” workflow with a “manual resolution” flow, updating the safety period, method names, events, storage fields, and all tests accordingly. It also introduces a new deployment script and removes the old one.

  • Rename emergency flags and resolution functions/events to manual equivalents with a new SAFETY_PERIOD constant
  • Update interface, implementation, tests, and gas snapshot to reflect manual resolution
  • Add DeployAdapter.s.sol, remove Deploy.s.sol, and update deploy_adapter.sh

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/UmaCtfAdapter.sol Renamed EMERGENCY_SAFETY_PERIOD, emergencyResolve, flags, storage fields, and events to manual equivalents; updated safety period to 1 hour
src/interfaces/IUmaCtfAdapter.sol Updated storage field and event names/docs for manual resolution
src/test/UmaCtfAdapter.t.sol Renamed all test functions and expectations from emergency to manual resolution
src/deploy/DeployAdapter.s.sol Added new deployment script using deployAdapter
src/deploy/Deploy.s.sol Removed old Deploy script
deploy/scripts/deploy_adapter.sh Updated Forge invocation to DeployAdapter and added admin arg
.gas-snapshot Regenerated snapshot to include manual-resolution test costs
Comments suppressed due to low confidence (1)

src/test/UmaCtfAdapter.t.sol:1071

  • [nitpick] Test function name has an extra 'd'. Rename to testPriceDisputedResolveManually for consistency.
    function testPriceDisputedResolveManuallyd() public {

Comment thread src/interfaces/IUmaCtfAdapter.sol Outdated
@JonathanAmenechi
JonathanAmenechi merged commit 8b76cc9 into main Sep 3, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants