Reviews and refactors the code in order to demonstrate D3L functionality#4
Merged
alxmirap merged 25 commits intoparitytech:cheme/externalstatefrom Apr 17, 2026
Merged
Conversation
…erations into a list of signed operations
- renamed `token-ledger-v1` to `token-ledger-service-v1`, to maintain the parallel with v2 - in the Tutorial, updated an example command since `cargo run` no longer requires expliction `-i` or `-o` options. However, there are some more changes in this command, and the documentation will have to be all reviewed later. - Added a paragraph describing the purpose of a new binary to convert user-friendly Json operations into fully-specified ones. - some changes to justfile to enable it to be invoked from any location, and not only from that of the `justfile`. Commands build-service, create-service, query-service and submit-file, and functions to get and save the last service id, have been successfully tested - added a command to connect to an RPC node, for the moment still unhandled. Ensures that we must have either this or output specified. - Extracts some functions in main.rs to make the code more readable.
… WorkPackage directly to it. WiP: still needs some refactoring to reduce the size of long functions.
Also, builder has new features: - ability to receive a user-friendly JSON file without signatures and valid AccountIds (ie Public Keys) - ability to connect to an RPC node and submit Work Package directly without having to encode it first.
Creates a Work Package builder able to submit encoded payloads directly to an RPC Node Also: rewrites and expands the 3rd part tutorial improves the experience with justfile by allowing commands to be called from different directories extensive clippy and formatting changes
Moves the basic structs and functions to token-ledger-common.
- Comments the code associated to preimages and segments
Adds an Extrinsic mode, to deliver the witness via extrinsic and outside the payload.
…ages making use of D3L
…ges: first package exports a segment, second package imports it. This includes also a deep refactoring of the code, and commenting out everything related to pre-images. Also adds a new example payload.
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.
Extracts the concept of Execution Mode, and refactors it to recognise 3 types of packages:
The builder has been expanded to create and submit the two related packages at the same time.
This PR should be merged on top of #2 and #3.