feat(amm): headless amm_module core Logos module; flip UI to consume it#232
Draft
0x-r4bbit wants to merge 12 commits into
Draft
feat(amm): headless amm_module core Logos module; flip UI to consume it#2320x-r4bbit wants to merge 12 commits into
0x-r4bbit wants to merge 12 commits into
Conversation
…ids from AMM config)
…align amm_client_ffi to lee_core v0.2.0
…ore to sequencer rev 415964d7
Introduce modules/amm — the AMM business logic (resolvePool, swapExactInput, tokenList) as a universal core Logos module that wraps amm_client_ffi and depends on the logos_execution_zone wallet module. The same surface is now consumed by the QML UI (via modules().amm_module) and headlessly (logoscore call amm_module ...). - apps/amm: drop the direct amm_client_ffi link; depend on and delegate to amm_module (metadata dependencies, CMakeLists, AmmUiBackend). Wallet-session UI logic stays in the backend. - flake.nix: build amm_module via mkLogosModule and inject it into the UI builder's flakeInputs so the dependency resolves. - amounts/deadline declared nlohmann::json so the generated dispatch accepts a JSON number (bare small ints on the CLI) or a string (exact u128 from the UI, or a quote-wrapped big value on the CLI); JSON floats are rejected rather than submit a silently-rounded amount. - AMM_DEBUG-gated tracing for the swap path. - modules/amm/README.md: headless prerequisites + full logoscore recipe.
0x-r4bbit
force-pushed
the
feat/amm-swap-onchain
branch
from
July 23, 2026 11:32
1fd73f8 to
7f17e06
Compare
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.
Introduce modules/amm — the AMM business logic (resolvePool, swapExactInput, tokenList) as a universal core Logos module that wraps amm_client_ffi and depends on the logos_execution_zone wallet module. The same surface is now consumed by the QML UI (via modules().amm_module) and headlessly (logoscore call amm_module ...).