-
Notifications
You must be signed in to change notification settings - Fork 10
Subspaces CreatePtr Data + getAllPtrs + listAllSpaces #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
spacesops
wants to merge
20
commits into
spacesprotocol:subspaces
Choose a base branch
from
spacesops:subspaces-createptr-data
base: subspaces
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Subspaces CreatePtr Data + getAllPtrs + listAllSpaces #120
spacesops
wants to merge
20
commits into
spacesprotocol:subspaces
from
spacesops:subspaces-createptr-data
Conversation
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
Update README with Subspaces development details
- Add parse_space_for_json to parse covenant data into records format (like getallptrs) - Fix authorize command to properly parse @space names using from_str_unprefixed - Add --memo option to send command with OP_RETURN output (max 80 chars, hex-encoded) - Add --with-memos flag to listtransactions to display decoded memo text from OP_RETURN outputs - Fix ResolvableTarget parsing to use from_str_unprefixed for space names
Fix data inconsistency in RevokeReason::Expired handling that caused panics when querying spaces that were revoked due to expiration. Root cause: Expired revocations only removed Outpoint->Spaceout mapping but left Space->Outpoint mapping, creating inconsistent state. Changes: - Remove Space->Outpoint mapping in Expired revocation handler - Handle inconsistencies gracefully in get_space_info by returning None and cleaning up orphaned Space->Outpoint mappings instead of panicking
Fix data inconsistency handling in prepare_open that caused panics when opening spaces that were revoked due to expiration. Root cause: When an outpoint exists but spaceout doesn't (due to inconsistent state from Expired revocations), the code would panic with 'spaceout exists' instead of handling it gracefully. Changes: - Replace expect() with match statement to handle None case - Treat missing spaceout as new space (space was revoked, so it's effectively not registered anymore)
Fix space revocation bug
Fix macos gh actions
Fix rust lifetimes lint
Fix wallets recovered via mnemonic
Fix lint errors
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.
Adds an optional --data parameter to createptr to allow initial setting of the "data" field with arbitrary hex data.
The hex data can contain multiple items, parsed by schema as implemented in the spaces-hex-tool.
Also adds a getallptrs command to return all ptrs on the chain and decode the available data by schema.
Also adds a listallspaces command to return all spaces on the chain in an owned state with optional --with-data param to limited those returned having non-null "data".