[INFO] cloning repository https://github.com/gsngsn123/mybot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gsngsn123/mybot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgsngsn123%2Fmybot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgsngsn123%2Fmybot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 23419aba80fef2bdad7a2a58f631425c535ca971 [INFO] testing gsngsn123/mybot/23419aba80fef2bdad7a2a58f631425c535ca971 against master#b03b3a7ec92682be2917540b679478d41c95a30c for pr-137122-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgsngsn123%2Fmybot" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gsngsn123/mybot [INFO] finished tweaking git repo https://github.com/gsngsn123/mybot [INFO] tweaked toml for git repo https://github.com/gsngsn123/mybot written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gsngsn123/mybot on toolchain b03b3a7ec92682be2917540b679478d41c95a30c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gsngsn123/mybot 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" "+b03b3a7ec92682be2917540b679478d41c95a30c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hermit-abi v0.5.0 [INFO] [stderr] Downloaded parity-scale-codec v3.7.4 [INFO] [stderr] Downloaded parity-scale-codec-derive v3.7.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34b1cfa9940ee65f5b8c83bcebb885ad7311f0b890898058404406acd8dc2f45 [INFO] running `Command { std: "docker" "start" "-a" "34b1cfa9940ee65f5b8c83bcebb885ad7311f0b890898058404406acd8dc2f45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34b1cfa9940ee65f5b8c83bcebb885ad7311f0b890898058404406acd8dc2f45", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34b1cfa9940ee65f5b8c83bcebb885ad7311f0b890898058404406acd8dc2f45", kill_on_drop: false }` [INFO] [stdout] 34b1cfa9940ee65f5b8c83bcebb885ad7311f0b890898058404406acd8dc2f45 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+b03b3a7ec92682be2917540b679478d41c95a30c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ccaaff43fee42246fac7ae4ac468a3e447ded30c56de9dc892f1a93fbf79af29 [INFO] running `Command { std: "docker" "start" "-a" "ccaaff43fee42246fac7ae4ac468a3e447ded30c56de9dc892f1a93fbf79af29", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling const-oid v0.9.6 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling winnow v0.7.7 [INFO] [stderr] Compiling toml_write v0.1.0 [INFO] [stderr] Compiling cc v1.2.20 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling crunchy v0.2.3 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling rustc-hex v2.1.0 [INFO] [stderr] Compiling byte-slice-cast v1.2.3 [INFO] [stderr] Compiling base16ct v0.2.0 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling smallvec v1.15.0 [INFO] [stderr] Compiling pin-project-lite v0.2.16 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling der v0.7.10 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling parity-scale-codec v3.7.4 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling const_format_proc_macros v0.2.34 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling getrandom v0.3.2 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling camino v1.1.9 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling semver v1.0.26 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling ff v0.13.1 [INFO] [stderr] Compiling writeable v0.5.5 [INFO] [stderr] Compiling litemap v0.7.5 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling group v0.13.0 [INFO] [stderr] Compiling crypto-bigint v0.5.5 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling spki v0.7.3 [INFO] [stderr] Compiling sec1 v0.7.3 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling const_format v0.2.34 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling pkcs8 v0.10.2 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling linux-raw-sys v0.9.4 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling signature v2.2.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rfc6979 v0.4.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling untrusted v0.9.0 [INFO] [stderr] Compiling uint v0.9.5 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.100 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Compiling openssl-sys v0.9.107 [INFO] [stderr] Compiling rustls v0.21.12 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rlp-derive v0.1.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling write16 v1.0.0 [INFO] [stderr] Compiling utf16_iter v1.0.5 [INFO] [stderr] Compiling utf8_iter v1.0.4 [INFO] [stderr] Compiling elliptic-curve v0.13.8 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling ecdsa v0.16.9 [INFO] [stderr] Compiling openssl v0.10.72 [INFO] [stderr] Compiling bumpalo v3.17.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling k256 v0.13.4 [INFO] [stderr] Compiling fixed-hash v0.8.0 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling inout v0.1.4 [INFO] [stderr] Compiling const-hex v1.14.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.100 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling prettyplease v0.2.32 [INFO] [stderr] Compiling tower-service v0.3.3 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling eyre v0.6.12 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling tempfile v3.19.1 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.100 [INFO] [stderr] Compiling ring v0.16.20 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling indenter v0.3.3 [INFO] [stderr] Compiling webpki-roots v0.25.4 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling ripemd v0.1.3 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling rustls-webpki v0.101.7 [INFO] [stderr] Compiling sct v0.7.1 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.100 [INFO] [stderr] Compiling dunce v1.0.5 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling untrusted v0.7.1 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling data-encoding v2.9.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [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 zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling auto_impl v1.3.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling derive_more v1.0.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.100 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling pin-project-internal v1.1.10 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling spin v0.5.2 [INFO] [stderr] Compiling bech32 v0.9.1 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling wyz v0.5.1 [INFO] [stderr] Compiling Inflector v0.11.4 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling pem v1.1.1 [INFO] [stderr] Compiling js-sys v0.3.77 [INFO] [stderr] Compiling pin-project v1.1.10 [INFO] [stderr] Compiling salsa20 v0.10.2 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling funty v2.0.0 [INFO] [stderr] Compiling send_wrapper v0.4.0 [INFO] [stderr] Compiling tracing-futures v0.2.5 [INFO] [stderr] Compiling scrypt v0.10.0 [INFO] [stderr] Compiling hashers v1.0.1 [INFO] [stderr] Compiling simple_asn1 v0.6.3 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling bitvec v1.0.1 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling ctr v0.9.2 [INFO] [stderr] Compiling strum v0.26.3 [INFO] [stderr] Compiling pbkdf2 v0.12.2 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling futures-locks v0.7.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling dotenv v0.15.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling env_logger v0.10.2 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling gloo-timers v0.2.6 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling futures-timer v3.0.3 [INFO] [stderr] Compiling bytes v1.10.1 [INFO] [stderr] Compiling toml_datetime v0.6.9 [INFO] [stderr] Compiling serde_spanned v0.6.8 [INFO] [stderr] Compiling impl-serde v0.4.0 [INFO] [stderr] Compiling cargo-platform v0.1.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 toml_edit v0.22.25 [INFO] [stderr] Compiling coins-bip32 v0.8.7 [INFO] [stderr] Compiling rlp v0.5.2 [INFO] [stderr] Compiling tokio v1.44.2 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling open-fastrlp-derive v0.1.1 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling impl-rlp v0.3.0 [INFO] [stderr] Compiling enr v0.10.0 [INFO] [stderr] Compiling cargo_metadata v0.18.1 [INFO] [stderr] Compiling jsonwebtoken v8.3.0 [INFO] [stderr] Compiling eth-keystore v0.5.0 [INFO] [stderr] Compiling coins-bip39 v0.8.7 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling toml v0.8.21 [INFO] [stderr] Compiling tungstenite v0.20.1 [INFO] [stderr] Compiling parity-scale-codec-derive v3.7.4 [INFO] [stderr] Compiling scale-info-derive v2.11.6 [INFO] [stderr] Compiling num_enum_derive v0.7.3 [INFO] [stderr] Compiling num_enum v0.7.3 [INFO] [stderr] Compiling scale-info v2.11.6 [INFO] [stderr] Compiling impl-codec v0.6.0 [INFO] [stderr] Compiling ethbloom v0.13.0 [INFO] [stderr] Compiling primitive-types v0.12.2 [INFO] [stderr] Compiling tokio-util v0.7.15 [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 ethereum-types v0.14.1 [INFO] [stderr] Compiling h2 v0.3.26 [INFO] [stderr] Compiling open-fastrlp v0.1.4 [INFO] [stderr] Compiling ethabi v18.0.0 [INFO] [stderr] Compiling ethers-core v2.0.14 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling hyper-rustls v0.24.2 [INFO] [stderr] Compiling reqwest v0.11.27 [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-providers v2.0.14 [INFO] [stderr] Compiling ethers-etherscan v2.0.14 [INFO] [stderr] Compiling ethers-contract-derive 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 polygon-mev-bot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: struct is not supported in `trait`s or `impl`s [INFO] [stdout] --> src/opportunity_finder.rs:817:5 [INFO] [stdout] | [INFO] [stdout] 817 | struct SwapDetails { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider moving the struct out to a nearby module scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read `src/../bytecode/FlashloanExecutor.bin`: No such file or directory (os error 2) [INFO] [stdout] --> src/transaction_executor.rs:361:33 [INFO] [stdout] | [INFO] [stdout] 361 | let contract_bytecode = include_bytes!("../bytecode/FlashloanExecutor.bin"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `chrono` [INFO] [stdout] --> src/utils.rs:50:14 [INFO] [stdout] | [INFO] [stdout] 50 | let dt = chrono::DateTime::from_timestamp(secs, nanos) [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `chrono` [INFO] [stdout] --> src/utils.rs:51:28 [INFO] [stdout] | [INFO] [stdout] 51 | .unwrap_or_else(|| chrono::DateTime::UNIX_EPOCH); [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `chrono` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `chrono`, use `cargo add chrono` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SwapDetails` in this scope [INFO] [stdout] --> src/opportunity_finder.rs:825:77 [INFO] [stdout] | [INFO] [stdout] 825 | async fn extract_swap_details(&self, tx: &Transaction) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 150 | impl OpportunityFinder { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `SwapDetails` in this scope [INFO] [stdout] --> src/opportunity_finder.rs:901:17 [INFO] [stdout] | [INFO] [stdout] 901 | Ok(Some(SwapDetails { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `SwapDetails` in this scope [INFO] [stdout] --> src/opportunity_finder.rs:910:57 [INFO] [stdout] | [INFO] [stdout] 910 | async fn find_arbitrage_paths(&self, swap_details: &SwapDetails) -> Result>> { [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/opportunity_finder.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ethers::utils::keccak256` [INFO] [stdout] --> src/transaction_executor.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ethers::utils::keccak256; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `debug` [INFO] [stdout] --> src/transaction_executor.rs:4:30 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{info, warn, error, debug}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::sync::Mutex` [INFO] [stdout] --> src/rpc_manager.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use tokio::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mempool.rs:114:17 [INFO] [stdout] | [INFO] [stdout] 113 | match tx_hash_result { [INFO] [stdout] | -------------- this expression has type `TxHash` [INFO] [stdout] 114 | Ok(tx_hash) => { [INFO] [stdout] | ^^^^^^^^^^^ expected `TxHash`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `TxHash` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/mempool.rs:139:17 [INFO] [stdout] | [INFO] [stdout] 113 | match tx_hash_result { [INFO] [stdout] | -------------- this expression has type `TxHash` [INFO] [stdout] ... [INFO] [stdout] 139 | Err(e) => { [INFO] [stdout] | ^^^^^^ expected `TxHash`, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `TxHash` [INFO] [stdout] found enum `std::result::Result<_, _>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `provider` [INFO] [stdout] --> src/opportunity_finder.rs:1012:9 [INFO] [stdout] | [INFO] [stdout] 1012 | provider: &Provider, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_in` [INFO] [stdout] --> src/opportunity_finder.rs:1013:9 [INFO] [stdout] | [INFO] [stdout] 1013 | token_in: Address, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_out` [INFO] [stdout] --> src/opportunity_finder.rs:1014:9 [INFO] [stdout] | [INFO] [stdout] 1014 | token_out: Address, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_in` [INFO] [stdout] --> src/opportunity_finder.rs:1034:9 [INFO] [stdout] | [INFO] [stdout] 1034 | token_in: &Address, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_in` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_out` [INFO] [stdout] --> src/opportunity_finder.rs:1035:9 [INFO] [stdout] | [INFO] [stdout] 1035 | token_out: &Address, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `front_run_out` [INFO] [stdout] --> src/opportunity_finder.rs:1055:13 [INFO] [stdout] | [INFO] [stdout] 1055 | let front_run_out = front_run_amount * 99 / 100; // 1% fee [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_front_run_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `victim_out` [INFO] [stdout] --> src/opportunity_finder.rs:1058:13 [INFO] [stdout] | [INFO] [stdout] 1058 | let victim_out = victim_amount * slippage_factor / 100; [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_victim_out` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `provider` [INFO] [stdout] --> src/opportunity_finder.rs:1076:9 [INFO] [stdout] | [INFO] [stdout] 1076 | provider: &Provider, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lending_platform` [INFO] [stdout] --> src/opportunity_finder.rs:1077:9 [INFO] [stdout] | [INFO] [stdout] 1077 | lending_platform: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lending_platform` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `provider` [INFO] [stdout] --> src/opportunity_finder.rs:1103:9 [INFO] [stdout] | [INFO] [stdout] 1103 | provider: &Provider, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tokens` [INFO] [stdout] --> src/opportunity_finder.rs:1104:9 [INFO] [stdout] | [INFO] [stdout] 1104 | tokens: &[Address], [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amounts` [INFO] [stdout] --> src/opportunity_finder.rs:1105:9 [INFO] [stdout] | [INFO] [stdout] 1105 | amounts: &[U256], [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_amounts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `action_type` [INFO] [stdout] --> src/opportunity_finder.rs:1106:9 [INFO] [stdout] | [INFO] [stdout] 1106 | action_type: &str, [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_action_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `provider` [INFO] [stdout] --> src/opportunity_finder.rs:1121:9 [INFO] [stdout] | [INFO] [stdout] 1121 | provider: &Provider, [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_provider` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/opportunity_finder.rs:1122:9 [INFO] [stdout] | [INFO] [stdout] 1122 | token: Address, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount` [INFO] [stdout] --> src/opportunity_finder.rs:1123:9 [INFO] [stdout] | [INFO] [stdout] 1123 | amount: U256, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `source_chain_id` [INFO] [stdout] --> src/opportunity_finder.rs:1124:9 [INFO] [stdout] | [INFO] [stdout] 1124 | source_chain_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_source_chain_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `target_chain_id` [INFO] [stdout] --> src/opportunity_finder.rs:1125:9 [INFO] [stdout] | [INFO] [stdout] 1125 | target_chain_id: u64, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_target_chain_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/transaction_executor.rs:65:22 [INFO] [stdout] | [INFO] [stdout] 65 | self.deploy_flashloan_executor(&wallet).await? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot infer type of the type parameter `M` declared on the method `deploy_flashloan_executor` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: ethers::ethers_middleware::Middleware` [INFO] [stdout] = help: the following types implement trait `ethers::ethers_middleware::Middleware`: [INFO] [stdout] &'b U [INFO] [stdout] Arc [INFO] [stdout] Box [INFO] [stdout] GasEscalatorMiddleware [INFO] [stdout] GasOracleMiddleware [INFO] [stdout] NonceManagerMiddleware [INFO] [stdout] PolicyMiddleware [INFO] [stdout] TimeLag [INFO] [stdout] and 3 others [INFO] [stdout] note: required by a bound in `TransactionExecutor::deploy_flashloan_executor` [INFO] [stdout] --> src/transaction_executor.rs:357:43 [INFO] [stdout] | [INFO] [stdout] 357 | async fn deploy_flashloan_executor(&self, wallet: &SignerMiddleware>, LocalWallet>) -> Resu... [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `TransactionExecutor::deploy_flashloan_executor` [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 65 | self.deploy_flashloan_executor::(&wallet).await? [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `max_priority_fee_per_gas` found for struct `FunctionCall` in the current scope [INFO] [stdout] --> src/transaction_executor.rs:186:18 [INFO] [stdout] | [INFO] [stdout] 185 | tx = tx [INFO] [stdout] | __________________- [INFO] [stdout] 186 | | .max_priority_fee_per_gas(priority) [INFO] [stdout] | | -^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `FunctionCall>, ...>>, ..., ...>` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/transaction_executor.rs:207:43 [INFO] [stdout] | [INFO] [stdout] 207 | self.send_and_confirm_transaction(tx).await [INFO] [stdout] | ---------------------------- ^^ expected `FunctionCall>, ..., _>`, found `FunctionCall, ..., ...>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `FunctionCall>>, Arc>, _>` [INFO] [stdout] found struct `FunctionCall>, ethers::ethers_middleware::SignerMiddleware<_, _>, ethers::types::U256>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/transaction_executor.rs:323:14 [INFO] [stdout] | [INFO] [stdout] 323 | ...fn send_and_confirm_transaction(&self, tx: ContractCall>, LocalWallet>>, T>) -... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -------------------------------------------------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_profit` [INFO] [stdout] --> src/transaction_executor.rs:213:9 [INFO] [stdout] | [INFO] [stdout] 213 | min_profit: U256, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_price` [INFO] [stdout] --> src/transaction_executor.rs:214:9 [INFO] [stdout] | [INFO] [stdout] 214 | gas_price: U256, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priority_fee` [INFO] [stdout] --> src/transaction_executor.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | priority_fee: Option, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priority_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_fee` [INFO] [stdout] --> src/transaction_executor.rs:216:9 [INFO] [stdout] | [INFO] [stdout] 216 | max_fee: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wallet` [INFO] [stdout] --> src/transaction_executor.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | wallet: &SignerMiddleware>, LocalWallet>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_wallet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flashloan_executor_address` [INFO] [stdout] --> src/transaction_executor.rs:218:9 [INFO] [stdout] | [INFO] [stdout] 218 | flashloan_executor_address: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flashloan_executor_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_profit` [INFO] [stdout] --> src/transaction_executor.rs:238:9 [INFO] [stdout] | [INFO] [stdout] 238 | min_profit: U256, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_price` [INFO] [stdout] --> src/transaction_executor.rs:239:9 [INFO] [stdout] | [INFO] [stdout] 239 | gas_price: U256, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priority_fee` [INFO] [stdout] --> src/transaction_executor.rs:240:9 [INFO] [stdout] | [INFO] [stdout] 240 | priority_fee: Option, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priority_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_fee` [INFO] [stdout] --> src/transaction_executor.rs:241:9 [INFO] [stdout] | [INFO] [stdout] 241 | max_fee: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wallet` [INFO] [stdout] --> src/transaction_executor.rs:242:9 [INFO] [stdout] | [INFO] [stdout] 242 | wallet: &SignerMiddleware>, LocalWallet>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_wallet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flashloan_executor_address` [INFO] [stdout] --> src/transaction_executor.rs:243:9 [INFO] [stdout] | [INFO] [stdout] 243 | flashloan_executor_address: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flashloan_executor_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_profit` [INFO] [stdout] --> src/transaction_executor.rs:263:9 [INFO] [stdout] | [INFO] [stdout] 263 | min_profit: U256, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_price` [INFO] [stdout] --> src/transaction_executor.rs:264:9 [INFO] [stdout] | [INFO] [stdout] 264 | gas_price: U256, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priority_fee` [INFO] [stdout] --> src/transaction_executor.rs:265:9 [INFO] [stdout] | [INFO] [stdout] 265 | priority_fee: Option, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priority_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_fee` [INFO] [stdout] --> src/transaction_executor.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | max_fee: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wallet` [INFO] [stdout] --> src/transaction_executor.rs:267:9 [INFO] [stdout] | [INFO] [stdout] 267 | wallet: &SignerMiddleware>, LocalWallet>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_wallet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flashloan_executor_address` [INFO] [stdout] --> src/transaction_executor.rs:268:9 [INFO] [stdout] | [INFO] [stdout] 268 | flashloan_executor_address: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flashloan_executor_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arb` [INFO] [stdout] --> src/transaction_executor.rs:272:44 [INFO] [stdout] | [INFO] [stdout] 272 | FlashLoanActionType::Arbitrage(arb) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `collateral_token` [INFO] [stdout] --> src/transaction_executor.rs:284:72 [INFO] [stdout] | [INFO] [stdout] 284 | FlashLoanActionType::CollateralManipulation { target_user, collateral_token, action } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `collateral_token: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_a` [INFO] [stdout] --> src/transaction_executor.rs:289:61 [INFO] [stdout] | [INFO] [stdout] 289 | FlashLoanActionType::LiquidityProvision { pool, token_a, token_b, amount_a, amount_b, duration_seconds } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `token_a: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_b` [INFO] [stdout] --> src/transaction_executor.rs:289:70 [INFO] [stdout] | [INFO] [stdout] 289 | FlashLoanActionType::LiquidityProvision { pool, token_a, token_b, amount_a, amount_b, duration_seconds } => { [INFO] [stdout] | ^^^^^^^ help: try ignoring the field: `token_b: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_a` [INFO] [stdout] --> src/transaction_executor.rs:289:79 [INFO] [stdout] | [INFO] [stdout] 289 | FlashLoanActionType::LiquidityProvision { pool, token_a, token_b, amount_a, amount_b, duration_seconds } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `amount_a: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `amount_b` [INFO] [stdout] --> src/transaction_executor.rs:289:89 [INFO] [stdout] | [INFO] [stdout] 289 | FlashLoanActionType::LiquidityProvision { pool, token_a, token_b, amount_a, amount_b, duration_seconds } => { [INFO] [stdout] | ^^^^^^^^ help: try ignoring the field: `amount_b: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `duration_seconds` [INFO] [stdout] --> src/transaction_executor.rs:289:99 [INFO] [stdout] | [INFO] [stdout] 289 | FlashLoanActionType::LiquidityProvision { pool, token_a, token_b, amount_a, amount_b, duration_seconds } => { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `duration_seconds: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `min_profit` [INFO] [stdout] --> src/transaction_executor.rs:301:9 [INFO] [stdout] | [INFO] [stdout] 301 | min_profit: U256, [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_min_profit` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gas_price` [INFO] [stdout] --> src/transaction_executor.rs:302:9 [INFO] [stdout] | [INFO] [stdout] 302 | gas_price: U256, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gas_price` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `priority_fee` [INFO] [stdout] --> src/transaction_executor.rs:303:9 [INFO] [stdout] | [INFO] [stdout] 303 | priority_fee: Option, [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_priority_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `max_fee` [INFO] [stdout] --> src/transaction_executor.rs:304:9 [INFO] [stdout] | [INFO] [stdout] 304 | max_fee: Option, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_max_fee` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `wallet` [INFO] [stdout] --> src/transaction_executor.rs:305:9 [INFO] [stdout] | [INFO] [stdout] 305 | wallet: &SignerMiddleware>, LocalWallet>, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_wallet` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flashloan_executor_address` [INFO] [stdout] --> src/transaction_executor.rs:306:9 [INFO] [stdout] | [INFO] [stdout] 306 | flashloan_executor_address: Address, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_flashloan_executor_address` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `send` exists for struct `FunctionCall, ...>>>, ..., ...>`, but its trait bounds were not satisfied [INFO] [stdout] --> src/transaction_executor.rs:324:18 [INFO] [stdout] | [INFO] [stdout] 324 | match tx.send().await { [INFO] [stdout] | ^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `T: Tokenizable` [INFO] [stdout] which is required by `T: Detokenize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `abi` found for struct `flashloan_executor::FlashloanExecutor<_>` in the current scope [INFO] [stdout] --> src/transaction_executor.rs:366:32 [INFO] [stdout] | [INFO] [stdout] 23 | / abigen!( [INFO] [stdout] 24 | | FlashloanExecutor, [INFO] [stdout] 25 | | r#"[ [INFO] [stdout] 26 | | function executeArbitrage(address[] calldata path, uint256 amountIn, uint256 minProfit) external returns (uint256) [INFO] [stdout] ... | [INFO] [stdout] 31 | | ]"#, [INFO] [stdout] 32 | | ); [INFO] [stdout] | |_- function or associated item `abi` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 366 | FlashloanExecutor::abi().clone(), [INFO] [stdout] | ^^^ function or associated item not found in `flashloan_executor::FlashloanExecutor<_>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `flashloan_executor::FlashloanExecutor<_>`, consider using `flashloan_executor::FlashloanExecutor::::new` which returns `flashloan_executor::FlashloanExecutor<_>` [INFO] [stdout] --> src/transaction_executor.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | / abigen!( [INFO] [stdout] 24 | | FlashloanExecutor, [INFO] [stdout] 25 | | r#"[ [INFO] [stdout] 26 | | function executeArbitrage(address[] calldata path, uint256 amountIn, uint256 minProfit) external returns (uint256) [INFO] [stdout] ... | [INFO] [stdout] 31 | | ]"#, [INFO] [stdout] 32 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] = note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: the function `abi` is implemented on `ContractInstance, _>` [INFO] [stdout] | [INFO] [stdout] 366 - FlashloanExecutor::abi().clone(), [INFO] [stdout] 366 + ContractInstance, _>::abi().clone(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/transaction_executor.rs:368:13 [INFO] [stdout] | [INFO] [stdout] 365 | let factory = ContractFactory::new( [INFO] [stdout] | -------------------- arguments to this function are incorrect [INFO] [stdout] ... [INFO] [stdout] 368 | wallet.clone() [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Arc<_>`, found `SignerMiddleware>, ...>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<_>` [INFO] [stdout] found struct `ethers::ethers_middleware::SignerMiddleware>, Wallet>>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/ethers-contract-2.0.14/src/factory.rs:379:12 [INFO] [stdout] | [INFO] [stdout] 379 | pub fn new(abi: Abi, bytecode: Bytes, client: B) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] help: call `Into::into` on this expression to convert `ethers::ethers_middleware::SignerMiddleware>, Wallet>>` into `Arc<_>` [INFO] [stdout] | [INFO] [stdout] 368 | wallet.clone().into() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gas` found for struct `Deployer` in the current scope [INFO] [stdout] --> src/transaction_executor.rs:375:33 [INFO] [stdout] | [INFO] [stdout] 375 | let deployer = deployer.gas(U256::from(5_000_000)); [INFO] [stdout] | ^^^ method not found in `Deployer, _>` [INFO] [stdout] | [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 375 | let deployer = deployer.tx.gas(U256::from(5_000_000)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/transaction_executor.rs:400:85 [INFO] [stdout] | [INFO] [stdout] 400 | let flashloan_executor = FlashloanExecutor::new(flashloan_executor_address, wallet.clone()); [INFO] [stdout] | ---------------------- ^^^^^^^^^^^^^^ expected `Arc<_>`, found `&SignerMiddleware>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Arc<_>` [INFO] [stdout] found reference `ðers::ethers_middleware::SignerMiddleware>>` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/transaction_executor.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | / abigen!( [INFO] [stdout] 24 | | FlashloanExecutor, [INFO] [stdout] 25 | | r#"[ [INFO] [stdout] 26 | | function executeArbitrage(address[] calldata path, uint256 amountIn, uint256 minProfit) external returns (uint256) [INFO] [stdout] ... | [INFO] [stdout] 31 | | ]"#, [INFO] [stdout] 32 | | ); [INFO] [stdout] | |_^ [INFO] [stdout] = note: this error originates in the macro `abigen` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: call `Into::into` on this expression to convert `ðers::ethers_middleware::SignerMiddleware>>` into `Arc<_>` [INFO] [stdout] | [INFO] [stdout] 400 | let flashloan_executor = FlashloanExecutor::new(flashloan_executor_address, wallet.clone().into()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0283, E0308, E0412, E0422, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0283`. [INFO] [stdout] [INFO] [stderr] error: could not compile `polygon-mev-bot` (lib) due to 17 previous errors; 53 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ccaaff43fee42246fac7ae4ac468a3e447ded30c56de9dc892f1a93fbf79af29", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ccaaff43fee42246fac7ae4ac468a3e447ded30c56de9dc892f1a93fbf79af29", kill_on_drop: false }` [INFO] [stdout] ccaaff43fee42246fac7ae4ac468a3e447ded30c56de9dc892f1a93fbf79af29