[INFO] fetching crate pancakeswap-sdk 0.6.5... [INFO] testing pancakeswap-sdk-0.6.5 against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-8 [INFO] extracting crate pancakeswap-sdk 0.6.5 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate pancakeswap-sdk 0.6.5 [INFO] finished tweaking crates.io crate pancakeswap-sdk 0.6.5 [INFO] tweaked toml for crates.io crate pancakeswap-sdk 0.6.5 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pancakeswap-sdk 0.6.5 on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate pancakeswap-sdk 0.6.5 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded evm-client v0.1.5 [INFO] [stderr] Downloaded eth-keystore v0.5.0 [INFO] [stderr] Downloaded coins-core v0.8.7 [INFO] [stderr] Downloaded svm-rs v0.3.5 [INFO] [stderr] Downloaded ethers-addressbook v2.0.14 [INFO] [stderr] Downloaded evm-sdk v0.5.0 [INFO] [stderr] Downloaded scrypt v0.10.0 [INFO] [stderr] Downloaded ethers v2.0.14 [INFO] [stderr] Downloaded ethers-etherscan v2.0.14 [INFO] [stderr] Downloaded indenter v0.3.4 [INFO] [stderr] Downloaded futures-locks v0.7.1 [INFO] [stderr] Downloaded ethers-contract-derive v2.0.14 [INFO] [stderr] Downloaded solang-parser v0.3.3 [INFO] [stderr] Downloaded ethers-contract v2.0.14 [INFO] [stderr] Downloaded password-hash v0.4.2 [INFO] [stderr] Downloaded open-fastrlp-derive v0.1.1 [INFO] [stderr] Downloaded path-slash v0.2.1 [INFO] [stderr] Downloaded ethers-contract-abigen v2.0.14 [INFO] [stderr] Downloaded coins-bip39 v0.8.7 [INFO] [stderr] Downloaded jsonwebtoken v8.3.0 [INFO] [stderr] Downloaded ethers-providers v2.0.14 [INFO] [stderr] Downloaded ethers-core v2.0.14 [INFO] [stderr] Downloaded zip v0.6.6 [INFO] [stderr] Downloaded primitive-types v0.14.0 [INFO] [stderr] Downloaded open-fastrlp v0.1.4 [INFO] [stderr] Downloaded ethers-middleware v2.0.14 [INFO] [stderr] Downloaded ethers-solc v2.0.14 [INFO] [stderr] Downloaded enr v0.10.0 [INFO] [stderr] Downloaded coins-bip32 v0.8.7 [INFO] [stderr] Downloaded ethers-signers v2.0.14 [INFO] [stderr] Downloaded hashers v1.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 501a65d3cded2f970b98b0c4c702bd86e3b7d6d05a5b17a1f5f893a23110f922 [INFO] running `Command { std: "docker" "start" "-a" "501a65d3cded2f970b98b0c4c702bd86e3b7d6d05a5b17a1f5f893a23110f922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "501a65d3cded2f970b98b0c4c702bd86e3b7d6d05a5b17a1f5f893a23110f922", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "501a65d3cded2f970b98b0c4c702bd86e3b7d6d05a5b17a1f5f893a23110f922", kill_on_drop: false }` [INFO] [stdout] 501a65d3cded2f970b98b0c4c702bd86e3b7d6d05a5b17a1f5f893a23110f922 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5bb3984d62ffa9d55223c5a217f6085effa0872899d805a1af3847bae6f6a3d1 [INFO] running `Command { std: "docker" "start" "-a" "5bb3984d62ffa9d55223c5a217f6085effa0872899d805a1af3847bae6f6a3d1", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.20 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling generic-array v0.14.9 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling toml_datetime v0.7.3 [INFO] [stderr] Compiling cc v1.2.43 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling parity-scale-codec v3.7.5 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling zeroize v1.8.2 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling stable_deref_trait v1.2.1 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling camino v1.2.1 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling syn v2.0.108 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.105 [INFO] [stderr] Compiling openssl v0.10.74 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling regex-automata v0.4.13 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling const-hex v1.17.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling openssl-sys v0.9.110 [INFO] [stderr] Compiling const_format v0.2.35 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling iana-time-zone v0.1.64 [INFO] [stderr] Compiling chrono v0.4.42 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling toml_parser v1.0.4 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Compiling wasm-bindgen v0.2.105 [INFO] [stderr] Compiling prettyplease v0.2.37 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Compiling time-core v0.1.6 [INFO] [stderr] Compiling rlp-derive v0.1.0 [INFO] [stderr] Compiling toml_edit v0.23.7 [INFO] [stderr] Compiling regex v1.12.2 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling time-macros v0.2.24 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling deranged v0.5.5 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling indenter v0.3.4 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling ripemd v0.1.3 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling bech32 v0.9.1 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling send_wrapper v0.4.0 [INFO] [stderr] Compiling hashers v1.0.1 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling scrypt v0.10.0 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling time v0.3.44 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling futures-locks v0.7.1 [INFO] [stderr] Compiling csv-core v0.1.13 [INFO] [stderr] Compiling uint v0.10.0 [INFO] [stderr] Compiling primitive-types v0.14.0 [INFO] [stderr] Compiling csv v1.4.0 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.105 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.5 [INFO] [stderr] Compiling impl-trait-for-tuples v0.2.3 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling scale-info-derive v2.11.6 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.6.0 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling zerovec v0.11.4 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.105 [INFO] [stderr] Compiling num_enum v0.7.5 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.3 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling impl-serde v0.4.0 [INFO] [stderr] Compiling cargo-platform v0.1.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling coins-core v0.8.7 [INFO] [stderr] Compiling uuid v0.8.2 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling cargo_metadata v0.18.1 [INFO] [stderr] Compiling coins-bip32 v0.8.7 [INFO] [stderr] Compiling eth-keystore v0.5.0 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling impl-codec v0.6.0 [INFO] [stderr] Compiling scale-info v2.11.6 [INFO] [stderr] Compiling js-sys v0.3.82 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling tokio v1.48.0 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling enr v0.10.0 [INFO] [stderr] Compiling open-fastrlp-derive v0.1.1 [INFO] [stderr] Compiling coins-bip39 v0.8.7 [INFO] [stderr] Compiling ethbloom v0.13.0 [INFO] [stderr] Compiling primitive-types v0.12.2 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling ethereum-types v0.14.1 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling ethabi v18.0.0 [INFO] [stderr] Compiling open-fastrlp v0.1.4 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling ethers-core v2.0.14 [INFO] [stderr] Compiling gloo-timers v0.2.6 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-rustls v0.24.1 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tokio-tungstenite v0.20.1 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling ethers-contract-abigen v2.0.14 [INFO] [stderr] Compiling ethers-signers v2.0.14 [INFO] [stderr] Compiling ethers-addressbook v2.0.14 [INFO] [stderr] Compiling ethers-contract-derive v2.0.14 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.27 [INFO] [stderr] Compiling ethers-providers v2.0.14 [INFO] [stderr] Compiling ethers-etherscan v2.0.14 [INFO] [stderr] Compiling ethers-contract v2.0.14 [INFO] [stderr] Compiling ethers-middleware v2.0.14 [INFO] [stderr] Compiling ethers v2.0.14 [INFO] [stderr] Compiling evm-client v0.1.5 [INFO] [stderr] Compiling evm-sdk v0.5.0 [INFO] [stderr] Compiling pancakeswap-sdk v0.6.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tool.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | use super::*; [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 imports: `Http`, `LocalWallet`, and `Provider` [INFO] [stdout] --> src/lib.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | providers::{Http, Provider}, [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] 19 | signers::{LocalWallet, Signer}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/farm.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | / vec![ [INFO] [stdout] 482 | | todo!(), // This is pending and not yet implemented [INFO] [stdout] | | ------- any code following this expression is unreachable [INFO] [stdout] 483 | | ] [INFO] [stdout] | |_________________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/limit_order.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/analytics.rs:530:40 [INFO] [stdout] | [INFO] [stdout] 530 | async fn estimate_usd_price(&self, token: Address) -> f64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_out` [INFO] [stdout] --> src/analytics.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | amount_out: U256, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factory` [INFO] [stdout] --> src/farm.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | factory: &ISmartChefFactory>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factory` [INFO] [stdout] --> src/farm.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 314 | factory: &ISmartChefFactory>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/limit_order.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | current_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/limit_order.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | order_id: U256, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router_address` [INFO] [stdout] --> src/limit_order.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | router_address: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_router_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/limit_order.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let client = self.evm.client.clone(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/limit_order.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_number` [INFO] [stdout] --> src/multicall.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | let (block_number, return_data) = multicall [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `factory`, `liquidity`, `price`, and `analytics` are never read [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct PancakeSwapService { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | factory: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | liquidity: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | price: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | analytics: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3m 16s [INFO] running `Command { std: "docker" "inspect" "5bb3984d62ffa9d55223c5a217f6085effa0872899d805a1af3847bae6f6a3d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bb3984d62ffa9d55223c5a217f6085effa0872899d805a1af3847bae6f6a3d1", kill_on_drop: false }` [INFO] [stdout] 5bb3984d62ffa9d55223c5a217f6085effa0872899d805a1af3847bae6f6a3d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f5c120a300bd0fbd0a90a729f3a9d5dafb74e45075a378b26df18b7c2524670b [INFO] running `Command { std: "docker" "start" "-a" "f5c120a300bd0fbd0a90a729f3a9d5dafb74e45075a378b26df18b7c2524670b", kill_on_drop: false }` [INFO] [stderr] Compiling pancakeswap-sdk v0.6.5 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tool.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | use super::*; [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 imports: `Http`, `LocalWallet`, and `Provider` [INFO] [stdout] --> src/lib.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | providers::{Http, Provider}, [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] 19 | signers::{LocalWallet, Signer}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/farm.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | / vec![ [INFO] [stdout] 482 | | todo!(), // This is pending and not yet implemented [INFO] [stdout] | | ------- any code following this expression is unreachable [INFO] [stdout] 483 | | ] [INFO] [stdout] | |_________________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/limit_order.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/analytics.rs:530:40 [INFO] [stdout] | [INFO] [stdout] 530 | async fn estimate_usd_price(&self, token: Address) -> f64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_out` [INFO] [stdout] --> src/analytics.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | amount_out: U256, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factory` [INFO] [stdout] --> src/farm.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | factory: &ISmartChefFactory>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factory` [INFO] [stdout] --> src/farm.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 314 | factory: &ISmartChefFactory>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/limit_order.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | current_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/limit_order.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | order_id: U256, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router_address` [INFO] [stdout] --> src/limit_order.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | router_address: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_router_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/limit_order.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let client = self.evm.client.clone(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/limit_order.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_number` [INFO] [stdout] --> src/multicall.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | let (block_number, return_data) = multicall [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `factory`, `liquidity`, `price`, and `analytics` are never read [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct PancakeSwapService { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | factory: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | liquidity: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | price: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | analytics: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/tool.rs:323:9 [INFO] [stdout] | [INFO] [stdout] 323 | use super::*; [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 imports: `Http`, `LocalWallet`, and `Provider` [INFO] [stdout] --> src/lib.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | providers::{Http, Provider}, [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] 19 | signers::{LocalWallet, Signer}, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/farm.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | / vec![ [INFO] [stdout] 482 | | todo!(), // This is pending and not yet implemented [INFO] [stdout] | | ------- any code following this expression is unreachable [INFO] [stdout] 483 | | ] [INFO] [stdout] | |_________________^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/limit_order.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/analytics.rs:530:40 [INFO] [stdout] | [INFO] [stdout] 530 | async fn estimate_usd_price(&self, token: Address) -> f64 { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_out` [INFO] [stdout] --> src/analytics.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | amount_out: U256, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factory` [INFO] [stdout] --> src/farm.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | factory: &ISmartChefFactory>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `factory` [INFO] [stdout] --> src/farm.rs:314:9 [INFO] [stdout] | [INFO] [stdout] 314 | factory: &ISmartChefFactory>, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_price` [INFO] [stdout] --> src/limit_order.rs:157:9 [INFO] [stdout] | [INFO] [stdout] 157 | current_price: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order_id` [INFO] [stdout] --> src/limit_order.rs:167:9 [INFO] [stdout] | [INFO] [stdout] 167 | order_id: U256, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `router_address` [INFO] [stdout] --> src/limit_order.rs:168:9 [INFO] [stdout] | [INFO] [stdout] 168 | router_address: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_router_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `client` [INFO] [stdout] --> src/limit_order.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 170 | let client = self.evm.client.clone(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `interval` [INFO] [stdout] --> src/limit_order.rs:171:13 [INFO] [stdout] | [INFO] [stdout] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block_number` [INFO] [stdout] --> src/multicall.rs:61:14 [INFO] [stdout] | [INFO] [stdout] 61 | let (block_number, return_data) = multicall [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `factory`, `liquidity`, `price`, and `analytics` are never read [INFO] [stdout] --> src/lib.rs:44:5 [INFO] [stdout] | [INFO] [stdout] 41 | pub struct PancakeSwapService { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] ... [INFO] [stdout] 44 | factory: Arc, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 45 | liquidity: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 46 | price: Arc, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | analytics: Arc, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 13.23s [INFO] running `Command { std: "docker" "inspect" "f5c120a300bd0fbd0a90a729f3a9d5dafb74e45075a378b26df18b7c2524670b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5c120a300bd0fbd0a90a729f3a9d5dafb74e45075a378b26df18b7c2524670b", kill_on_drop: false }` [INFO] [stdout] f5c120a300bd0fbd0a90a729f3a9d5dafb74e45075a378b26df18b7c2524670b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,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" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 762bcc7649ce159625fea6ac8e9fba0e86c2ae2de020c039dee0b99e0ea9999e [INFO] running `Command { std: "docker" "start" "-a" "762bcc7649ce159625fea6ac8e9fba0e86c2ae2de020c039dee0b99e0ea9999e", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> src/tool.rs:323:9 [INFO] [stderr] | [INFO] [stderr] 323 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Http`, `LocalWallet`, and `Provider` [INFO] [stderr] --> src/lib.rs:18:17 [INFO] [stderr] | [INFO] [stderr] 18 | providers::{Http, Provider}, [INFO] [stderr] | ^^^^ ^^^^^^^^ [INFO] [stderr] 19 | signers::{LocalWallet, Signer}, [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unreachable expression [INFO] [stderr] --> src/farm.rs:481:17 [INFO] [stderr] | [INFO] [stderr] 481 | / vec![ [INFO] [stderr] 482 | | todo!(), // This is pending and not yet implemented [INFO] [stderr] | | ------- any code following this expression is unreachable [INFO] [stderr] 483 | | ] [INFO] [stderr] | |_________________^ unreachable expression [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/limit_order.rs:171:13 [INFO] [stderr] | [INFO] [stderr] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `token` [INFO] [stderr] --> src/analytics.rs:530:40 [INFO] [stderr] | [INFO] [stderr] 530 | async fn estimate_usd_price(&self, token: Address) -> f64 { [INFO] [stderr] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `amount_out` [INFO] [stderr] --> src/analytics.rs:238:9 [INFO] [stderr] | [INFO] [stderr] 238 | amount_out: U256, [INFO] [stderr] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount_out` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `factory` [INFO] [stderr] --> src/farm.rs:302:9 [INFO] [stderr] | [INFO] [stderr] 302 | factory: &ISmartChefFactory>, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `factory` [INFO] [stderr] --> src/farm.rs:314:9 [INFO] [stderr] | [INFO] [stderr] 314 | factory: &ISmartChefFactory>, [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_factory` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `current_price` [INFO] [stderr] --> src/limit_order.rs:157:9 [INFO] [stderr] | [INFO] [stderr] 157 | current_price: f64, [INFO] [stderr] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_price` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `order_id` [INFO] [stderr] --> src/limit_order.rs:167:9 [INFO] [stderr] | [INFO] [stderr] 167 | order_id: U256, [INFO] [stderr] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_order_id` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `router_address` [INFO] [stderr] --> src/limit_order.rs:168:9 [INFO] [stderr] | [INFO] [stderr] 168 | router_address: Address, [INFO] [stderr] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_router_address` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `client` [INFO] [stderr] --> src/limit_order.rs:170:13 [INFO] [stderr] | [INFO] [stderr] 170 | let client = self.evm.client.clone(); [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_client` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `interval` [INFO] [stderr] --> src/limit_order.rs:171:13 [INFO] [stderr] | [INFO] [stderr] 171 | let mut interval = interval(Duration::from_secs(10)); // 每10秒检查一次 [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_interval` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `block_number` [INFO] [stderr] --> src/multicall.rs:61:14 [INFO] [stderr] | [INFO] [stderr] 61 | let (block_number, return_data) = multicall [INFO] [stderr] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_block_number` [INFO] [stderr] [INFO] [stderr] warning: fields `factory`, `liquidity`, `price`, and `analytics` are never read [INFO] [stderr] --> src/lib.rs:44:5 [INFO] [stderr] | [INFO] [stderr] 41 | pub struct PancakeSwapService { [INFO] [stderr] | ------------------ fields in this struct [INFO] [stderr] ... [INFO] [stderr] 44 | factory: Arc, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] 45 | liquidity: Arc, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] 46 | price: Arc, [INFO] [stderr] | ^^^^^ [INFO] [stderr] 47 | analytics: Arc, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `pancakeswap-sdk` (lib) generated 15 warnings (run `cargo fix --lib -p pancakeswap-sdk` to apply 13 suggestions) [INFO] [stderr] warning: `pancakeswap-sdk` (lib test) generated 15 warnings (15 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.41s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pancakeswap_sdk-7af5304e39555675) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests pancakeswap_sdk [INFO] [stdout] [INFO] [stdout] running 66 tests [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::cal_volume_24h (line 597) ... FAILED [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::cal_rsi (line 840) ... FAILED [INFO] [stdout] test src/factory.rs - factory::FactoryService::all_pairs (line 251) ... FAILED [INFO] [stdout] test src/factory.rs - factory::FactoryService::create_pair (line 175) ... FAILED [INFO] [stdout] test src/factory.rs - factory::FactoryService::get_pair (line 140) ... FAILED [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::cal_moving_average (line 774) ... FAILED [INFO] [stdout] test src/factory.rs - factory::FactoryService::all_pairs_length (line 228) ... FAILED [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::analyze_pair (line 76) ... FAILED [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::cal_liquidity_value (line 380) ... FAILED [INFO] [stdout] test src/events.rs - events::PancakeSwapEventListener::start_swap_listener (line 77) - compile ... FAILED [INFO] [stdout] test src/factory.rs - factory::FactoryService::get_pools_by_token (line 31) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::deposit_to_farm (line 642) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::get_all_farms (line 91) ... FAILED [INFO] [stdout] test src/events.rs - events::PancakeSwapEventListener::start_pair_created_listener (line 107) - compile ... FAILED [INFO] [stdout] test src/events.rs - events::PancakeSwapEventListener::start_v3_swap_listener (line 165) - compile ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::get_all_syrup_pools (line 225) ... FAILED [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::get_top_pairs (line 712) ... FAILED [INFO] [stdout] test src/factory.rs - factory::FactoryService::pair_exists (line 330) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::emergency_withdraw_from_farm (line 716) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::get_user_farm_info (line 171) ... FAILED [INFO] [stdout] test src/factory.rs - factory::FactoryService::get_all_pairs (line 299) ... FAILED [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::cal_trades_24h (line 669) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::withdraw_from_farm (line 680) ... FAILED [INFO] [stdout] test src/lib.rs - PancakeSwapService::get_amounts_out_v2 (line 66) ... FAILED [INFO] [stdout] test src/analytics.rs - analytics::AnalyticsService::find_arbitrage_opportunities (line 125) ... FAILED [INFO] [stdout] test src/lib.rs - PancakeSwapService::auto_swap (line 256) ... FAILED [INFO] [stdout] test src/limit_order.rs - limit_order::LimitOrderService::execute_limit_order (line 182) ... FAILED [INFO] [stdout] test src/lib.rs - PancakeSwapService::swap_v2 (line 120) ... FAILED [INFO] [stdout] test src/liquidity.rs - liquidity::LiquidityService::cal_liquidity_value (line 131) ... FAILED [INFO] [stdout] test src/multicall.rs - multicall::MulticallService::get_multiple_token_balances (line 227) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::get_syrup_pool_info (line 514) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::get_user_syrup_pool_info (line 603) ... FAILED [INFO] [stdout] test src/liquidity.rs - liquidity::LiquidityService::get_reserves (line 61) ... FAILED [INFO] [stdout] test src/multicall.rs - multicall::MulticallService::aggregate (line 35) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::get_farm_info (line 121) ... FAILED [INFO] [stdout] test src/liquidity.rs - liquidity::PoolInfo::cal_price (line 246) ... FAILED [INFO] [stdout] test src/multicall.rs - multicall::MulticallService::get_prices_batch (line 177) ... FAILED [INFO] [stdout] test src/multicall.rs - multicall::MulticallService::get_reserves_batch (line 130) ... FAILED [INFO] [stdout] test src/liquidity.rs - liquidity::LiquidityService::get_pair_info (line 20) ... FAILED [INFO] [stdout] test src/price.rs - price::PriceService::get_price_impact (line 266) ... FAILED [INFO] [stdout] test src/price.rs - price::PriceService::get_price (line 33) ... FAILED [INFO] [stdout] test src/price.rs - price::PriceService::find_optimal_path (line 313) ... FAILED [INFO] [stdout] test src/limit_order.rs - limit_order::LimitOrderService::check_and_execute_orders (line 283) ... FAILED [INFO] [stdout] test src/liquidity.rs - liquidity::LiquidityService::get_all_pairs (line 175) ... FAILED [INFO] [stdout] test src/multicall.rs - multicall::MulticallService::get_token_balances (line 79) ... FAILED [INFO] [stdout] test src/price.rs - price::PriceService::get_prices (line 72) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::get_amount_out (line 332) ... FAILED [INFO] [stdout] test src/price.rs - price::PriceService::get_price_via_pair (line 226) ... FAILED [INFO] [stdout] test src/limit_order.rs - limit_order::LimitOrderService::cancel_limit_order (line 233) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::get_amount_in (line 366) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::swap_exact_tokens_for_tokens_supporting_fee_on_transfer_tokens (line 76) ... FAILED [INFO] [stdout] test src/farm.rs - farm::FarmingService::pool_length (line 69) ... FAILED [INFO] [stdout] test src/lib.rs - PancakeSwapService::swap_v3 (line 187) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::get_factory_from_router (line 248) ... FAILED [INFO] [stdout] test src/limit_order.rs - limit_order::LimitOrderService::create_limit_order (line 62) ... FAILED [INFO] [stdout] test src/price.rs - price::PriceService::get_token_price (line 116) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::get_weth_address_from_router (line 273) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::swap_exact_tokens_for_eth_supporting_fee_on_transfer_tokens (line 190) ... FAILED [INFO] [stdout] test src/v3_position.rs - v3_position::V3PositionService::get_user_positions (line 46) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::swap_exact_eth_for_tokens_supporting_fee_on_transfer_tokens (line 131) ... FAILED [INFO] [stdout] test src/v3_position.rs - v3_position::V3PositionService::get_position_info (line 97) ... FAILED [INFO] [stdout] test src/v3_position.rs - v3_position::V3PositionService::increase_liquidity (line 247) ... FAILED [INFO] [stdout] test src/v3_position.rs - v3_position::V3PositionService::decrease_liquidity (line 316) ... FAILED [INFO] [stdout] test src/v3_position.rs - v3_position::V3PositionService::collect_fees (line 381) ... FAILED [INFO] [stdout] test src/router.rs - router::RouterService::quote (line 298) ... FAILED [INFO] [stdout] test src/v3_position.rs - v3_position::V3PositionService::create_position (line 159) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::cal_volume_24h (line 597) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:598:5 [INFO] [stdout] | [INFO] [stdout] 598 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/analytics.rs:601:37 [INFO] [stdout] | [INFO] [stdout] 601 | let service = AnalyticsService::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::cal_rsi (line 840) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:841:5 [INFO] [stdout] | [INFO] [stdout] 841 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/analytics.rs:844:37 [INFO] [stdout] | [INFO] [stdout] 844 | let service = AnalyticsService::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/factory.rs - factory::FactoryService::all_pairs (line 251) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryService` [INFO] [stdout] --> src/factory.rs:254:23 [INFO] [stdout] | [INFO] [stdout] 254 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FactoryService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 251 + use pancakeswap_sdk::factory::FactoryService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/factory.rs:254:55 [INFO] [stdout] | [INFO] [stdout] 254 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/factory.rs:259:10 [INFO] [stdout] | [INFO] [stdout] 259 | Ok::<(), EvmError>(()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 251 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/factory.rs - factory::FactoryService::create_pair (line 175) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryService` [INFO] [stdout] --> src/factory.rs:178:23 [INFO] [stdout] | [INFO] [stdout] 178 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FactoryService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 175 + use pancakeswap_sdk::factory::FactoryService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/factory.rs:178:55 [INFO] [stdout] | [INFO] [stdout] 178 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/factory.rs:184:10 [INFO] [stdout] | [INFO] [stdout] 184 | Ok::<(), EvmError>(()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 175 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/factory.rs - factory::FactoryService::get_pair (line 140) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryService` [INFO] [stdout] --> src/factory.rs:143:23 [INFO] [stdout] | [INFO] [stdout] 143 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FactoryService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 140 + use pancakeswap_sdk::factory::FactoryService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/factory.rs:143:55 [INFO] [stdout] | [INFO] [stdout] 143 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/factory.rs:149:10 [INFO] [stdout] | [INFO] [stdout] 149 | Ok::<(), EvmError>(()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 140 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::cal_moving_average (line 774) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:775:5 [INFO] [stdout] | [INFO] [stdout] 775 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/analytics.rs:778:37 [INFO] [stdout] | [INFO] [stdout] 778 | let service = AnalyticsService::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/factory.rs - factory::FactoryService::all_pairs_length (line 228) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryService` [INFO] [stdout] --> src/factory.rs:231:23 [INFO] [stdout] | [INFO] [stdout] 231 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FactoryService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 228 + use pancakeswap_sdk::factory::FactoryService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/factory.rs:231:55 [INFO] [stdout] | [INFO] [stdout] 231 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/factory.rs:235:10 [INFO] [stdout] | [INFO] [stdout] 235 | Ok::<(), EvmError>(()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 228 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::analyze_pair (line 76) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/analytics.rs:81:38 [INFO] [stdout] | [INFO] [stdout] 81 | let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 81 - let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] 81 + let client = Arc::new(EvmClient::new(..)); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 81 - let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] 81 + let client = Arc::new(EvmClient::new(..=)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/analytics.rs:81:38 [INFO] [stdout] | [INFO] [stdout] 81 | let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 81 - let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] 81 + let client = Arc::new(EvmClient::new(..)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmClient` [INFO] [stdout] --> src/analytics.rs:81:23 [INFO] [stdout] | [INFO] [stdout] 81 | let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EvmClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 76 + use evm_client::EvmClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::cal_liquidity_value (line 380) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:381:5 [INFO] [stdout] | [INFO] [stdout] 381 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/analytics.rs:385:37 [INFO] [stdout] | [INFO] [stdout] 385 | let service = AnalyticsService::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/events.rs - events::PancakeSwapEventListener::start_swap_listener (line 77) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PancakeSwapEventListener` [INFO] [stdout] --> src/events.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | let listener = PancakeSwapEventListener::new(client); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PancakeSwapEventListener` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 77 + use pancakeswap_sdk::events::PancakeSwapEventListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/events.rs:81:46 [INFO] [stdout] | [INFO] [stdout] 81 | let listener = PancakeSwapEventListener::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/events.rs:89:3 [INFO] [stdout] | [INFO] [stdout] 77 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_events_rs_77_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 89 | ).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/factory.rs - factory::FactoryService::get_pools_by_token (line 31) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryService` [INFO] [stdout] --> src/factory.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FactoryService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 31 + use pancakeswap_sdk::factory::FactoryService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/factory.rs:34:55 [INFO] [stdout] | [INFO] [stdout] 34 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/factory.rs:38:10 [INFO] [stdout] | [INFO] [stdout] 38 | Ok::<(), EvmError>(()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 31 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::deposit_to_farm (line 642) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:645:5 [INFO] [stdout] | [INFO] [stdout] 645 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 645 - use crate::FarmingService; [INFO] [stdout] 645 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:649:15 [INFO] [stdout] | [INFO] [stdout] 649 | let tx_hash = service.deposit_to_farm(master_chef, 0, amount).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::get_all_farms (line 91) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:94:5 [INFO] [stdout] | [INFO] [stdout] 94 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 94 - use crate::FarmingService; [INFO] [stdout] 94 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | let farms = service.get_all_farms(master_chef).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/events.rs - events::PancakeSwapEventListener::start_pair_created_listener (line 107) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PancakeSwapEventListener` [INFO] [stdout] --> src/events.rs:111:16 [INFO] [stdout] | [INFO] [stdout] 111 | let listener = PancakeSwapEventListener::new(client); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PancakeSwapEventListener` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 107 + use pancakeswap_sdk::events::PancakeSwapEventListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/events.rs:111:46 [INFO] [stdout] | [INFO] [stdout] 111 | let listener = PancakeSwapEventListener::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/events.rs:119:3 [INFO] [stdout] | [INFO] [stdout] 107 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_events_rs_107_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 119 | ).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/events.rs - events::PancakeSwapEventListener::start_v3_swap_listener (line 165) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PancakeSwapEventListener` [INFO] [stdout] --> src/events.rs:169:16 [INFO] [stdout] | [INFO] [stdout] 169 | let listener = PancakeSwapEventListener::new(client); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ use of undeclared type `PancakeSwapEventListener` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 165 + use pancakeswap_sdk::events::PancakeSwapEventListener; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/events.rs:169:46 [INFO] [stdout] | [INFO] [stdout] 169 | let listener = PancakeSwapEventListener::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/events.rs:177:3 [INFO] [stdout] | [INFO] [stdout] 165 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_events_rs_165_0() { [INFO] [stdout] | -------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 177 | ).await.unwrap(); [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::get_all_syrup_pools (line 225) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 228 - use crate::FarmingService; [INFO] [stdout] 228 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:231:13 [INFO] [stdout] | [INFO] [stdout] 231 | let pools = service.get_all_syrup_pools(factory).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::get_top_pairs (line 712) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:713:5 [INFO] [stdout] | [INFO] [stdout] 713 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/analytics.rs:716:37 [INFO] [stdout] | [INFO] [stdout] 716 | let service = AnalyticsService::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/factory.rs - factory::FactoryService::pair_exists (line 330) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryService` [INFO] [stdout] --> src/factory.rs:333:23 [INFO] [stdout] | [INFO] [stdout] 333 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FactoryService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 330 + use pancakeswap_sdk::factory::FactoryService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/factory.rs:333:55 [INFO] [stdout] | [INFO] [stdout] 333 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/factory.rs:339:10 [INFO] [stdout] | [INFO] [stdout] 339 | Ok::<(), EvmError>(()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 330 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::emergency_withdraw_from_farm (line 716) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:719:5 [INFO] [stdout] | [INFO] [stdout] 719 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 719 - use crate::FarmingService; [INFO] [stdout] 719 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:722:15 [INFO] [stdout] | [INFO] [stdout] 722 | let tx_hash = service.emergency_withdraw_from_farm(master_chef, 0).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::get_user_farm_info (line 171) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:174:5 [INFO] [stdout] | [INFO] [stdout] 174 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 174 - use crate::FarmingService; [INFO] [stdout] 174 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:178:17 [INFO] [stdout] | [INFO] [stdout] 178 | let user_info = service.get_user_farm_info(master_chef, 0, user).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/factory.rs - factory::FactoryService::get_all_pairs (line 299) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FactoryService` [INFO] [stdout] --> src/factory.rs:302:23 [INFO] [stdout] | [INFO] [stdout] 302 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `FactoryService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 299 + use pancakeswap_sdk::factory::FactoryService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/factory.rs:302:55 [INFO] [stdout] | [INFO] [stdout] 302 | let factory_service = FactoryService::new(Arc::clone(&client)); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/factory.rs:306:10 [INFO] [stdout] | [INFO] [stdout] 306 | Ok::<(), EvmError>(()) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 299 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::cal_trades_24h (line 669) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:670:5 [INFO] [stdout] | [INFO] [stdout] 670 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `client` in this scope [INFO] [stdout] --> src/analytics.rs:673:37 [INFO] [stdout] | [INFO] [stdout] 673 | let service = AnalyticsService::new(client); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::withdraw_from_farm (line 680) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:683:5 [INFO] [stdout] | [INFO] [stdout] 683 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 683 - use crate::FarmingService; [INFO] [stdout] 683 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:687:15 [INFO] [stdout] | [INFO] [stdout] 687 | let tx_hash = service.withdraw_from_farm(master_chef, 0, amount).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PancakeSwapService::get_amounts_out_v2 (line 66) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pancake_swap_sdk` [INFO] [stdout] --> src/lib.rs:67:5 [INFO] [stdout] | [INFO] [stdout] 67 | use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pancake_swap_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 67 - use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] 67 + use pancakeswap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/analytics.rs - analytics::AnalyticsService::find_arbitrage_opportunities (line 125) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/analytics.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 130 - let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] 130 + let client = Arc::new(EvmClient::new(..)); [INFO] [stdout] | [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 130 - let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] 130 + let client = Arc::new(EvmClient::new(..=)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/analytics.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 130 - let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] 130 + let client = Arc::new(EvmClient::new(..)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `analytics` [INFO] [stdout] --> src/analytics.rs:126:5 [INFO] [stdout] | [INFO] [stdout] 126 | use analytics::AnalyticsService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::analytics` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmClient` [INFO] [stdout] --> src/analytics.rs:130:23 [INFO] [stdout] | [INFO] [stdout] 130 | let client = Arc::new(EvmClient::new(...)); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EvmClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 125 + use evm_client::EvmClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PancakeSwapService::auto_swap (line 256) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pancake_swap_sdk` [INFO] [stdout] --> src/lib.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 257 | use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pancake_swap_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 257 - use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] 257 + use pancakeswap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/lib.rs:266:81 [INFO] [stdout] | [INFO] [stdout] 266 | let token_in: Address = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c".parse()?; // WBNB [INFO] [stdout] | -------^ the trait `From` is not implemented for `()` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, rustc_hex::FromHexError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] help: the trait `From` is not implemented for `()` [INFO] [stdout] but trait `From>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/parity-scale-codec-3.7.5/src/compact.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl_from_compact! { (), u8, u16, u32, u64, u128 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `parity_scale_codec::compact::Compact<()>`, found `rustc_hex::FromHexError` [INFO] [stdout] = note: this error originates in the macro `impl_from_compact` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/lib.rs:267:82 [INFO] [stdout] | [INFO] [stdout] 267 | let token_out: Address = "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56".parse()?; // BUSD [INFO] [stdout] | -------^ the trait `From` is not implemented for `()` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, rustc_hex::FromHexError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] help: the trait `From` is not implemented for `()` [INFO] [stdout] but trait `From>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/parity-scale-codec-3.7.5/src/compact.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl_from_compact! { (), u8, u16, u32, u64, u128 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `parity_scale_codec::compact::Compact<()>`, found `rustc_hex::FromHexError` [INFO] [stdout] = note: this error originates in the macro `impl_from_compact` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/limit_order.rs - limit_order::LimitOrderService::execute_limit_order (line 182) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/limit_order.rs:184:14 [INFO] [stdout] | [INFO] [stdout] 184 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 182 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmClient` [INFO] [stdout] --> src/limit_order.rs:184:23 [INFO] [stdout] | [INFO] [stdout] 184 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EvmClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 182 + use evm_client::EvmClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/limit_order.rs:184:38 [INFO] [stdout] | [INFO] [stdout] 184 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 182 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LimitOrderService` [INFO] [stdout] --> src/limit_order.rs:185:19 [INFO] [stdout] | [INFO] [stdout] 185 | let mut service = LimitOrderService::new(client); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `LimitOrderService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 182 + use pancakeswap_sdk::limit_order::LimitOrderService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `U256` [INFO] [stdout] --> src/limit_order.rs:186:16 [INFO] [stdout] | [INFO] [stdout] 186 | let order_id = U256::from(12345u64); [INFO] [stdout] | ^^^^ use of undeclared type `U256` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 182 + use ethers::types::U256; [INFO] [stdout] | [INFO] [stdout] 182 + use primitive_types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PancakeSwapService::swap_v2 (line 120) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pancake_swap_sdk` [INFO] [stdout] --> src/lib.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pancake_swap_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 121 - use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] 121 + use pancakeswap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/lib.rs:130:81 [INFO] [stdout] | [INFO] [stdout] 130 | let token_in: Address = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c".parse()?; // WBNB [INFO] [stdout] | -------^ the trait `From` is not implemented for `()` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, rustc_hex::FromHexError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] help: the trait `From` is not implemented for `()` [INFO] [stdout] but trait `From>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/parity-scale-codec-3.7.5/src/compact.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl_from_compact! { (), u8, u16, u32, u64, u128 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `parity_scale_codec::compact::Compact<()>`, found `rustc_hex::FromHexError` [INFO] [stdout] = note: this error originates in the macro `impl_from_compact` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/lib.rs:131:82 [INFO] [stdout] | [INFO] [stdout] 131 | let token_out: Address = "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56".parse()?; // BUSD [INFO] [stdout] | -------^ the trait `From` is not implemented for `()` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, rustc_hex::FromHexError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] help: the trait `From` is not implemented for `()` [INFO] [stdout] but trait `From>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/parity-scale-codec-3.7.5/src/compact.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl_from_compact! { (), u8, u16, u32, u64, u128 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `parity_scale_codec::compact::Compact<()>`, found `rustc_hex::FromHexError` [INFO] [stdout] = note: this error originates in the macro `impl_from_compact` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/liquidity.rs - liquidity::LiquidityService::cal_liquidity_value (line 131) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `LiquidityService` in this scope [INFO] [stdout] --> src/liquidity.rs:134:27 [INFO] [stdout] | [INFO] [stdout] 134 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 131 + use pancakeswap_sdk::liquidity::LiquidityService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/liquidity.rs:134:59 [INFO] [stdout] | [INFO] [stdout] 134 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 131 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/multicall.rs - multicall::MulticallService::get_multiple_token_balances (line 227) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `multicall` [INFO] [stdout] --> src/multicall.rs:230:5 [INFO] [stdout] | [INFO] [stdout] 230 | use multicall::MulticallService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::multicall` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token1` in this scope [INFO] [stdout] --> src/multicall.rs:233:19 [INFO] [stdout] | [INFO] [stdout] 233 | let tokens = vec![token1, token2]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token2` in this scope [INFO] [stdout] --> src/multicall.rs:233:27 [INFO] [stdout] | [INFO] [stdout] 233 | let tokens = vec![token1, token2]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user1` in this scope [INFO] [stdout] --> src/multicall.rs:234:18 [INFO] [stdout] | [INFO] [stdout] 234 | let users = vec![user1, user2, user3]; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user2` in this scope [INFO] [stdout] --> src/multicall.rs:234:25 [INFO] [stdout] | [INFO] [stdout] 234 | let users = vec![user1, user2, user3]; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `user3` in this scope [INFO] [stdout] --> src/multicall.rs:234:32 [INFO] [stdout] | [INFO] [stdout] 234 | let users = vec![user1, user2, user3]; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::get_syrup_pool_info (line 514) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:517:5 [INFO] [stdout] | [INFO] [stdout] 517 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 517 - use crate::FarmingService; [INFO] [stdout] 517 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:520:17 [INFO] [stdout] | [INFO] [stdout] 520 | let pool_info = service.get_syrup_pool_info(pool_address).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::get_user_syrup_pool_info (line 603) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:606:5 [INFO] [stdout] | [INFO] [stdout] 606 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 606 - use crate::FarmingService; [INFO] [stdout] 606 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:610:17 [INFO] [stdout] | [INFO] [stdout] 610 | let user_info = service.get_user_syrup_pool_info(pool_address, user_address).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/liquidity.rs - liquidity::LiquidityService::get_reserves (line 61) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `LiquidityService` in this scope [INFO] [stdout] --> src/liquidity.rs:64:27 [INFO] [stdout] | [INFO] [stdout] 64 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 61 + use pancakeswap_sdk::liquidity::LiquidityService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/liquidity.rs:64:59 [INFO] [stdout] | [INFO] [stdout] 64 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 61 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/multicall.rs - multicall::MulticallService::aggregate (line 35) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `multicall` [INFO] [stdout] --> src/multicall.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | use multicall::MulticallService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::multicall` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Call` [INFO] [stdout] --> src/multicall.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | Call::new(token_address, balance_of_calldata), [INFO] [stdout] | ^^^^ use of undeclared type `Call` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 35 + use ethers::types::Call; [INFO] [stdout] | [INFO] [stdout] 35 + use pancakeswap_sdk::abi::Call; [INFO] [stdout] | [INFO] [stdout] 35 + use pancakeswap_sdk::multicall::Call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token_address` in this scope [INFO] [stdout] --> src/multicall.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 41 | Call::new(token_address, balance_of_calldata), [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `balance_of_calldata` in this scope [INFO] [stdout] --> src/multicall.rs:41:30 [INFO] [stdout] | [INFO] [stdout] 41 | Call::new(token_address, balance_of_calldata), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Call` [INFO] [stdout] --> src/multicall.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | Call::new(pair_address, get_reserves_calldata), [INFO] [stdout] | ^^^^ use of undeclared type `Call` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 35 + use ethers::types::Call; [INFO] [stdout] | [INFO] [stdout] 35 + use pancakeswap_sdk::abi::Call; [INFO] [stdout] | [INFO] [stdout] 35 + use pancakeswap_sdk::multicall::Call; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pair_address` in this scope [INFO] [stdout] --> src/multicall.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 42 | Call::new(pair_address, get_reserves_calldata), [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `get_reserves_calldata` in this scope [INFO] [stdout] --> src/multicall.rs:42:29 [INFO] [stdout] | [INFO] [stdout] 42 | Call::new(pair_address, get_reserves_calldata), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::get_farm_info (line 121) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:124:5 [INFO] [stdout] | [INFO] [stdout] 124 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 124 - use crate::FarmingService; [INFO] [stdout] 124 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | let farm_info = service.get_farm_info(master_chef, 0).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/liquidity.rs - liquidity::PoolInfo::cal_price (line 246) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PoolInfo` in this scope [INFO] [stdout] --> src/liquidity.rs:249:18 [INFO] [stdout] | [INFO] [stdout] 249 | fn example(pool: PoolInfo) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 246 + use pancakeswap_sdk::liquidity::PoolInfo; [INFO] [stdout] | [INFO] [stdout] 246 + use pancakeswap_sdk::types::PoolInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/liquidity.rs:249:42 [INFO] [stdout] | [INFO] [stdout] 249 | fn example(pool: PoolInfo) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 246 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/multicall.rs - multicall::MulticallService::get_prices_batch (line 177) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `multicall` [INFO] [stdout] --> src/multicall.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | use multicall::MulticallService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::multicall` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token_in1` in this scope [INFO] [stdout] --> src/multicall.rs:183:25 [INFO] [stdout] | [INFO] [stdout] 183 | let token_pairs = vec![(token_in1, token_out1), (token_in2, token_out2)]; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token_out1` in this scope [INFO] [stdout] --> src/multicall.rs:183:36 [INFO] [stdout] | [INFO] [stdout] 183 | let token_pairs = vec![(token_in1, token_out1), (token_in2, token_out2)]; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token_in2` in this scope [INFO] [stdout] --> src/multicall.rs:183:50 [INFO] [stdout] | [INFO] [stdout] 183 | let token_pairs = vec![(token_in1, token_out1), (token_in2, token_out2)]; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token_out2` in this scope [INFO] [stdout] --> src/multicall.rs:183:61 [INFO] [stdout] | [INFO] [stdout] 183 | let token_pairs = vec![(token_in1, token_out1), (token_in2, token_out2)]; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/multicall.rs:184:36 [INFO] [stdout] | [INFO] [stdout] 184 | let amount_in = U256::from(10).pow(18); // 1 token [INFO] [stdout] | --- ^^ expected `U256`, found integer [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/primitive-types-0.12.2/src/lib.rs:38:1 [INFO] [stdout] | [INFO] [stdout] 38 | / construct_uint! { [INFO] [stdout] 39 | | /// 256-bit unsigned integer. [INFO] [stdout] 40 | | #[cfg_attr(feature = "scale-info", derive(TypeInfo))] [INFO] [stdout] 41 | | pub struct U256(4); [INFO] [stdout] 42 | | } [INFO] [stdout] | |_^ [INFO] [stdout] = note: this error originates in the macro `$crate::construct_uint` which comes from the expansion of the macro `construct_uint` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/multicall.rs - multicall::MulticallService::get_reserves_batch (line 130) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `multicall` [INFO] [stdout] --> src/multicall.rs:133:5 [INFO] [stdout] | [INFO] [stdout] 133 | use multicall::MulticallService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::multicall` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pair1` in this scope [INFO] [stdout] --> src/multicall.rs:136:18 [INFO] [stdout] | [INFO] [stdout] 136 | let pairs = vec![pair1, pair2, pair3]; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pair2` in this scope [INFO] [stdout] --> src/multicall.rs:136:25 [INFO] [stdout] | [INFO] [stdout] 136 | let pairs = vec![pair1, pair2, pair3]; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pair3` in this scope [INFO] [stdout] --> src/multicall.rs:136:32 [INFO] [stdout] | [INFO] [stdout] 136 | let pairs = vec![pair1, pair2, pair3]; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/liquidity.rs - liquidity::LiquidityService::get_pair_info (line 20) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `LiquidityService` in this scope [INFO] [stdout] --> src/liquidity.rs:23:27 [INFO] [stdout] | [INFO] [stdout] 23 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 20 + use pancakeswap_sdk::liquidity::LiquidityService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/liquidity.rs:23:59 [INFO] [stdout] | [INFO] [stdout] 23 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 20 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/price.rs - price::PriceService::get_price_impact (line 266) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `price` [INFO] [stdout] --> src/price.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | use price::PriceService; [INFO] [stdout] | ^^^^^ help: a similar path exists: `pancakeswap_sdk::price` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/price.rs - price::PriceService::get_price (line 33) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `price` [INFO] [stdout] --> src/price.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use price::PriceService; [INFO] [stdout] | ^^^^^ help: a similar path exists: `pancakeswap_sdk::price` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/price.rs - price::PriceService::find_optimal_path (line 313) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `price` [INFO] [stdout] --> src/price.rs:315:5 [INFO] [stdout] | [INFO] [stdout] 315 | use price::PriceService; [INFO] [stdout] | ^^^^^ help: a similar path exists: `pancakeswap_sdk::price` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/limit_order.rs - limit_order::LimitOrderService::check_and_execute_orders (line 283) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/limit_order.rs:285:14 [INFO] [stdout] | [INFO] [stdout] 285 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 283 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmClient` [INFO] [stdout] --> src/limit_order.rs:285:23 [INFO] [stdout] | [INFO] [stdout] 285 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EvmClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 283 + use evm_client::EvmClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/limit_order.rs:285:38 [INFO] [stdout] | [INFO] [stdout] 285 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 283 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LimitOrderService` [INFO] [stdout] --> src/limit_order.rs:286:19 [INFO] [stdout] | [INFO] [stdout] 286 | let mut service = LimitOrderService::new(client); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `LimitOrderService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 283 + use pancakeswap_sdk::limit_order::LimitOrderService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/limit_order.rs:287:5 [INFO] [stdout] | [INFO] [stdout] 287 | let executed_orders = service.check_and_execute_orders().await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 288 | println!("Executed {} orders", executed_orders.len()); [INFO] [stdout] | --------------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `executed_orders` an explicit type [INFO] [stdout] | [INFO] [stdout] 287 | let executed_orders: /* Type */ = service.check_and_execute_orders().await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/liquidity.rs - liquidity::LiquidityService::get_all_pairs (line 175) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `LiquidityService` in this scope [INFO] [stdout] --> src/liquidity.rs:178:27 [INFO] [stdout] | [INFO] [stdout] 178 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 175 + use pancakeswap_sdk::liquidity::LiquidityService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/liquidity.rs:178:59 [INFO] [stdout] | [INFO] [stdout] 178 | async fn example(service: LiquidityService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 175 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/liquidity.rs:180:5 [INFO] [stdout] | [INFO] [stdout] 180 | let pairs = service.get_all_pairs(factory, 0, 10).await?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] 181 | println!("Found {} pairs", pairs.len()); [INFO] [stdout] | ----- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `pairs` an explicit type [INFO] [stdout] | [INFO] [stdout] 180 | let pairs: /* Type */ = service.get_all_pairs(factory, 0, 10).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/multicall.rs - multicall::MulticallService::get_token_balances (line 79) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `multicall` [INFO] [stdout] --> src/multicall.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | use multicall::MulticallService; [INFO] [stdout] | ^^^^^^^^^ help: a similar path exists: `pancakeswap_sdk::multicall` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token1` in this scope [INFO] [stdout] --> src/multicall.rs:85:19 [INFO] [stdout] | [INFO] [stdout] 85 | let tokens = vec![token1, token2, token3]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token2` in this scope [INFO] [stdout] --> src/multicall.rs:85:27 [INFO] [stdout] | [INFO] [stdout] 85 | let tokens = vec![token1, token2, token3]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `token3` in this scope [INFO] [stdout] --> src/multicall.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | let tokens = vec![token1, token2, token3]; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/price.rs - price::PriceService::get_prices (line 72) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `price` [INFO] [stdout] --> src/price.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | use price::PriceService; [INFO] [stdout] | ^^^^^ help: a similar path exists: `pancakeswap_sdk::price` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::get_amount_out (line 332) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:336:34 [INFO] [stdout] | [INFO] [stdout] 336 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 332 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:336:63 [INFO] [stdout] | [INFO] [stdout] 336 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 332 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/price.rs - price::PriceService::get_price_via_pair (line 226) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `price` [INFO] [stdout] --> src/price.rs:228:5 [INFO] [stdout] | [INFO] [stdout] 228 | use price::PriceService; [INFO] [stdout] | ^^^^^ help: a similar path exists: `pancakeswap_sdk::price` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/limit_order.rs - limit_order::LimitOrderService::cancel_limit_order (line 233) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/limit_order.rs:235:14 [INFO] [stdout] | [INFO] [stdout] 235 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 233 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmClient` [INFO] [stdout] --> src/limit_order.rs:235:23 [INFO] [stdout] | [INFO] [stdout] 235 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EvmClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 233 + use evm_client::EvmClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/limit_order.rs:235:38 [INFO] [stdout] | [INFO] [stdout] 235 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 233 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LimitOrderService` [INFO] [stdout] --> src/limit_order.rs:236:19 [INFO] [stdout] | [INFO] [stdout] 236 | let mut service = LimitOrderService::new(client); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `LimitOrderService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 233 + use pancakeswap_sdk::limit_order::LimitOrderService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `U256` [INFO] [stdout] --> src/limit_order.rs:237:16 [INFO] [stdout] | [INFO] [stdout] 237 | let order_id = U256::from(12345u64); [INFO] [stdout] | ^^^^ use of undeclared type `U256` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 233 + use ethers::types::U256; [INFO] [stdout] | [INFO] [stdout] 233 + use primitive_types::U256; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::get_amount_in (line 366) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:370:34 [INFO] [stdout] | [INFO] [stdout] 370 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 366 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:370:63 [INFO] [stdout] | [INFO] [stdout] 370 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 366 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::swap_exact_tokens_for_tokens_supporting_fee_on_transfer_tokens (line 76) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:80:34 [INFO] [stdout] | [INFO] [stdout] 80 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 76 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:80:63 [INFO] [stdout] | [INFO] [stdout] 80 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 76 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/farm.rs - farm::FarmingService::pool_length (line 69) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `crate::FarmingService` [INFO] [stdout] --> src/farm.rs:72:5 [INFO] [stdout] | [INFO] [stdout] 72 | use crate::FarmingService; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ no `FarmingService` in the root [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct instead [INFO] [stdout] | [INFO] [stdout] 72 - use crate::FarmingService; [INFO] [stdout] 72 + use pancakeswap_sdk::farm::FarmingService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/farm.rs:75:18 [INFO] [stdout] | [INFO] [stdout] 75 | let pool_count = service.pool_length(master_chef).await.unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - PancakeSwapService::swap_v3 (line 187) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `pancake_swap_sdk` [INFO] [stdout] --> src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `pancake_swap_sdk` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 188 - use pancake_swap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] 188 + use pancakeswap_sdk::{PancakeSwapService, EvmClient, EvmType}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/lib.rs:197:81 [INFO] [stdout] | [INFO] [stdout] 197 | let token_in: Address = "0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c".parse()?; // WBNB [INFO] [stdout] | -------^ the trait `From` is not implemented for `()` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, rustc_hex::FromHexError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] help: the trait `From` is not implemented for `()` [INFO] [stdout] but trait `From>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/parity-scale-codec-3.7.5/src/compact.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl_from_compact! { (), u8, u16, u32, u64, u128 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `parity_scale_codec::compact::Compact<()>`, found `rustc_hex::FromHexError` [INFO] [stdout] = note: this error originates in the macro `impl_from_compact` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/lib.rs:198:82 [INFO] [stdout] | [INFO] [stdout] 198 | let token_out: Address = "0xe9e7CEA3DedcA5984780Bafc599bD69ADd087D56".parse()?; // BUSD [INFO] [stdout] | -------^ the trait `From` is not implemented for `()` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, rustc_hex::FromHexError>` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] help: the trait `From` is not implemented for `()` [INFO] [stdout] but trait `From>` is implemented for it [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/parity-scale-codec-3.7.5/src/compact.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 194 | impl_from_compact! { (), u8, u16, u32, u64, u128 } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: for that trait implementation, expected `parity_scale_codec::compact::Compact<()>`, found `rustc_hex::FromHexError` [INFO] [stdout] = note: this error originates in the macro `impl_from_compact` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::get_factory_from_router (line 248) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:252:34 [INFO] [stdout] | [INFO] [stdout] 252 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 248 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:252:63 [INFO] [stdout] | [INFO] [stdout] 252 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 248 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/limit_order.rs - limit_order::LimitOrderService::create_limit_order (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmClient` [INFO] [stdout] --> src/limit_order.rs:67:14 [INFO] [stdout] | [INFO] [stdout] 67 | let client = EvmClient::new(EvmType::Bsc).await?; [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EvmClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 62 + use evm_client::EvmClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/limit_order.rs:67:29 [INFO] [stdout] | [INFO] [stdout] 67 | let client = EvmClient::new(EvmType::Bsc).await?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 62 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `LimitOrderService` [INFO] [stdout] --> src/limit_order.rs:68:19 [INFO] [stdout] | [INFO] [stdout] 68 | let mut service = LimitOrderService::new(client); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ use of undeclared type `LimitOrderService` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 62 + use pancakeswap_sdk::limit_order::LimitOrderService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/price.rs - price::PriceService::get_token_price (line 116) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `price` [INFO] [stdout] --> src/price.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | use price::PriceService; [INFO] [stdout] | ^^^^^ help: a similar path exists: `pancakeswap_sdk::price` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::get_weth_address_from_router (line 273) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:277:34 [INFO] [stdout] | [INFO] [stdout] 277 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 273 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:277:63 [INFO] [stdout] | [INFO] [stdout] 277 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 273 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::swap_exact_tokens_for_eth_supporting_fee_on_transfer_tokens (line 190) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:194:34 [INFO] [stdout] | [INFO] [stdout] 194 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 190 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:194:63 [INFO] [stdout] | [INFO] [stdout] 194 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 190 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/v3_position.rs - v3_position::V3PositionService::get_user_positions (line 46) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `crate::EvmClient`, `crate::V3PositionService` [INFO] [stdout] --> src/v3_position.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | use crate::{EvmClient, V3PositionService}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `V3PositionService` in the root [INFO] [stdout] | | [INFO] [stdout] | no `EvmClient` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] evm_client::EvmClient [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] pancakeswap_sdk::v3_position::V3PositionService [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/v3_position.rs:53:38 [INFO] [stdout] | [INFO] [stdout] 53 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 46 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/v3_position.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | let positions = service.get_user_positions(nft_manager, user).await?; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 58 | println!("Found {} positions", positions.len()); [INFO] [stdout] | --------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `positions` an explicit type [INFO] [stdout] | [INFO] [stdout] 57 | let positions: /* Type */ = service.get_user_positions(nft_manager, user).await?; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::swap_exact_eth_for_tokens_supporting_fee_on_transfer_tokens (line 131) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:135:34 [INFO] [stdout] | [INFO] [stdout] 135 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 131 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:135:63 [INFO] [stdout] | [INFO] [stdout] 135 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 131 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/v3_position.rs - v3_position::V3PositionService::get_position_info (line 97) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `crate::EvmClient`, `crate::V3PositionService` [INFO] [stdout] --> src/v3_position.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | use crate::{EvmClient, V3PositionService}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `V3PositionService` in the root [INFO] [stdout] | | [INFO] [stdout] | no `EvmClient` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] evm_client::EvmClient [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] pancakeswap_sdk::v3_position::V3PositionService [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/v3_position.rs:104:38 [INFO] [stdout] | [INFO] [stdout] 104 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 97 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/v3_position.rs - v3_position::V3PositionService::increase_liquidity (line 247) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `crate::EvmClient`, `crate::V3PositionService` [INFO] [stdout] --> src/v3_position.rs:251:13 [INFO] [stdout] | [INFO] [stdout] 251 | use crate::{EvmClient, V3PositionService}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `V3PositionService` in the root [INFO] [stdout] | | [INFO] [stdout] | no `EvmClient` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] evm_client::EvmClient [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] pancakeswap_sdk::v3_position::V3PositionService [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/v3_position.rs:254:38 [INFO] [stdout] | [INFO] [stdout] 254 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 247 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/v3_position.rs - v3_position::V3PositionService::decrease_liquidity (line 316) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `crate::EvmClient`, `crate::V3PositionService` [INFO] [stdout] --> src/v3_position.rs:320:13 [INFO] [stdout] | [INFO] [stdout] 320 | use crate::{EvmClient, V3PositionService}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `V3PositionService` in the root [INFO] [stdout] | | [INFO] [stdout] | no `EvmClient` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] evm_client::EvmClient [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] pancakeswap_sdk::v3_position::V3PositionService [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/v3_position.rs:323:38 [INFO] [stdout] | [INFO] [stdout] 323 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 316 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/v3_position.rs - v3_position::V3PositionService::collect_fees (line 381) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `crate::EvmClient`, `crate::V3PositionService` [INFO] [stdout] --> src/v3_position.rs:385:13 [INFO] [stdout] | [INFO] [stdout] 385 | use crate::{EvmClient, V3PositionService}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `V3PositionService` in the root [INFO] [stdout] | | [INFO] [stdout] | no `EvmClient` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] evm_client::EvmClient [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] pancakeswap_sdk::v3_position::V3PositionService [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/v3_position.rs:388:38 [INFO] [stdout] | [INFO] [stdout] 388 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 381 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/router.rs - router::RouterService::quote (line 298) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `RouterService` in this scope [INFO] [stdout] --> src/router.rs:302:34 [INFO] [stdout] | [INFO] [stdout] 302 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 298 + use pancakeswap_sdk::router::RouterService; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `EvmError` in this scope [INFO] [stdout] --> src/router.rs:302:63 [INFO] [stdout] | [INFO] [stdout] 302 | async fn example(router_service: RouterService) -> Result<(), EvmError> { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 298 + use evm_sdk::types::EvmError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/v3_position.rs - v3_position::V3PositionService::create_position (line 159) stdout ---- [INFO] [stdout] error[E0432]: unresolved imports `crate::EvmClient`, `crate::V3PositionService` [INFO] [stdout] --> src/v3_position.rs:163:13 [INFO] [stdout] | [INFO] [stdout] 163 | use crate::{EvmClient, V3PositionService}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ no `V3PositionService` in the root [INFO] [stdout] | | [INFO] [stdout] | no `EvmClient` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] evm_client::EvmClient [INFO] [stdout] = help: consider importing this struct instead: [INFO] [stdout] pancakeswap_sdk::v3_position::V3PositionService [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EvmType` [INFO] [stdout] --> src/v3_position.rs:166:38 [INFO] [stdout] | [INFO] [stdout] 166 | let client = Arc::new(EvmClient::new(EvmType::Bsc).await?); [INFO] [stdout] | ^^^^^^^ use of undeclared type `EvmType` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 159 + use evm_client::EvmType; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::analyze_pair (line 76) [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::cal_liquidity_value (line 380) [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::cal_moving_average (line 774) [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::cal_rsi (line 840) [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::cal_trades_24h (line 669) [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::cal_volume_24h (line 597) [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::find_arbitrage_opportunities (line 125) [INFO] [stdout] src/analytics.rs - analytics::AnalyticsService::get_top_pairs (line 712) [INFO] [stdout] src/events.rs - events::PancakeSwapEventListener::start_pair_created_listener (line 107) [INFO] [stdout] src/events.rs - events::PancakeSwapEventListener::start_swap_listener (line 77) [INFO] [stdout] src/events.rs - events::PancakeSwapEventListener::start_v3_swap_listener (line 165) [INFO] [stdout] src/factory.rs - factory::FactoryService::all_pairs (line 251) [INFO] [stdout] src/factory.rs - factory::FactoryService::all_pairs_length (line 228) [INFO] [stdout] src/factory.rs - factory::FactoryService::create_pair (line 175) [INFO] [stdout] src/factory.rs - factory::FactoryService::get_all_pairs (line 299) [INFO] [stdout] src/factory.rs - factory::FactoryService::get_pair (line 140) [INFO] [stdout] src/factory.rs - factory::FactoryService::get_pools_by_token (line 31) [INFO] [stdout] src/factory.rs - factory::FactoryService::pair_exists (line 330) [INFO] [stdout] src/farm.rs - farm::FarmingService::deposit_to_farm (line 642) [INFO] [stdout] src/farm.rs - farm::FarmingService::emergency_withdraw_from_farm (line 716) [INFO] [stdout] src/farm.rs - farm::FarmingService::get_all_farms (line 91) [INFO] [stdout] src/farm.rs - farm::FarmingService::get_all_syrup_pools (line 225) [INFO] [stdout] src/farm.rs - farm::FarmingService::get_farm_info (line 121) [INFO] [stdout] src/farm.rs - farm::FarmingService::get_syrup_pool_info (line 514) [INFO] [stdout] src/farm.rs - farm::FarmingService::get_user_farm_info (line 171) [INFO] [stdout] src/farm.rs - farm::FarmingService::get_user_syrup_pool_info (line 603) [INFO] [stdout] src/farm.rs - farm::FarmingService::pool_length (line 69) [INFO] [stdout] src/farm.rs - farm::FarmingService::withdraw_from_farm (line 680) [INFO] [stdout] src/lib.rs - PancakeSwapService::auto_swap (line 256) [INFO] [stdout] src/lib.rs - PancakeSwapService::get_amounts_out_v2 (line 66) [INFO] [stdout] src/lib.rs - PancakeSwapService::swap_v2 (line 120) [INFO] [stdout] src/lib.rs - PancakeSwapService::swap_v3 (line 187) [INFO] [stdout] src/limit_order.rs - limit_order::LimitOrderService::cancel_limit_order (line 233) [INFO] [stdout] src/limit_order.rs - limit_order::LimitOrderService::check_and_execute_orders (line 283) [INFO] [stdout] src/limit_order.rs - limit_order::LimitOrderService::create_limit_order (line 62) [INFO] [stdout] src/limit_order.rs - limit_order::LimitOrderService::execute_limit_order (line 182) [INFO] [stdout] src/liquidity.rs - liquidity::LiquidityService::cal_liquidity_value (line 131) [INFO] [stdout] src/liquidity.rs - liquidity::LiquidityService::get_all_pairs (line 175) [INFO] [stdout] src/liquidity.rs - liquidity::LiquidityService::get_pair_info (line 20) [INFO] [stdout] src/liquidity.rs - liquidity::LiquidityService::get_reserves (line 61) [INFO] [stdout] src/liquidity.rs - liquidity::PoolInfo::cal_price (line 246) [INFO] [stdout] src/multicall.rs - multicall::MulticallService::aggregate (line 35) [INFO] [stdout] src/multicall.rs - multicall::MulticallService::get_multiple_token_balances (line 227) [INFO] [stdout] src/multicall.rs - multicall::MulticallService::get_prices_batch (line 177) [INFO] [stdout] src/multicall.rs - multicall::MulticallService::get_reserves_batch (line 130) [INFO] [stdout] src/multicall.rs - multicall::MulticallService::get_token_balances (line 79) [INFO] [stdout] src/price.rs - price::PriceService::find_optimal_path (line 313) [INFO] [stdout] src/price.rs - price::PriceService::get_price (line 33) [INFO] [stdout] src/price.rs - price::PriceService::get_price_impact (line 266) [INFO] [stdout] src/price.rs - price::PriceService::get_price_via_pair (line 226) [INFO] [stdout] src/price.rs - price::PriceService::get_prices (line 72) [INFO] [stdout] src/price.rs - price::PriceService::get_token_price (line 116) [INFO] [stdout] src/router.rs - router::RouterService::get_amount_in (line 366) [INFO] [stdout] src/router.rs - router::RouterService::get_amount_out (line 332) [INFO] [stdout] src/router.rs - router::RouterService::get_factory_from_router (line 248) [INFO] [stdout] src/router.rs - router::RouterService::get_weth_address_from_router (line 273) [INFO] [stdout] src/router.rs - router::RouterService::quote (line 298) [INFO] [stdout] src/router.rs - router::RouterService::swap_exact_eth_for_tokens_supporting_fee_on_transfer_tokens (line 131) [INFO] [stdout] src/router.rs - router::RouterService::swap_exact_tokens_for_eth_supporting_fee_on_transfer_tokens (line 190) [INFO] [stdout] src/router.rs - router::RouterService::swap_exact_tokens_for_tokens_supporting_fee_on_transfer_tokens (line 76) [INFO] [stdout] src/v3_position.rs - v3_position::V3PositionService::collect_fees (line 381) [INFO] [stdout] src/v3_position.rs - v3_position::V3PositionService::create_position (line 159) [INFO] [stdout] src/v3_position.rs - v3_position::V3PositionService::decrease_liquidity (line 316) [INFO] [stdout] src/v3_position.rs - v3_position::V3PositionService::get_position_info (line 97) [INFO] [stdout] src/v3_position.rs - v3_position::V3PositionService::get_user_positions (line 46) [INFO] [stdout] src/v3_position.rs - v3_position::V3PositionService::increase_liquidity (line 247) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 66 failed; 0 ignored; 0 measured; 0 filtered out; finished in 4.15s [INFO] [stdout] [INFO] [stdout] all doctests ran in 5.01s; merged doctests compilation took 0.85s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "762bcc7649ce159625fea6ac8e9fba0e86c2ae2de020c039dee0b99e0ea9999e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "762bcc7649ce159625fea6ac8e9fba0e86c2ae2de020c039dee0b99e0ea9999e", kill_on_drop: false }` [INFO] [stdout] 762bcc7649ce159625fea6ac8e9fba0e86c2ae2de020c039dee0b99e0ea9999e