Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(web3): update module docs to describe the TinyWallet boundary

Steven Enamakel5c49629bce08
diff --git a/crates/openhuman-core/src/web3/bridge/mod.rs b/crates/openhuman-core/src/web3/bridge/mod.rs
index cf6cd7dc7f..52dba1bd8c 100644
--- a/crates/openhuman-core/src/web3/bridge/mod.rs
+++ b/crates/openhuman-core/src/web3/bridge/mod.rs
@@ -1,6 +1,5 @@
//! `web3_bridge` — cross-chain bridges via deBridge DLN. Logic lives in
-//! `tinywallet_web3::crypto::service` (reached through [`super::seams`]); this
-//! module owns the RPC controllers and their schemas. The agent tools are in
-//! `tinywallet_web3::tools::web3`.
+//! the compiled TinyWallet module; this module owns the RPC controllers and
+//! their schemas. The agent tools call the same module contract.
pub mod schemas;
diff --git a/crates/openhuman-core/src/web3/dapp/mod.rs b/crates/openhuman-core/src/web3/dapp/mod.rs
index 1487f15466..16741e1f3f 100644
--- a/crates/openhuman-core/src/web3/dapp/mod.rs
+++ b/crates/openhuman-core/src/web3/dapp/mod.rs
@@ -1,6 +1,5 @@
//! `web3_dapp` — generic EVM contract interactions from caller-supplied
-//! calldata. Logic lives in `tinywallet_web3::crypto::service` (reached through
-//! [`super::seams`]); this module owns the RPC controllers and their schemas.
-//! The agent tools are in `tinywallet_web3::tools::web3`.
+//! calldata. Logic lives in the compiled TinyWallet module; this module owns
+//! the RPC controllers and their schemas. Agent tools use that same bus API.
pub mod schemas;
diff --git a/crates/openhuman-core/src/web3/mod.rs b/crates/openhuman-core/src/web3/mod.rs
index c0146b050b..716ec64008 100644
--- a/crates/openhuman-core/src/web3/mod.rs
+++ b/crates/openhuman-core/src/web3/mod.rs
@@ -1,13 +1,13 @@
-//! High-level web3 surface built on top of the [`crate::web3::wallet`]
-//! signing primitives. Focuses on EVM/Solana dapp interactions: swaps, bridges,
-//! and generic contract calls.
+//! High-level Web3 product surface for swaps, bridges, dapp calls, and wallet
+//! operations. The host owns RPC policy and user approval; TinyWallet owns
+//! chain-specific algorithms and module-scoped quote state.
//!
-//! The swap/bridge/dapp logic (quote preparation, the confirm-then-execute quote
-//! store, the agent tools) lives in `tinywallet_web3::crypto::service`. What
-//! stays here is the host adapter: the RPC controllers and their schemas (the
-//! namespace strings are wire contracts), the [`client`] over the backend's
-//! deBridge proxy (`/agent-integrations/crypto/*`), and [`seams`], which holds
-//! the host implementations of the crate's seams and the process-wide service.
+//! Quote preparation, signing, calldata encoding, provider algorithms, and the
+//! confirm-then-execute quote store run inside the compiled TinyWallet module.
+//! This host layer keeps product RPC controllers and schemas (their namespace
+//! strings are wire contracts), the [`client`] for the backend deBridge proxy
+//! (`/agent-integrations/crypto/*`), and adapters for configuration, custody,
+//! approval, and generic network transport.
//! Three sub-modules expose distinct RPC namespaces:
//! - [`swap`] (`web3_swap`) — single-chain swaps (cross-chain → `web3_bridge`).
//! - [`bridge`] (`web3_bridge`) — cross-chain DLN bridges.
diff --git a/crates/openhuman-core/src/web3/swap/mod.rs b/crates/openhuman-core/src/web3/swap/mod.rs
index 4d72f60bc7..b1c2b9facc 100644
--- a/crates/openhuman-core/src/web3/swap/mod.rs
+++ b/crates/openhuman-core/src/web3/swap/mod.rs
@@ -1,6 +1,6 @@
//! `web3_swap` — single-chain swaps via deBridge. Cross-chain swaps are
-//! redirected to `web3_bridge`. Logic lives in `tinywallet_web3::crypto::service`
-//! (reached through [`super::seams`]); this module owns the RPC controllers and
-//! their schemas. The agent tools are in `tinywallet_web3::tools::web3`.
+//! redirected to `web3_bridge`. Quote and execution logic live in the compiled
+//! TinyWallet module; this module owns the RPC controllers and their schemas.
+//! Agent tools use that same bus API.
pub mod schemas;
diff --git a/crates/openhuman-core/src/web3/wallet/execution.rs b/crates/openhuman-core/src/web3/wallet/execution.rs
index f0bfd0167f..517bf74272 100644
--- a/crates/openhuman-core/src/web3/wallet/execution.rs
+++ b/crates/openhuman-core/src/web3/wallet/execution.rs
@@ -1,10 +1,6 @@
-//! Host adapters over the wallet engine: the read and write operations wrapped
-//! in the controller contract's [`Outcome`].
-//!
-//! The logic (balances, transfers, lookups, the quote store) lives in
-//! `tinywallet_web3::crypto`. What this file adds is the `Outcome` envelope and
-//! its log lines, and the engine the operations run on
-//! ([`crate::web3::seams::engine`]).
+//! Typed TinyWallet module operations adapted to product controller results.
+//! This host supplies configuration, custody, transport and approvals; wallet
+//! algorithms and user-scoped service state remain in the compiled module.
use crate::config::rpc as config_rpc;
use crate::core::Outcome;