Add CreateTransaction operation and models to Ledger API client#95
Merged
Add CreateTransaction operation and models to Ledger API client#95
Conversation
…s to the API This commit introduces two new models, `CreateTransactionRequest` and `CreateTransactionRequestStatus`, to the `robosystems_client` API. These models are now included in the public API surface, enhancing the functionality related to transaction handling. The changes ensure that the client can support additional transaction-related operations effectively.
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.
Summary
Introduces the
CreateTransactionoperation for the Robo Ledger API, including new request/status models and client integration. This feature enables consumers of therobosystems_clientto create transactions through the ledger service.Key Accomplishments
op_create_transaction.pyimplementing the full create transaction operation within theextensions_robo_ledgerAPI module, including request construction, serialization, and response handling (~289 lines).CreateTransactionRequest— comprehensive model representing the transaction creation payload with full serialization/deserialization support (~248 lines).CreateTransactionRequestStatus— enum/status model representing the possible states of a create transaction request.LedgerClientwith methods to invoke the new create transaction operation, providing a clean high-level interface for callers.models/__init__.pyto export the newCreateTransactionRequestandCreateTransactionRequestStatusmodels, ensuring they are discoverable and importable from the top-level models package.Breaking Changes
None. This is a purely additive change — new files and new methods on the existing
LedgerClient. No existing interfaces or models were modified in a backward-incompatible way.Testing Notes
CreateTransactionRequestcorrectly serializes to the expected API payload format and deserializes responses properly.CreateTransactionRequestStatusenum values cover all states returned by the backend.LedgerClientcreate transaction method end-to-end against a running or mocked Ledger API instance.Infrastructure Considerations
🤖 Generated with Claude Code
Branch Info:
feature/create-transaction-opmainCo-Authored-By: Claude noreply@anthropic.com