Skip to content

Add CRUD methods for information blocks in ledger client#121

Merged
jfrench9 merged 1 commit into
mainfrom
feature/ib-facade-fix
May 20, 2026
Merged

Add CRUD methods for information blocks in ledger client#121
jfrench9 merged 1 commit into
mainfrom
feature/ib-facade-fix

Conversation

@jfrench9
Copy link
Copy Markdown
Member

Summary

This PR extends the LedgerClient with new facade methods for managing information blocks, adding full create, update, and delete capabilities.

Key Accomplishments

  • Added create_information_block method: Enables creation of new information blocks through the ledger client facade, providing a clean interface for consumers.
  • Added update_information_block method: Supports updating existing information blocks by ID with new data.
  • Added delete_information_block method: Allows deletion of information blocks by ID through the client.
  • Maintains consistency with the existing client method patterns and API conventions used throughout the LedgerClient.

Changes

  • robosystems_client/clients/ledger_client.py: Added 66 lines implementing three new public methods (create_information_block, update_information_block, delete_information_block) that expose information block management operations through the ledger client facade.

Breaking Changes

None. This is a purely additive change that introduces new methods without modifying existing interfaces.

Testing Notes

  • Verify that each new method correctly delegates to the underlying API endpoints for information block CRUD operations.
  • Test error handling for invalid or missing information block IDs on update and delete.
  • Confirm that request payloads and response parsing align with the expected API contract.
  • Validate that existing ledger client functionality remains unaffected.

Infrastructure Considerations

  • Ensure that the backend API endpoints for information block management are deployed and available before consumers begin using these new client methods.
  • No new dependencies are introduced; the changes leverage existing HTTP client infrastructure within the LedgerClient.

🤖 Generated with Claude Code

Branch Info:

  • Source: feature/ib-facade-fix
  • Target: main
  • Type: feature

Co-Authored-By: Claude noreply@anthropic.com

@jfrench9 jfrench9 merged commit 1ca88dd into main May 20, 2026
1 check passed
@jfrench9 jfrench9 deleted the feature/ib-facade-fix branch May 20, 2026 01:57
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.

1 participant