The Extend Action
This handle is awesome - may I please have it for longer?
Note: The refund action code be found here.
Most users will want to extend the time their handle registrations. Extending is simpler than a registration because the slot has already been created, meaning some checks (e.g., left vs. right neighbor) can be skipped. Moreover, extending doesn't require a commit-reveal pattern, as the handle is already known and belongs to an owner. The process can thus be compressed to one transaction using offer announcements to assert payment.
The action also creates a puzzle announcement that be asserted to ensure the dApp singleton is running the right action with the right parameters. For the extend action, the announcement prefix, e
, is concatenated to (sha256tree (total_price . handle))
.
Written by yakuhito from FireAcademy.io on Feb 15th, 2025.
Last updated