WIP: [CI SKIP] Add pause-only guardian and state-preserving migration #7

Draft
PlasticDigits wants to merge 2 commits from security/otc-pause-guardian-publication into main
Owner

Adds emergency pause controls for new OTC swaps. The existing owner or a distinct pause-only guardian can pause; only the owner can resume or manage the guardian. Existing price/configuration, CW20 accounting, quotes and owner recovery remain available.

Pause state uses a separate storage Item. The v0.2.0 pause upgrade preserves existing config, totals and unrelated bytes; the specialized v0.1.0 USDC-to-USDT migration retains its original wire shape and checks. Paused CW20 Send transactions revert atomically without payment or accounting changes.

Validation: eight focused pause/role/storage/refund checks and nine migration checks passed locally; schema export and formatting checks passed. Independent source review approved the contract/test implementation, and a separate documentation review confirmed this publication content. CI was not run for this draft; no CI PASS is claimed.

Deployment is outside this change. Actual contract code, admin and owner/guardian identities require separate verification. No automatic resume is added.

Adds emergency pause controls for new OTC swaps. The existing owner or a distinct pause-only guardian can pause; only the owner can resume or manage the guardian. Existing price/configuration, CW20 accounting, quotes and owner recovery remain available. Pause state uses a separate storage Item. The v0.2.0 pause upgrade preserves existing config, totals and unrelated bytes; the specialized v0.1.0 USDC-to-USDT migration retains its original wire shape and checks. Paused CW20 Send transactions revert atomically without payment or accounting changes. Validation: eight focused pause/role/storage/refund checks and nine migration checks passed locally; schema export and formatting checks passed. Independent source review approved the contract/test implementation, and a separate documentation review confirmed this publication content. CI was not run for this draft; no CI PASS is claimed. Deployment is outside this change. Actual contract code, admin and owner/guardian identities require separate verification. No automatic resume is added.
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'security/otc-pause-guardian-publication:security/otc-pause-guardian-publication'
git switch 'security/otc-pause-guardian-publication'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/cl8y-otc-terraclassic!7
No description provided.