The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(wallet): import wallet types directly from tinywallet_web3
Steven Enamakeld74e3eb79c2b
diff --git a/crates/openhuman-core/src/inference/host_runtime/mod.rs b/crates/openhuman-core/src/inference/host_runtime/mod.rsindex 6e8f409972..82dbab4aa0 100644--- a/crates/openhuman-core/src/inference/host_runtime/mod.rs+++ b/crates/openhuman-core/src/inference/host_runtime/mod.rs@@ -36,4 +36,4 @@ pub use schemas::{all_controller_schemas as all_local_inference_controller_schemas,all_registered_controllers as all_local_inference_registered_controllers,};-pub use tinyinference_local::service::LocalAiService;+use {tinyinference_local::service::LocalAiService};diff --git a/crates/openhuman-core/src/security/mod.rs b/crates/openhuman-core/src/security/mod.rsindex 576aaa9088..1eb259a9f5 100644--- a/crates/openhuman-core/src/security/mod.rs+++ b/crates/openhuman-core/src/security/mod.rs@@ -50,10 +50,8 @@ pub use policy::{CommandClass, GateDecision};pub use policy::{TrustedAccess, TrustedRoot};pub use policy::{POLICY_BLOCKED_MARKER, POLICY_DENIED_MARKER};#[allow(unused_imports)]-pub use {- pairing::ensure_core_rpc_token_for_bind, pairing::is_public_bind, pairing::CoreBindTokenError,- pairing::CORE_TOKEN_ENV_VAR, tinychannels_runtime::security::PairingGuard,-};+pub use {pairing::ensure_core_rpc_token_for_bind, pairing::is_public_bind, pairing::CoreBindTokenError, pairing::CORE_TOKEN_ENV_VAR};+use {tinychannels_runtime::security::PairingGuard};pub use schemas::{all_controller_schemas as all_security_controller_schemas,diff --git a/crates/openhuman-core/src/web3/wallet/endpoints.rs b/crates/openhuman-core/src/web3/wallet/endpoints.rsindex 50d1223a15..45f3dfd6a5 100644--- a/crates/openhuman-core/src/web3/wallet/endpoints.rs+++ b/crates/openhuman-core/src/web3/wallet/endpoints.rs@@ -15,7 +15,7 @@ use tinywallet_web3::crypto::seams::RpcEndpoints;#[cfg(test)]use tinywallet_web3::crypto::defaults::SolanaClusterReferenceData;-use super::ops::WalletChain;+use {tinywallet_web3::crypto::wallet::WalletChain};/// The `OPENHUMAN_WALLET_RPC_<NAME>` variable that overrides `network`.pub(crate) fn evm_rpc_env_var(network: EvmNetwork) -> &'static str {diff --git a/crates/openhuman-core/src/web3/wallet/execution.rs b/crates/openhuman-core/src/web3/wallet/execution.rsindex 40875f2785..f05a5e292c 100644--- a/crates/openhuman-core/src/web3/wallet/execution.rs+++ b/crates/openhuman-core/src/web3/wallet/execution.rs@@ -20,7 +20,7 @@ pub use tinywallet_bus::wire::{use tinywallet_bus::wire::{EvmNetwork, WalletNetworkDefaults};-use super::ops::WalletChain;+use {tinywallet_web3::crypto::wallet::WalletChain};/// Default row for every supported network, with the host's endpoints.pub async fn network_defaults() -> Result<Outcome<Vec<WalletNetworkDefaults>>, String> {diff --git a/crates/openhuman-core/src/web3/wallet/mod.rs b/crates/openhuman-core/src/web3/wallet/mod.rsindex 4aa56e174d..b1a21f6859 100644--- a/crates/openhuman-core/src/web3/wallet/mod.rs+++ b/crates/openhuman-core/src/web3/wallet/mod.rs@@ -70,10 +70,8 @@ pub use execution::{#[cfg(feature = "web3")]pub(crate) use ops::secret_material;#[cfg(feature = "web3")]-pub use ops::{- reveal_recovery_phrase, setup, status, RevealRecoveryPhraseResult, WalletAccount, WalletChain,- WalletSetupParams, WalletSetupSource, WalletStatus, WALLET_NOT_CONFIGURED_MESSAGE,-};+pub use {ops::reveal_recovery_phrase, ops::setup, ops::status, ops::RevealRecoveryPhraseResult, ops::WalletSetupParams};+use {tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain, tinywallet_web3::crypto::wallet::WalletSetupSource, tinywallet_web3::crypto::wallet::WalletStatus, tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE};#[cfg(feature = "web3")]pub use schemas::{all_controller_schemas, all_registered_controllers, all_wallet_controller_schemas,diff --git a/crates/openhuman-core/src/web3/wallet/ops.rs b/crates/openhuman-core/src/web3/wallet/ops.rsindex fcce15dfd0..a78b1fb946 100644--- a/crates/openhuman-core/src/web3/wallet/ops.rs+++ b/crates/openhuman-core/src/web3/wallet/ops.rs@@ -9,13 +9,8 @@ mod types;use types::StoredWalletState;pub(crate) use types::WalletSecretMaterial;-pub use {- tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain,- tinywallet_web3::crypto::wallet::WalletSetupSource,- tinywallet_web3::crypto::wallet::WalletStatus,- tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE, types::RevealRecoveryPhraseResult,- types::WalletSetupParams,-};+pub use {types::RevealRecoveryPhraseResult, types::WalletSetupParams};+use {tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain, tinywallet_web3::crypto::wallet::WalletSetupSource, tinywallet_web3::crypto::wallet::WalletStatus, tinywallet_web3::quote::WALLET_NOT_CONFIGURED_MESSAGE};use log::debug;diff --git a/crates/openhuman-core/src/web3/wallet/schemas.rs b/crates/openhuman-core/src/web3/wallet/schemas.rsindex 223f2518b6..8f55ab6e78 100644--- a/crates/openhuman-core/src/web3/wallet/schemas.rs+++ b/crates/openhuman-core/src/web3/wallet/schemas.rs@@ -8,7 +8,7 @@ use super::execution::{balances, chain_status, execute_prepared, lookup_tx, network_defaults, prepare_transfer,supported_assets, tx_receipt, tx_status, ExecutePreparedParams, PrepareTransferParams,};-use super::ops::{WalletAccount, WalletSetupParams, WalletSetupSource};+use {tinywallet_web3::crypto::wallet::WalletAccount, super::ops::WalletSetupParams, tinywallet_web3::crypto::wallet::WalletSetupSource};use super::{encode_erc20_transfer, EvmNetwork, WalletChain};#[derive(Debug, Deserialize)]diff --git a/crates/openhuman-core/src/web3/wallet/test_support.rs b/crates/openhuman-core/src/web3/wallet/test_support.rsindex e1411665a1..949748ddab 100644--- a/crates/openhuman-core/src/web3/wallet/test_support.rs+++ b/crates/openhuman-core/src/web3/wallet/test_support.rs@@ -11,7 +11,7 @@use tempfile::TempDir;-use super::ops::{setup, WalletAccount, WalletChain, WalletSetupParams, WalletSetupSource};+use {super::ops::setup, tinywallet_web3::crypto::wallet::WalletAccount, tinywallet_web3::crypto::wallet::WalletChain, super::ops::WalletSetupParams, tinywallet_web3::crypto::wallet::WalletSetupSource};use crate::config::rpc as config_rpc;use crate::config::test_env::EnvVarGuard;diff --git a/crates/openhuman-core/src/web3/wallet/transport.rs b/crates/openhuman-core/src/web3/wallet/transport.rsindex 077c4dfc4e..afc73e16af 100644--- a/crates/openhuman-core/src/web3/wallet/transport.rs+++ b/crates/openhuman-core/src/web3/wallet/transport.rs@@ -36,7 +36,7 @@ use tinywallet_crypto::rpc::{NetworkId, Transport, TransportError, TransportResuuse tinywallet_web3::crypto::defaults::EvmNetwork;use super::endpoints::{rpc_url_for_chain, rpc_url_for_evm_network};-use super::ops::WalletChain;+use {tinywallet_web3::crypto::wallet::WalletChain};use super::rpc::{redact_rpc_url, rest_get_text, rest_post_text, rpc_call_to};/// Adapter over OpenHuman's wallet RPC layer.