Skip to content

feat: add wrapped tokens contract for cross-chain assets#315

Open
Jamixy wants to merge 2 commits into
MindFlowInteractive:mainfrom
Jamixy:feat/wrapped-tokens-contract
Open

feat: add wrapped tokens contract for cross-chain assets#315
Jamixy wants to merge 2 commits into
MindFlowInteractive:mainfrom
Jamixy:feat/wrapped-tokens-contract

Conversation

@Jamixy

@Jamixy Jamixy commented Jul 26, 2026

Copy link
Copy Markdown
  • Implement WrappedTokensContract with full mint/burn lifecycle
  • Multi-operator confirmation threshold for wrap requests
  • Replay prevention via source chain tx ID tracking
  • Fee collection system with configurable fee_bps and min_fee
  • Emergency pause/unpause with operator and admin controls
  • SEP-41 compatible token ops (transfer, approve, transfer_from)
  • Supply tracking and custody statistics
  • Comprehensive test suite with 20 test cases

close #302

Jamixy added 2 commits July 26, 2026 14:41
- Implement WrappedTokensContract with full mint/burn lifecycle
- Multi-operator confirmation threshold for wrap requests
- Replay prevention via source chain tx ID tracking
- Fee collection system with configurable fee_bps and min_fee
- Emergency pause/unpause with operator and admin controls
- SEP-41 compatible token ops (transfer, approve, transfer_from)
- Supply tracking and custody statistics
- Comprehensive test suite with 20 test cases
- Merkle tree claim verification (sorted-pair sha256, OpenZeppelin-compatible)
- Distribution creation: Airdrop, Incentive, PlayerReward, Grant kinds
- Batch distribution creation (up to 20 per tx)
- Per-claimer claim history and full claim records
- Expiry enforcement with lazy status update on claim attempt
- mark_expired housekeeping callable by anyone after expiry
- Unclaimed token recovery by creator or admin post-expiry
- Admin cancel with immediate refund to creator
- Fee-free: all tokens flow directly to claimers
- 20 comprehensive tests covering all acceptance criteria
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.

Wrapped Token Bridge Contract

1 participant