Skip to content

Add API for intermediate delegable operation#23

Open
LKY-stephen wants to merge 5 commits into
mainfrom
22-feature-add-support-for-ptb-execution
Open

Add API for intermediate delegable operation#23
LKY-stephen wants to merge 5 commits into
mainfrom
22-feature-add-support-for-ptb-execution

Conversation

@LKY-stephen
Copy link
Copy Markdown
Collaborator

@LKY-stephen LKY-stephen commented Jan 6, 2026

This upgrade introduces two changes:

  1. Enable wrapped receipt for transfer and store the receipt struct. This is typically used for a delegator to hold the object onchain (i.e., a user can deposit through an onchain object, which will store the wrapped receipt in the dynamic field, a delegator admin can help refresh (withdrawal, claim, and deposit again) for the user without imposing additional permission). The feature is controlled through a new option key KEY_SUPPORT_RECEIPT_WRAPER_EXTENSION that can only be opened once by the admin cap. This is because once opened, there is no way to force all wrapped receipts to unwrap and become non-transferable.

  2. Add 3 methods (do_deposit, do_withdrawal, do_claim) such that PTB can accomplish a more complicated flow in one transaction to save cost and respect atomicity.

  3. Add a configuration to allow stopping loyalty token generation post maturity.

PS: If you have an issue when running the test locally, remove the move.lock file temporary.
PS2: Consistency has been tested through the staking website on devnet

@LKY-stephen LKY-stephen linked an issue Jan 6, 2026 that may be closed by this pull request
5 tasks
@LKY-stephen LKY-stephen self-assigned this Jan 7, 2026
@loverdos
Copy link
Copy Markdown

@nonast @davidrotari19 your assistance (review) is requested.

@LKY-stephen LKY-stephen force-pushed the 22-feature-add-support-for-ptb-execution branch from f0ce034 to d823168 Compare January 22, 2026 10:55
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.

[Feature] Add support for PTB execution

2 participants