feat(mirror-coin): lifecycle driven by .dig presence, created and reclaimed per epoch - #379
Draft
MichaelTaylor3d wants to merge 2 commits into
Draft
feat(mirror-coin): lifecycle driven by .dig presence, created and reclaimed per epoch#379MichaelTaylor3d wants to merge 2 commits into
MichaelTaylor3d wants to merge 2 commits into
Conversation
…FIED, not wired in) Salvaged from a lane that hit the weekly usage cap mid-implementation. Pushed so the work is durable, NOT because it is finished. State, stated honestly so the next lane does not mistake this for working code: * `mod mirror;` is NOT declared anywhere, so the module is inert. It is not compiled as part of the crate, and a green CI on this commit says nothing about it. * It has never been compiled or tested. Treat every signature as a proposal. * The lane's own last message said it was about to start "the two structural pieces: the scoped key and the MirrorSpends newtype" — so the signing path is the part most likely to be missing or wrong. What is here: mod.rs (the design rationale), plan.rs, presence.rs, spends.rs. The design decisions recorded in mod.rs are worth keeping even if the code is rewritten — particularly that reclaims run FIRST in every pass and are NEVER gated on funds, because a reclaim returns collateral that may fund the creates behind it, and a wallet at zero must not be unable to recover what it already locked. Refs #377 Co-Authored-By: Claude <noreply@anthropic.com>
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.
DO NOT MERGE — lane in progress.
Implements the mirror-coin lifecycle (dig-node#377): presence of a
.digfile on disk drivescreation of an on-chain mirror coin locking 20 $DIG for that
(store, root, owner, epoch), andits disappearance drives reclaim of the collateral.
Closes #377
Parent epic: https://github.com/DIG-Network/dig_ecosystem/issues/3166
Status