[INFO] cloning repository https://github.com/HuntSweet/eth_trading_mcp
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/HuntSweet/eth_trading_mcp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHuntSweet%2Feth_trading_mcp", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHuntSweet%2Feth_trading_mcp'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c52e60faeb5799dd48e66a8681251e7b59738125
[INFO] testing HuntSweet/eth_trading_mcp against 1.98.0-beta.6+cargoflags=--release for beta-1.98-release-3
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHuntSweet%2Feth_trading_mcp" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/HuntSweet/eth_trading_mcp
[INFO] finished tweaking git repo https://github.com/HuntSweet/eth_trading_mcp
[INFO] tweaked toml for git repo https://github.com/HuntSweet/eth_trading_mcp written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/HuntSweet/eth_trading_mcp on toolchain 1.98.0-beta.6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/HuntSweet/eth_trading_mcp already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.98.0-beta.6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:00c5645b54fe3ce5dae1417175e3c7fb6a6646c021d554ecd63a097b8b9f3602" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266
[INFO] running `Command { std: "docker" "start" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.103
[INFO] [stderr]    Compiling quote v1.0.42
[INFO] [stderr]    Compiling unicode-ident v1.0.22
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling libc v0.2.177
[INFO] [stderr]    Compiling cfg-if v1.0.4
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling typenum v1.19.0
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling const-oid v0.9.6
[INFO] [stderr]    Compiling itoa v1.0.15
[INFO] [stderr]    Compiling crunchy v0.2.4
[INFO] [stderr]    Compiling generic-array v0.14.9
[INFO] [stderr]    Compiling shlex v1.3.0
[INFO] [stderr]    Compiling find-msvc-tools v0.1.5
[INFO] [stderr]    Compiling pin-project-lite v0.2.16
[INFO] [stderr]    Compiling cc v1.2.47
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling unicode-xid v0.2.6
[INFO] [stderr]    Compiling syn v2.0.111
[INFO] [stderr]    Compiling paste v1.0.15
[INFO] [stderr]    Compiling ruint-macro v1.2.1
[INFO] [stderr]    Compiling foldhash v0.2.0
[INFO] [stderr]    Compiling once_cell v1.21.3
[INFO] [stderr]    Compiling cpufeatures v0.2.17
[INFO] [stderr]    Compiling base16ct v0.2.0
[INFO] [stderr]    Compiling memchr v2.7.6
[INFO] [stderr]    Compiling tracing-core v0.1.34
[INFO] [stderr]    Compiling thiserror v2.0.17
[INFO] [stderr]    Compiling getrandom v0.2.16
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling parking_lot_core v0.9.12
[INFO] [stderr]    Compiling ff v0.13.1
[INFO] [stderr]    Compiling futures-core v0.3.31
[INFO] [stderr]    Compiling serde_json v1.0.145
[INFO] [stderr]    Compiling heck v0.5.0
[INFO] [stderr]    Compiling group v0.13.0
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling const-hex v1.17.0
[INFO] [stderr]    Compiling ruint v1.17.0
[INFO] [stderr]    Compiling lock_api v0.4.14
[INFO] [stderr]    Compiling ryu v1.0.20
[INFO] [stderr]    Compiling winnow v0.7.13
[INFO] [stderr]    Compiling signal-hook-registry v1.4.7
[INFO] [stderr]    Compiling hashbrown v0.16.1
[INFO] [stderr]    Compiling mio v1.1.0
[INFO] [stderr]    Compiling socket2 v0.6.1
[INFO] [stderr]    Compiling proc-macro-error-attr2 v2.0.0
[INFO] [stderr]    Compiling futures-sink v0.3.31
[INFO] [stderr]    Compiling equivalent v1.0.2
[INFO] [stderr]    Compiling dunce v1.0.5
[INFO] [stderr]    Compiling stable_deref_trait v1.2.1
[INFO] [stderr]    Compiling ident_case v1.0.1
[INFO] [stderr]    Compiling strsim v0.11.1
[INFO] [stderr]    Compiling fnv v1.0.7
[INFO] [stderr]    Compiling slab v0.4.11
[INFO] [stderr]    Compiling futures-channel v0.3.31
[INFO] [stderr]    Compiling pin-utils v0.1.0
[INFO] [stderr]    Compiling blst v0.3.16
[INFO] [stderr]    Compiling futures-io v0.3.31
[INFO] [stderr]    Compiling futures-task v0.3.31
[INFO] [stderr]    Compiling num_cpus v1.17.0
[INFO] [stderr]    Compiling indexmap v2.12.1
[INFO] [stderr]    Compiling threadpool v1.8.1
[INFO] [stderr]    Compiling synstructure v0.13.2
[INFO] [stderr]    Compiling macro-string v0.1.4
[INFO] [stderr]    Compiling syn-solidity v1.4.1
[INFO] [stderr]    Compiling proc-macro-error2 v2.0.1
[INFO] [stderr]    Compiling c-kzg v2.1.5
[INFO] [stderr]    Compiling litemap v0.8.1
[INFO] [stderr]    Compiling crc-catalog v2.4.0
[INFO] [stderr]    Compiling writeable v0.6.2
[INFO] [stderr]    Compiling crc v3.3.0
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling hex v0.4.3
[INFO] [stderr]    Compiling percent-encoding v2.3.2
[INFO] [stderr]    Compiling icu_properties_data v2.1.1
[INFO] [stderr]    Compiling icu_normalizer_data v2.1.1
[INFO] [stderr]    Compiling pkg-config v0.3.32
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling httparse v1.10.1
[INFO] [stderr]    Compiling tower-service v0.3.3
[INFO] [stderr]    Compiling zerocopy v0.8.30
[INFO] [stderr]    Compiling serde_derive v1.0.228
[INFO] [stderr]    Compiling zeroize_derive v1.4.2
[INFO] [stderr]    Compiling derive_more-impl v2.0.1
[INFO] [stderr]    Compiling alloy-rlp-derive v0.3.12
[INFO] [stderr]    Compiling zeroize v1.8.2
[INFO] [stderr]    Compiling tracing-attributes v0.1.30
[INFO] [stderr]    Compiling der v0.7.10
[INFO] [stderr]    Compiling thiserror-impl v2.0.17
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling crypto-bigint v0.5.5
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling rfc6979 v0.4.0
[INFO] [stderr]    Compiling spki v0.7.3
[INFO] [stderr]    Compiling pkcs8 v0.10.2
[INFO] [stderr]    Compiling signature v2.2.0
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]    Compiling tracing v0.1.41
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling derive_more v2.0.1
[INFO] [stderr]    Compiling tokio-macros v2.6.0
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling auto_impl v1.3.0
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling displaydoc v0.2.5
[INFO] [stderr]    Compiling bytes v1.11.0
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling serdect v0.2.0
[INFO] [stderr]    Compiling arrayvec v0.7.6
[INFO] [stderr]    Compiling sec1 v0.7.3
[INFO] [stderr]    Compiling alloy-sol-type-parser v1.4.1
[INFO] [stderr]    Compiling parking_lot v0.12.5
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]    Compiling elliptic-curve v0.13.8
[INFO] [stderr]    Compiling alloy-rlp v0.3.12
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling http v1.4.0
[INFO] [stderr]    Compiling ecdsa v0.16.9
[INFO] [stderr]    Compiling alloy-primitives v1.4.1
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]    Compiling darling_core v0.21.3
[INFO] [stderr]    Compiling k256 v0.13.4
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling alloy-json-abi v1.4.1
[INFO] [stderr]    Compiling futures-macro v0.3.31
[INFO] [stderr]    Compiling alloy-sol-macro-input v1.4.1
[INFO] [stderr]    Compiling futures-util v0.3.31
[INFO] [stderr]    Compiling tinystr v0.8.2
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]    Compiling alloy-sol-macro-expander v1.4.1
[INFO] [stderr]    Compiling icu_locale_core v2.1.1
[INFO] [stderr]    Compiling darling_macro v0.21.3
[INFO] [stderr]    Compiling darling v0.21.3
[INFO] [stderr]    Compiling serde_with_macros v3.16.0
[INFO] [stderr]    Compiling potential_utf v0.1.4
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]    Compiling serde_with v3.16.0
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling icu_provider v2.1.1
[INFO] [stderr]    Compiling icu_collections v2.1.1
[INFO] [stderr]    Compiling alloy-sol-macro v1.4.1
[INFO] [stderr]    Compiling alloy-eip2930 v0.2.3
[INFO] [stderr]    Compiling alloy-serde v1.1.2
[INFO] [stderr]    Compiling alloy-sol-types v1.4.1
[INFO] [stderr]    Compiling alloy-eip7702 v0.6.3
[INFO] [stderr]    Compiling alloy-eip2124 v0.2.0
[INFO] [stderr]    Compiling nybbles v0.4.6
[INFO] [stderr]    Compiling rustls-pki-types v1.13.0
[INFO] [stderr]    Compiling alloy-eips v1.1.2
[INFO] [stderr]    Compiling alloy-trie v0.9.1
[INFO] [stderr]    Compiling alloy-tx-macros v1.1.2
[INFO] [stderr]    Compiling openssl-sys v0.9.109
[INFO] [stderr]    Compiling log v0.4.28
[INFO] [stderr]    Compiling untrusted v0.9.0
[INFO] [stderr]    Compiling icu_properties v2.1.1
[INFO] [stderr]    Compiling icu_normalizer v2.1.1
[INFO] [stderr]    Compiling alloy-consensus v1.1.2
[INFO] [stderr]    Compiling rustls v0.23.35
[INFO] [stderr]    Compiling rustls-webpki v0.103.8
[INFO] [stderr]    Compiling idna_adapter v1.2.1
[INFO] [stderr]    Compiling http-body v1.0.1
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling sync_wrapper v1.0.2
[INFO] [stderr]    Compiling getrandom v0.3.4
[INFO] [stderr]    Compiling utf8_iter v1.0.4
[INFO] [stderr]    Compiling tower-layer v0.3.3
[INFO] [stderr]    Compiling idna v1.1.0
[INFO] [stderr]    Compiling alloy-json-rpc v1.1.2
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]    Compiling alloy-consensus-any v1.1.2
[INFO] [stderr]    Compiling alloy-network-primitives v1.1.2
[INFO] [stderr]    Compiling itertools v0.14.0
[INFO] [stderr]    Compiling bitflags v2.10.0
[INFO] [stderr]    Compiling try-lock v0.2.5
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.73
[INFO] [stderr]    Compiling atomic-waker v1.1.2
[INFO] [stderr]    Compiling futures-utils-wasm v0.1.0
[INFO] [stderr]    Compiling want v0.3.1
[INFO] [stderr]    Compiling h2 v0.4.12
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling url v2.5.7
[INFO] [stderr]    Compiling webpki-roots v1.0.4
[INFO] [stderr]    Compiling futures-executor v0.3.31
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling native-tls v0.2.14
[INFO] [stderr]    Compiling alloy-rpc-types-eth v1.1.2
[INFO] [stderr]    Compiling futures v0.3.31
[INFO] [stderr]    Compiling rand_core v0.9.3
[INFO] [stderr]    Compiling openssl-probe v0.1.6
[INFO] [stderr]    Compiling ipnet v2.11.0
[INFO] [stderr]    Compiling rand_chacha v0.9.0
[INFO] [stderr]    Compiling alloy-transport v1.1.2
[INFO] [stderr]    Compiling rand v0.9.2
[INFO] [stderr]    Compiling http-body-util v0.1.3
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling sha1 v0.10.6
[INFO] [stderr]    Compiling bimap v0.6.3
[INFO] [stderr]    Compiling utf-8 v0.7.6
[INFO] [stderr]    Compiling iri-string v0.7.9
[INFO] [stderr]    Compiling data-encoding v2.9.0
[INFO] [stderr]    Compiling rustversion v1.0.22
[INFO] [stderr]    Compiling hyper-util v0.1.18
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling tower-http v0.6.7
[INFO] [stderr]    Compiling tungstenite v0.26.2
[INFO] [stderr]    Compiling alloy-pubsub v1.1.2
[INFO] [stderr]    Compiling webpki-roots v0.26.11
[INFO] [stderr]    Compiling serde_urlencoded v0.7.1
[INFO] [stderr]    Compiling async-trait v0.1.89
[INFO] [stderr]    Compiling pin-project-internal v1.1.10
[INFO] [stderr]    Compiling encoding_rs v0.8.35
[INFO] [stderr]    Compiling mime v0.3.17
[INFO] [stderr]    Compiling doctest-file v1.0.0
[INFO] [stderr]    Compiling crossbeam-utils v0.8.21
[INFO] [stderr]    Compiling alloy-signer v1.1.2
[INFO] [stderr]    Compiling interprocess v2.2.3
[INFO] [stderr]    Compiling tokio-tungstenite v0.26.2
[INFO] [stderr]    Compiling pin-project v1.1.10
[INFO] [stderr]    Compiling alloy-rpc-types-any v1.1.2
[INFO] [stderr]    Compiling num_enum_derive v0.7.5
[INFO] [stderr]    Compiling strum_macros v0.27.2
[INFO] [stderr]    Compiling reqwest v0.12.24
[INFO] [stderr]    Compiling allocator-api2 v0.2.21
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling num_enum v0.7.5
[INFO] [stderr]    Compiling alloy-transport-ipc v1.1.2
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]    Compiling strum v0.27.2
[INFO] [stderr]    Compiling alloy-transport-ws v1.1.2
[INFO] [stderr]    Compiling alloy-transport-http v1.1.2
[INFO] [stderr]    Compiling alloy-network v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-txpool v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-trace v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-anvil v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-types-debug v1.1.2
[INFO] [stderr]    Compiling async-stream-impl v0.3.6
[INFO] [stderr]    Compiling hashbrown v0.14.5
[INFO] [stderr]    Compiling autocfg v1.5.0
[INFO] [stderr]    Compiling async-stream v0.3.6
[INFO] [stderr]    Compiling alloy-rpc-client v1.1.2
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling lru v0.13.0
[INFO] [stderr]    Compiling alloy-chains v0.2.20
[INFO] [stderr]    Compiling dashmap v6.1.0
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling alloy-dyn-abi v1.4.1
[INFO] [stderr]    Compiling regex-syntax v0.8.8
[INFO] [stderr]    Compiling alloy-provider v1.1.2
[INFO] [stderr]    Compiling regex-automata v0.4.13
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling thiserror v1.0.69
[INFO] [stderr]    Compiling lazy_static v1.5.0
[INFO] [stderr]    Compiling rust_decimal v1.39.0
[INFO] [stderr]    Compiling anyhow v1.0.100
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling alloy-signer-local v1.1.2
[INFO] [stderr]    Compiling alloy-core v1.4.1
[INFO] [stderr]    Compiling alloy-rpc-types v1.1.2
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling matchers v0.2.0
[INFO] [stderr]    Compiling thiserror-impl v1.0.69
[INFO] [stderr]    Compiling thread_local v1.1.9
[INFO] [stderr]    Compiling nu-ansi-term v0.50.3
[INFO] [stderr]    Compiling tracing-subscriber v0.3.20
[INFO] [stderr]    Compiling dotenv v0.15.0
[INFO] [stderr]    Compiling alloy-contract v1.1.2
[INFO] [stderr]    Compiling alloy v1.1.2
[INFO] [stderr]    Compiling eth_mcp_trading v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stdout]  --> src/ethereum/mod.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stdout]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stdout]  --> src/ethereum/mod.rs:9:19
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stdout]   --> src/ethereum/mod.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stdout]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stdout]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `protocol::*`
[INFO] [stdout]  --> src/mcp/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use protocol::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]   --> src/main.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use tracing::{info, error};
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stdout]   --> src/config/settings.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Config {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     /// Uniswap V2 Router 地址
[INFO] [stdout] 16 |     pub uniswap_v2_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     /// Uniswap V3 Router 地址
[INFO] [stdout] 18 |     pub uniswap_v3_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     /// 日志级别
[INFO] [stdout] 20 |     pub log_level: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate` is never used
[INFO] [stdout]   --> src/config/settings.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `JsonRpc` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     JsonRpc(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:86:18
[INFO] [stdout]     |
[INFO] [stdout]  25 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub async fn debug_trace_transaction(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 366 |     pub fn config(&self) -> &Config {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `call_type` is never read
[INFO] [stdout]    --> src/ethereum/client.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 373 | pub struct DebugTraceResult {
[INFO] [stdout]     |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 383 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stdout]    --> src/ethereum/client.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `format_balance` and `address` are never used
[INFO] [stdout]    --> src/ethereum/erc20.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl Erc20Token {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |     pub fn address(&self) -> Address {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_token1` is never used
[INFO] [stdout]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stdout]     |
[INFO] [stdout]  88 | impl UniswapV2 {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stdout]   --> src/ethereum/swap.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub struct SwapSimulationResult {
[INFO] [stdout]    |            -------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub amount_in: U256,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 95 |     /// 预估输出数量（原始值）
[INFO] [stdout] 96 |     pub amount_out: U256,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/ethereum/swap.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 145 | impl SwapSimulator {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stdout]   --> src/mcp/protocol.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl JsonRpcResponse {
[INFO] [stdout]    | -------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]    --> src/mcp/protocol.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct ToolCall {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 2m 16s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "test" "--frozen" "--no-run" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling tokio v1.48.0
[INFO] [stderr]    Compiling tokio-util v0.7.17
[INFO] [stderr]    Compiling tower v0.5.2
[INFO] [stderr]    Compiling tokio-rustls v0.26.4
[INFO] [stderr]    Compiling tokio-native-tls v0.3.1
[INFO] [stderr]    Compiling interprocess v2.2.3
[INFO] [stderr]    Compiling tokio-tungstenite v0.26.2
[INFO] [stderr]    Compiling h2 v0.4.12
[INFO] [stderr]    Compiling tokio-stream v0.1.17
[INFO] [stderr]    Compiling alloy-transport v1.1.2
[INFO] [stderr]    Compiling tower-http v0.6.7
[INFO] [stderr]    Compiling tokio-test v0.4.4
[INFO] [stderr]    Compiling alloy-pubsub v1.1.2
[INFO] [stderr]    Compiling alloy-transport-ipc v1.1.2
[INFO] [stderr]    Compiling alloy-transport-ws v1.1.2
[INFO] [stderr]    Compiling hyper v1.8.1
[INFO] [stderr]    Compiling hyper-util v0.1.18
[INFO] [stderr]    Compiling hyper-tls v0.6.0
[INFO] [stderr]    Compiling hyper-rustls v0.27.7
[INFO] [stderr]    Compiling reqwest v0.12.24
[INFO] [stderr]    Compiling alloy-transport-http v1.1.2
[INFO] [stderr]    Compiling alloy-rpc-client v1.1.2
[INFO] [stderr]    Compiling alloy-provider v1.1.2
[INFO] [stderr]    Compiling alloy-contract v1.1.2
[INFO] [stderr]    Compiling alloy v1.1.2
[INFO] [stderr]    Compiling eth_mcp_trading v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> tests/erc20_tests.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stdout]  --> src/ethereum/mod.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stdout]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stdout]  --> src/ethereum/mod.rs:9:19
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stdout]   --> src/ethereum/mod.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stdout]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stdout]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `protocol::*`
[INFO] [stdout]  --> src/mcp/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use protocol::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]   --> src/main.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use tracing::{info, error};
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `U256`
[INFO] [stdout]  --> src/config/settings.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, U256};
[INFO] [stdout]   |                                  ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ProviderBuilder`
[INFO] [stdout]  --> src/ethereum/client.rs:2:34
[INFO] [stdout]   |
[INFO] [stdout] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stdout]   --> src/ethereum/client.rs:28:13
[INFO] [stdout]    |
[INFO] [stdout] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stdout]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Bytes`
[INFO] [stdout]  --> src/ethereum/swap.rs:1:34
[INFO] [stdout]   |
[INFO] [stdout] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stdout]   |                                  ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stdout]  --> src/ethereum/mod.rs:7:18
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stdout]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stdout]  --> src/ethereum/mod.rs:9:19
[INFO] [stdout]   |
[INFO] [stdout] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stdout]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stdout]   --> src/ethereum/mod.rs:10:16
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stdout]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mcp/protocol.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `json`
[INFO] [stdout]  --> src/mcp/server.rs:3:18
[INFO] [stdout]   |
[INFO] [stdout] 3 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stdout]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stdout]   |
[INFO] [stdout] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stdout]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stdout]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stdout]   |
[INFO] [stdout] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stdout]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `protocol::*`
[INFO] [stdout]  --> src/mcp/mod.rs:5:9
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub use protocol::*;
[INFO] [stdout]   |         ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `error`
[INFO] [stdout]   --> src/main.rs:15:21
[INFO] [stdout]    |
[INFO] [stdout] 15 | use tracing::{info, error};
[INFO] [stdout]    |                     ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stdout]   --> src/config/settings.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Config {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     /// Uniswap V2 Router 地址
[INFO] [stdout] 16 |     pub uniswap_v2_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     /// Uniswap V3 Router 地址
[INFO] [stdout] 18 |     pub uniswap_v3_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     /// 日志级别
[INFO] [stdout] 20 |     pub log_level: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate` is never used
[INFO] [stdout]   --> src/config/settings.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `JsonRpc` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     JsonRpc(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:86:18
[INFO] [stdout]     |
[INFO] [stdout]  25 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub async fn debug_trace_transaction(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 366 |     pub fn config(&self) -> &Config {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `call_type` is never read
[INFO] [stdout]    --> src/ethereum/client.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 373 | pub struct DebugTraceResult {
[INFO] [stdout]     |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 383 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stdout]    --> src/ethereum/client.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `format_balance` and `address` are never used
[INFO] [stdout]    --> src/ethereum/erc20.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl Erc20Token {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |     pub fn address(&self) -> Address {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_token1` is never used
[INFO] [stdout]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stdout]     |
[INFO] [stdout]  88 | impl UniswapV2 {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stdout]   --> src/ethereum/swap.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub struct SwapSimulationResult {
[INFO] [stdout]    |            -------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub amount_in: U256,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 95 |     /// 预估输出数量（原始值）
[INFO] [stdout] 96 |     pub amount_out: U256,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/ethereum/swap.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 145 | impl SwapSimulator {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stdout]   --> src/mcp/protocol.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl JsonRpcResponse {
[INFO] [stdout]    | -------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]    --> src/mcp/protocol.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct ToolCall {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stdout]   --> src/config/settings.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Config {
[INFO] [stdout]    |            ------ fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 15 |     /// Uniswap V2 Router 地址
[INFO] [stdout] 16 |     pub uniswap_v2_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 17 |     /// Uniswap V3 Router 地址
[INFO] [stdout] 18 |     pub uniswap_v3_router: Address,
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 19 |     /// 日志级别
[INFO] [stdout] 20 |     pub log_level: String,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `validate` is never used
[INFO] [stdout]   --> src/config/settings.rs:69:12
[INFO] [stdout]    |
[INFO] [stdout] 23 | impl Config {
[INFO] [stdout]    | ----------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stdout]    |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `JsonRpc` is never constructed
[INFO] [stdout]   --> src/error.rs:13:5
[INFO] [stdout]    |
[INFO] [stdout]  5 | pub enum AppError {
[INFO] [stdout]    |          -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 13 |     JsonRpc(String),
[INFO] [stdout]    |     ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stdout]    --> src/ethereum/client.rs:86:18
[INFO] [stdout]     |
[INFO] [stdout]  25 | impl EthereumClient {
[INFO] [stdout]     | ------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 236 |     pub async fn debug_trace_transaction(
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 366 |     pub fn config(&self) -> &Config {
[INFO] [stdout]     |            ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `call_type` is never read
[INFO] [stdout]    --> src/ethereum/client.rs:383:9
[INFO] [stdout]     |
[INFO] [stdout] 373 | pub struct DebugTraceResult {
[INFO] [stdout]     |            ---------------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 383 |     pub call_type: String,
[INFO] [stdout]     |         ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stdout]    --> src/ethereum/client.rs:388:12
[INFO] [stdout]     |
[INFO] [stdout] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `format_balance` and `address` are never used
[INFO] [stdout]    --> src/ethereum/erc20.rs:111:18
[INFO] [stdout]     |
[INFO] [stdout]  27 | impl Erc20Token {
[INFO] [stdout]     | --------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stdout]     |                  ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |     pub fn address(&self) -> Address {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_token1` is never used
[INFO] [stdout]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stdout]     |
[INFO] [stdout]  88 | impl UniswapV2 {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stdout]   --> src/ethereum/swap.rs:94:9
[INFO] [stdout]    |
[INFO] [stdout] 88 | pub struct SwapSimulationResult {
[INFO] [stdout]    |            -------------------- fields in this struct
[INFO] [stdout] ...
[INFO] [stdout] 94 |     pub amount_in: U256,
[INFO] [stdout]    |         ^^^^^^^^^
[INFO] [stdout] 95 |     /// 预估输出数量（原始值）
[INFO] [stdout] 96 |     pub amount_out: U256,
[INFO] [stdout]    |         ^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/ethereum/swap.rs:156:12
[INFO] [stdout]     |
[INFO] [stdout] 145 | impl SwapSimulator {
[INFO] [stdout]     | ------------------ associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stdout]   --> src/mcp/protocol.rs:76:12
[INFO] [stdout]    |
[INFO] [stdout] 34 | impl JsonRpcResponse {
[INFO] [stdout]    | -------------------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ToolCall` is never constructed
[INFO] [stdout]    --> src/mcp/protocol.rs:117:12
[INFO] [stdout]     |
[INFO] [stdout] 117 | pub struct ToolCall {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 35.72s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] running `Command { std: "docker" "inspect" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266" "/opt/rustwide/cargo-home/bin/cargo" "+1.98.0-beta.6" "test" "--frozen" "--release", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `U256`
[INFO] [stderr]  --> src/config/settings.rs:1:34
[INFO] [stderr]   |
[INFO] [stderr] 1 | use alloy::primitives::{Address, U256};
[INFO] [stderr]   |                                  ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `ProviderBuilder`
[INFO] [stderr]  --> src/ethereum/client.rs:2:34
[INFO] [stderr]   |
[INFO] [stderr] 2 | use alloy::providers::{Provider, ProviderBuilder};
[INFO] [stderr]   |                                  ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `alloy::providers::ext::AnvilApi`
[INFO] [stderr]   --> src/ethereum/client.rs:28:13
[INFO] [stderr]    |
[INFO] [stderr] 28 |         use alloy::providers::ext::AnvilApi;
[INFO] [stderr]    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `Bytes`
[INFO] [stderr]  --> src/ethereum/swap.rs:1:34
[INFO] [stderr]   |
[INFO] [stderr] 1 | use alloy::primitives::{Address, Bytes, U256};
[INFO] [stderr]   |                                  ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::collections::HashMap`
[INFO] [stderr]  --> src/mcp/protocol.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::collections::HashMap;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `json`
[INFO] [stderr]  --> src/mcp/server.rs:3:18
[INFO] [stderr]   |
[INFO] [stderr] 3 | use serde_json::{json, Value};
[INFO] [stderr]   |                  ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `eth_mcp_trading` (lib) generated 6 warnings (run `cargo fix --lib -p eth_mcp_trading` to apply 6 suggestions)
[INFO] [stderr] warning: `eth_mcp_trading` (lib test) generated 6 warnings (6 duplicates)
[INFO] [stderr] warning: unused import: `U256`
[INFO] [stderr]  --> tests/erc20_tests.rs:1:34
[INFO] [stderr]   |
[INFO] [stderr] 1 | use alloy::primitives::{Address, U256};
[INFO] [stderr]   |                                  ^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `DebugTraceResult` and `DebugTraceTransactionResult`
[INFO] [stderr]  --> src/ethereum/mod.rs:7:18
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub use client::{DebugTraceResult, DebugTraceTransactionResult};
[INFO] [stderr]   |                  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `TokenPrice`, `UniswapV2`, `get_token_address_by_symbol`, and `get_token_decimals_by_symbol`
[INFO] [stderr]  --> src/ethereum/mod.rs:9:19
[INFO] [stderr]   |
[INFO] [stderr] 9 | pub use uniswap::{UniswapV2, TokenPrice, get_token_address_by_symbol, get_token_decimals_by_symbol};
[INFO] [stderr]   |                   ^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `SwapSimulationResult`, `SwapSimulator`, and `SwapType`
[INFO] [stderr]   --> src/ethereum/mod.rs:10:16
[INFO] [stderr]    |
[INFO] [stderr] 10 | pub use swap::{SwapSimulator, SwapSimulationResult, SwapType};
[INFO] [stderr]    |                ^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `create_get_balance_tool` and `handle_get_balance`
[INFO] [stderr]  --> src/mcp/tools/mod.rs:5:19
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub use balance::{create_get_balance_tool, handle_get_balance};
[INFO] [stderr]   |                   ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `create_get_token_price_tool` and `handle_get_token_price`
[INFO] [stderr]  --> src/mcp/tools/mod.rs:6:17
[INFO] [stderr]   |
[INFO] [stderr] 6 | pub use price::{create_get_token_price_tool, handle_get_token_price};
[INFO] [stderr]   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `create_swap_tokens_tool` and `handle_swap_tokens`
[INFO] [stderr]  --> src/mcp/tools/mod.rs:7:16
[INFO] [stderr]   |
[INFO] [stderr] 7 | pub use swap::{create_swap_tokens_tool, handle_swap_tokens};
[INFO] [stderr]   |                ^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `protocol::*`
[INFO] [stderr]  --> src/mcp/mod.rs:5:9
[INFO] [stderr]   |
[INFO] [stderr] 5 | pub use protocol::*;
[INFO] [stderr]   |         ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `error`
[INFO] [stderr]   --> src/main.rs:15:21
[INFO] [stderr]    |
[INFO] [stderr] 15 | use tracing::{info, error};
[INFO] [stderr]    |                     ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `wallet_private_key`, `uniswap_v2_router`, `uniswap_v3_router`, and `log_level` are never read
[INFO] [stderr]   --> src/config/settings.rs:14:9
[INFO] [stderr]    |
[INFO] [stderr]  8 | pub struct Config {
[INFO] [stderr]    |            ------ fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 14 |     pub wallet_private_key: Option<String>,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 15 |     /// Uniswap V2 Router 地址
[INFO] [stderr] 16 |     pub uniswap_v2_router: Address,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 17 |     /// Uniswap V3 Router 地址
[INFO] [stderr] 18 |     pub uniswap_v3_router: Address,
[INFO] [stderr]    |         ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 19 |     /// 日志级别
[INFO] [stderr] 20 |     pub log_level: String,
[INFO] [stderr]    |         ^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `Config` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method `validate` is never used
[INFO] [stderr]   --> src/config/settings.rs:69:12
[INFO] [stderr]    |
[INFO] [stderr] 23 | impl Config {
[INFO] [stderr]    | ----------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 69 |     pub fn validate(&self) -> crate::error::Result<()> {
[INFO] [stderr]    |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variant `JsonRpc` is never constructed
[INFO] [stderr]   --> src/error.rs:13:5
[INFO] [stderr]    |
[INFO] [stderr]  5 | pub enum AppError {
[INFO] [stderr]    |          -------- variant in this enum
[INFO] [stderr] ...
[INFO] [stderr] 13 |     JsonRpc(String),
[INFO] [stderr]    |     ^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `AppError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: methods `get_chain_id`, `estimate_gas`, `debug_trace_transaction`, and `config` are never used
[INFO] [stderr]    --> src/ethereum/client.rs:86:18
[INFO] [stderr]     |
[INFO] [stderr]  25 | impl EthereumClient {
[INFO] [stderr]     | ------------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr]  86 |     pub async fn get_chain_id(&self) -> Result<u64> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr]  97 |     pub async fn estimate_gas(&self, tx: alloy::rpc::types::TransactionRequest) -> Result<U256> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 236 |     pub async fn debug_trace_transaction(
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 366 |     pub fn config(&self) -> &Config {
[INFO] [stderr]     |            ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `call_type` is never read
[INFO] [stderr]    --> src/ethereum/client.rs:383:9
[INFO] [stderr]     |
[INFO] [stderr] 373 | pub struct DebugTraceResult {
[INFO] [stderr]     |            ---------------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 383 |     pub call_type: String,
[INFO] [stderr]     |         ^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `DebugTraceResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: struct `DebugTraceTransactionResult` is never constructed
[INFO] [stderr]    --> src/ethereum/client.rs:388:12
[INFO] [stderr]     |
[INFO] [stderr] 388 | pub struct DebugTraceTransactionResult {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `format_balance` and `address` are never used
[INFO] [stderr]    --> src/ethereum/erc20.rs:111:18
[INFO] [stderr]     |
[INFO] [stderr]  27 | impl Erc20Token {
[INFO] [stderr]     | --------------- methods in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 111 |     pub async fn format_balance(&self, balance: U256) -> Result<Decimal> {
[INFO] [stderr]     |                  ^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 144 |     pub fn address(&self) -> Address {
[INFO] [stderr]     |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_token1` is never used
[INFO] [stderr]    --> src/ethereum/uniswap.rs:159:18
[INFO] [stderr]     |
[INFO] [stderr]  88 | impl UniswapV2 {
[INFO] [stderr]     | -------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 159 |     pub async fn get_token1(&self, pair_address: Address) -> Result<Address> {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: fields `amount_in` and `amount_out` are never read
[INFO] [stderr]   --> src/ethereum/swap.rs:94:9
[INFO] [stderr]    |
[INFO] [stderr] 88 | pub struct SwapSimulationResult {
[INFO] [stderr]    |            -------------------- fields in this struct
[INFO] [stderr] ...
[INFO] [stderr] 94 |     pub amount_in: U256,
[INFO] [stderr]    |         ^^^^^^^^^
[INFO] [stderr] 95 |     /// 预估输出数量（原始值）
[INFO] [stderr] 96 |     pub amount_out: U256,
[INFO] [stderr]    |         ^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `SwapSimulationResult` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> src/ethereum/swap.rs:156:12
[INFO] [stderr]     |
[INFO] [stderr] 145 | impl SwapSimulator {
[INFO] [stderr]     | ------------------ associated function in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 156 |     pub fn new(client: Arc<EthereumClient>, router_address: Address, wrapped_native: Address) -> Self {
[INFO] [stderr]     |            ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated functions `method_not_found` and `invalid_params` are never used
[INFO] [stderr]   --> src/mcp/protocol.rs:76:12
[INFO] [stderr]    |
[INFO] [stderr] 34 | impl JsonRpcResponse {
[INFO] [stderr]    | -------------------- associated functions in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 76 |     pub fn method_not_found(id: Option<Value>) -> Self {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 86 |     pub fn invalid_params(id: Option<Value>, message: Option<String>) -> Self {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `ToolCall` is never constructed
[INFO] [stderr]    --> src/mcp/protocol.rs:117:12
[INFO] [stderr]     |
[INFO] [stderr] 117 | pub struct ToolCall {
[INFO] [stderr]     |            ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `eth_mcp_trading` (test "erc20_tests") generated 1 warning (run `cargo fix --test "erc20_tests" -p eth_mcp_trading` to apply 1 suggestion)
[INFO] [stderr] warning: `eth_mcp_trading` (bin "eth_mcp_trading" test) generated 26 warnings (6 duplicates) (run `cargo fix --bin "eth_mcp_trading" -p eth_mcp_trading --tests` to apply 8 suggestions)
[INFO] [stderr] warning: `eth_mcp_trading` (bin "eth_mcp_trading") generated 26 warnings (26 duplicates)
[INFO] [stderr]     Finished `release` profile [optimized] target(s) in 0.46s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: proc-macro-error2 v2.0.1
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/release/deps/eth_mcp_trading-26a691f8de204be1)
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_large_value ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_exact_power_of_10 ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_one ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_small_value ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_very_small ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_zero ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_8_decimals ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_large ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_6_decimals ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_medium ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_small ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_very_small ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_decimal_to_raw ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_format_u256_with_decimals ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests src/main.rs (/opt/rustwide/target/release/deps/eth_mcp_trading-53ccccdd9f8e9cf0)
[INFO] [stdout] 
[INFO] [stdout] running 14 tests
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_6_decimals ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_large_value ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_small_value ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_one ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_zero ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_very_small ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_exact_power_of_10 ... ok
[INFO] [stdout] test ethereum::erc20::tests::test_format_balance_with_decimals_8_decimals ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_large ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_medium ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_small ... ok
[INFO] [stdout] test mcp::tools::price::tests::test_format_price_very_small ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_decimal_to_raw ... ok
[INFO] [stdout] test mcp::tools::swap::tests::test_format_u256_with_decimals ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 14 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
[INFO] [stdout] 
[INFO] [stderr]      Running tests/erc20_tests.rs (/opt/rustwide/target/release/deps/erc20_tests-8e20065326aae924)
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test test_erc20_format_balance_integration ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- test_erc20_format_balance_integration stdout ----
[INFO] [stdout] 
[INFO] [stdout] thread 'test_erc20_format_balance_integration' (6401) panicked at tests/erc20_tests.rs:31:43:
[INFO] [stdout] 获取 Token 精度失败，请检查网络或代币地址: Contract("合约调用失败: error sending request for url (https://eth.llamarpc.com/)")
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x56d1f34f0e11 - <<std[93043b772a62376c]::sys::backtrace::BacktraceLock>::print::DisplayBacktrace as core[812a354ff5be3162]::fmt::Display>::fmt
[INFO] [stdout]    1:     0x56d1f350735a - core[812a354ff5be3162]::fmt::write
[INFO] [stdout]    2:     0x56d1f34f5a2c - <alloc[9902a75dd20b7c99]::vec::Vec<u8> as std[93043b772a62376c]::io::Write>::write_fmt
[INFO] [stdout]    3:     0x56d1f34ce026 - std[93043b772a62376c]::panicking::default_hook::{closure#0}
[INFO] [stdout]    4:     0x56d1f34e8769 - std[93043b772a62376c]::panicking::default_hook
[INFO] [stdout]    5:     0x56d1f31ffe20 - test[8de0c696b8e66f4f]::test_main_inner::<test[8de0c696b8e66f4f]::test_main_static::{closure#0}>::{closure#0}
[INFO] [stdout]    6:     0x56d1f34e8a92 - std[93043b772a62376c]::panicking::panic_with_hook
[INFO] [stdout]    7:     0x56d1f34ce0d2 - std[93043b772a62376c]::panicking::panic_handler::{closure#0}
[INFO] [stdout]    8:     0x56d1f34c5949 - std[93043b772a62376c]::sys::backtrace::__rust_end_short_backtrace::<std[93043b772a62376c]::panicking::panic_handler::{closure#0}, !>
[INFO] [stdout]    9:     0x56d1f34ceebd - __rustc[9fcb67b4460bf95]::rust_begin_unwind
[INFO] [stdout]   10:     0x56d1f3507abc - core[812a354ff5be3162]::panicking::panic_fmt
[INFO] [stdout]   11:     0x56d1f3507892 - core[812a354ff5be3162]::result::unwrap_failed
[INFO] [stdout]   12:     0x56d1f31e0f1b - erc20_tests[c86d8c46242c29b6]::test_erc20_format_balance_integration::{closure#0}
[INFO] [stdout]   13:     0x56d1f31e6b83 - <tokio[1dea3b27e77b2b33]::runtime::scheduler::current_thread::Context>::enter::<core[812a354ff5be3162]::task::poll::Poll<()>, <tokio[1dea3b27e77b2b33]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[812a354ff5be3162]::pin::Pin<&mut core[812a354ff5be3162]::pin::Pin<&mut dyn core[812a354ff5be3162]::future::future::Future<Output = ()>>>>::{closure#0}::{closure#0}>
[INFO] [stdout]   14:     0x56d1f31ea31c - <tokio[1dea3b27e77b2b33]::runtime::context::scoped::Scoped<tokio[1dea3b27e77b2b33]::runtime::scheduler::Context>>::set::<<tokio[1dea3b27e77b2b33]::runtime::scheduler::current_thread::CoreGuard>::enter<<tokio[1dea3b27e77b2b33]::runtime::scheduler::current_thread::CoreGuard>::block_on<core[812a354ff5be3162]::pin::Pin<&mut core[812a354ff5be3162]::pin::Pin<&mut dyn core[812a354ff5be3162]::future::future::Future<Output = ()>>>>::{closure#0}, core[812a354ff5be3162]::option::Option<()>>::{closure#0}, (alloc[9902a75dd20b7c99]::boxed::Box<tokio[1dea3b27e77b2b33]::runtime::scheduler::current_thread::Core>, core[812a354ff5be3162]::option::Option<()>)>
[INFO] [stdout]   15:     0x56d1f31e6ed7 - <tokio[1dea3b27e77b2b33]::runtime::scheduler::current_thread::CoreGuard>::block_on::<core[812a354ff5be3162]::pin::Pin<&mut core[812a354ff5be3162]::pin::Pin<&mut dyn core[812a354ff5be3162]::future::future::Future<Output = ()>>>>
[INFO] [stdout]   16:     0x56d1f31edb5d - tokio[1dea3b27e77b2b33]::runtime::context::runtime::enter_runtime::<<tokio[1dea3b27e77b2b33]::runtime::scheduler::current_thread::CurrentThread>::block_on<core[812a354ff5be3162]::pin::Pin<&mut dyn core[812a354ff5be3162]::future::future::Future<Output = ()>>>::{closure#0}, ()>
[INFO] [stdout]   17:     0x56d1f31e6a65 - <tokio[1dea3b27e77b2b33]::runtime::runtime::Runtime>::block_on::<core[812a354ff5be3162]::pin::Pin<&mut dyn core[812a354ff5be3162]::future::future::Future<Output = ()>>>
[INFO] [stdout]   18:     0x56d1f31e22be - <erc20_tests[c86d8c46242c29b6]::test_erc20_format_balance_integration::{closure#0} as core[812a354ff5be3162]::ops::function::FnOnce<()>>::call_once
[INFO] [stdout]   19:     0x56d1f31f315b - test[8de0c696b8e66f4f]::__rust_begin_short_backtrace::<core[812a354ff5be3162]::result::Result<(), alloc[9902a75dd20b7c99]::string::String>, fn() -> core[812a354ff5be3162]::result::Result<(), alloc[9902a75dd20b7c99]::string::String>>
[INFO] [stdout]   20:     0x56d1f32007a5 - test[8de0c696b8e66f4f]::run_test::{closure#0}
[INFO] [stdout]   21:     0x56d1f31fb254 - std[93043b772a62376c]::sys::backtrace::__rust_begin_short_backtrace::<test[8de0c696b8e66f4f]::run_test::{closure#1}, ()>
[INFO] [stdout]   22:     0x56d1f32038f2 - <std[93043b772a62376c]::thread::lifecycle::spawn_unchecked<test[8de0c696b8e66f4f]::run_test::{closure#1}, ()>::{closure#1} as core[812a354ff5be3162]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0}
[INFO] [stdout]   23:     0x56d1f34f02ef - <std[93043b772a62376c]::sys::thread::unix::Thread>::new::thread_start
[INFO] [stdout]   24:     0x72ab6558007a - <unknown>
[INFO] [stdout]   25:     0x72ab65613534 - clone
[INFO] [stdout]   26:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     test_erc20_format_balance_integration
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.05s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--test erc20_tests`
[INFO] running `Command { std: "docker" "inspect" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266", kill_on_drop: false }`
[INFO] [stdout] 836357284a5d0d268bc95c7963123250dffd2962e359d342f3606f0f62ab2266
