Commit Graph
6 Commits
Author SHA1 Message Date
Ricardo Guilherme Schmidt d8e2ae3d85 refactor(amm-client)!: keep transport parsing in hosts
Remove the generic sequencer-response adapter and reuse the transaction order mapper.

BREAKING CHANGE: account_snapshot_from_sequencer_response and its quote JSON operation are removed. Hosts must normalize RPC responses into canonical account snapshots before calling amm_client.
2026-08-10 11:22:44 -03:00
Ricardo Guilherme Schmidt 43ed4de64f fix(amm-client)!: align shared quote wire contract
Use canonical ProgramId word arrays, include pool spot movement in standalone swap quotes, and keep quote commitments stable across deadline refreshes.

BREAKING CHANGE: JSON ProgramId values now use eight u32 words. Convert hex or byte representations in host adapters.
2026-08-10 11:22:44 -03:00
Ricardo Guilherme Schmidt ae0bb310b0 feat(amm-client): add lossless host adapters 2026-08-10 11:22:44 -03:00
Ricardo Guilherme Schmidt 9d356cfa31 feat(amm-client): freeze wire contract 2026-08-10 11:22:44 -03:00
Ricardo Guilherme Schmidt fb9df2fd96 feat(amm): complete shared transaction client 2026-08-10 11:22:44 -03:00
Ricardo Guilherme Schmidt a7395aadb7 feat(amm): add reusable client APIs
Add validated shared quote orchestration, canonical planners for every guest instruction, and exact RISC Zero serialization. Expose integer-only slippage preparation and lossless JSON/C adapters without runtime deployment identity checks.
2026-08-10 11:22:44 -03:00