Clawback v1 - #815
Open
Jsewill wants to merge 13 commits into
Open
Conversation
added 13 commits
December 3, 2025 02:49
…d to the clawbacks table and on CoinRecord.
…. Continued work toward clawbackv1 claiming.
…tal bump in pnpm version.
Bring clawback_v1 up to date with main (SDK 0.33+, complete_spends prepare/spend refactor, create_transaction, apps work) while retaining V1 version column, claim path, and ClawbackV1 child kind scaffolding.
Sync V1 coins via REMARK parse, keep custody on the sender until claim, enable claim/claw-back/finalize UI eligibility, and pin the local SDK with parse_child and claim helpers. Sage still only issues V2 clawbacks.
Mempool confirmation now matches the correct coin and only drops pending state on real on-chain updates, so claw-backs no longer flash as available mid-flight. Also wire claim ACL/fees, keep V1 coins listed for both parties, and show Spent/Pending in the clawback table.
V1 stores a relative timelock, so formatting it as unix produced epoch dates.
V1 senders can claw anytime until claimed; unlock times use numeric birth+timelock math. V2 receivers see pending coins again before expiry.
Align claim UI with backend when block time is missing, require on-chain confirmation before claim, and block clawback actions on offer-locked coins.
Replace the local path dependency with Jsewill/chia-wallet-sdk at a321b8c.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stuff for clawback v1 support.
See companion PR at xch-dev/chia-wallet-sdk#424