feat(sdk-core): add dynamic reserve swap protocol clients#54
Draft
joshglogau wants to merge 4 commits into
Draft
feat(sdk-core): add dynamic reserve swap protocol clients#54joshglogau wants to merge 4 commits into
joshglogau wants to merge 4 commits into
Conversation
Expose a typed sysio.tokens domain facade over the generated system-contract proxy. Normalize canonical token metadata and chain bindings, support active and chain-scoped discovery, join deployable assets, and cover registry reads with focused unit tests.
Add a typed sysio.uwrit facade for WIRE-origin swap submission, queue inspection, normalized request history, and live protocol configuration. Export the canonical WIRE/WIRE/PRIMARY sentinel, document reserve-swap composition, and verify action authorization and lifecycle normalization in unit tests.
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
sysio.chainsdiscovery client with the shared sysio contract proxy.sysio.tokensclient for token metadata, chain deployments, and active asset discovery.sysio.uwritclient for configuration, queues, underwriting requests, and WIRE-origin swap submission.Why
The next Hub swap flow must derive assets, routes, quotes, and settlement state from deployed system contracts instead of hardcoded pool catalogs. These domain facades keep ABI preparation, protocol typing, and normalization in SDK Core while allowing applications to own their product UX.
Integration model
sysio.tokensandsysio.reservbuild the active route graph and quotes.sysio.uwrit.WIRE/WIRE/PRIMARYsentinel.Validation
Dependency note
This PR is intentionally stacked on
refactor/sysio-contract-proxyso the new clients use the shared proxy implementation. Retarget it tomasterafter the proxy PR lands.