Skip to content

feat(execution): LEZ blockchain integration via Logos Core module#153

Open
jimmy-claw wants to merge 2 commits intomasterfrom
jimmy/lmao-issue-79-20260414
Open

feat(execution): LEZ blockchain integration via Logos Core module#153
jimmy-claw wants to merge 2 commits intomasterfrom
jimmy/lmao-issue-79-20260414

Conversation

@jimmy-claw
Copy link
Copy Markdown
Owner

Summary

  • Implement LezExecutionBackend that communicates with lez_multisig_module Logos Core module via JSON-RPC HTTP bridge
  • Agent registry (lez_registerAgent), token payments (lez_sendTransaction), balance queries (lez_getBalance), and transfer verification (lez_getTransactionReceipt)
  • Owner-configurable spending threshold with atomic cumulative tracking — pay() rejects transactions that would exceed the limit
  • Compatible with existing x402 payment flow (PaymentConfig / verify_payment)

Architecture

LMAO agent (Rust)
  └─ LezExecutionBackend ──HTTP/JSON-RPC──▶ lez_multisig_module bridge
      (this crate)                            (Logos Core QtRO module)
                                                └─▶ LEZ sequencer

Test plan

  • 16 unit tests covering config, spending limits, tx hash parsing
  • 20+ wiremock integration tests covering all ExecutionBackend methods, error paths, spending enforcement
  • cargo test --workspace --features lez passes clean

Fixes #79

🤖 Generated with Claude Code

jimmy-claw and others added 2 commits April 14, 2026 04:06
Update logos-core-module/flake.lock to latest logos-cpp-sdk (rev 1468180b)
and run cargo update for all workspace dependencies. Build and all tests
pass with no breaking changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…module bridge

Implement LezExecutionBackend that communicates with the lez_multisig_module
Logos Core module via its JSON-RPC HTTP bridge for agent registration, token
transfers, balance queries, and transfer verification on the Logos Execution Zone.

Key features:
- Agent registry: register agent identity + capabilities on-chain via lez_registerAgent
- Spending threshold: owner-configurable max cumulative spend with atomic tracking
- Task payments: pay for completed tasks via lez_sendTransaction
- Balance queries: check agent balances via lez_getBalance
- Transfer verification: confirm payments via lez_getTransactionReceipt
- x402 integration ready: works with existing PaymentConfig/verify_payment flow

Includes comprehensive unit tests (16) and wiremock integration tests (20+)
covering spending limits, error handling, and bridge communication.

Closes #79

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: LEZ blockchain integration via Logos Core module (spending, agent registry)

1 participant