Skip to content

Feature/rescue token admin - #1072

Merged
ONEONUORA merged 9 commits into
Fracverse:masterfrom
Toromo7:feature/rescue-token-admin
Sep 24, 2026
Merged

ONEONUORA merged 9 commits into
Fracverse:masterfrom
Toromo7:feature/rescue-token-admin

Conversation

@Toromo7

@Toromo7 Toromo7 commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

closes #994

Toromo7 and others added 8 commits June 26, 2026 13:39
… authorizations

- Add Nonce(Address) storage key for per-user nonce tracking
- Add NonceAlreadyUsed and InvalidSignature error types
- Implement get_nonce() to query current user nonce
- Implement pay_with_signature() for off-chain signed payments
  * Validates nonce matches current on-chain value
  * Increments nonce on successful execution
  * Verifies Ed25519 signature
  * Prevents replay attacks
- Add SignedPaymentAuth struct for authorization payload
- Add comprehensive test coverage for nonce behavior
- Document implementation in NONCE_IMPLEMENTATION.md

Acceptance Criteria:
✅ Store Nonce(Address) in storage
✅ Increment user nonce on successful payment execution
✅ Reject reused nonces with proper error handling
…kens

- Implement rescue_token function restricted to Admin address
- Transfer full balance of specified token from contract to target
- Add comprehensive test suite with 5 test cases
- Publish tkn_resc event for auditability
- Handle zero balance gracefully without panic
- Support rescuing multiple token types independently

Resolves issue: Allow admin to rescue accidentally transferred third-party Soroban tokens
@drips-wave

drips-wave Bot commented Sep 24, 2026

Copy link
Copy Markdown

@Toromo7 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@ONEONUORA
ONEONUORA merged commit 24a5558 into Fracverse:master Sep 24, 2026
10 of 11 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.

contract: CONTRACT: ADD EMERGENCY TOKEN SALVAGE FUNCTION FOR STUCK SAC ASSETS

2 participants