[INFO] cloning repository https://github.com/beautybliss-toml/Defi-Staking [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/beautybliss-toml/Defi-Staking" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeautybliss-toml%2FDefi-Staking", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeautybliss-toml%2FDefi-Staking'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9740c50e9fbef801074c0e93eba13015b20ea575 [INFO] testing beautybliss-toml/Defi-Staking against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbeautybliss-toml%2FDefi-Staking" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/beautybliss-toml/Defi-Staking [INFO] finished tweaking git repo https://github.com/beautybliss-toml/Defi-Staking [INFO] tweaked toml for git repo https://github.com/beautybliss-toml/Defi-Staking written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/beautybliss-toml/Defi-Staking on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/beautybliss-toml/Defi-Staking 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 100 packages to latest compatible versions [INFO] [stderr] Adding aead v0.4.3 [INFO] [stderr] Adding aes v0.7.5 [INFO] [stderr] Adding aes-gcm-siv v0.10.3 [INFO] [stderr] Adding anchor-attribute-access-control v0.29.0 [INFO] [stderr] Adding anchor-attribute-account v0.29.0 [INFO] [stderr] Adding anchor-attribute-constant v0.29.0 [INFO] [stderr] Adding anchor-attribute-error v0.29.0 [INFO] [stderr] Adding anchor-attribute-event v0.29.0 [INFO] [stderr] Adding anchor-attribute-program v0.29.0 [INFO] [stderr] Adding anchor-derive-accounts v0.29.0 [INFO] [stderr] Adding anchor-derive-serde v0.29.0 [INFO] [stderr] Adding anchor-derive-space v0.29.0 [INFO] [stderr] Adding anchor-lang v0.29.0 (available: v0.31.1) [INFO] [stderr] Adding anchor-spl v0.29.0 (available: v0.31.1) [INFO] [stderr] Adding anchor-syn v0.29.0 [INFO] [stderr] Adding assert_matches v1.5.0 [INFO] [stderr] Adding atty v0.2.14 [INFO] [stderr] Adding base64 v0.13.1 [INFO] [stderr] Adding block-padding v0.2.1 [INFO] [stderr] Adding chrono v0.4.41 [INFO] [stderr] Adding cipher v0.3.0 [INFO] [stderr] Adding ctr v0.8.0 [INFO] [stderr] Adding darling v0.20.11 [INFO] [stderr] Adding darling_core v0.20.11 [INFO] [stderr] Adding darling_macro v0.20.11 [INFO] [stderr] Adding derivation-path v0.2.0 [INFO] [stderr] Adding ed25519 v1.5.3 [INFO] [stderr] Adding ed25519-dalek v1.0.1 [INFO] [stderr] Adding ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Adding env_logger v0.9.3 [INFO] [stderr] Adding fast-math v0.1.1 [INFO] [stderr] Adding fnv v1.0.7 [INFO] [stderr] Adding hermit-abi v0.1.19 [INFO] [stderr] Adding hex v0.4.3 [INFO] [stderr] Adding hmac v0.12.1 [INFO] [stderr] Adding humantime v2.2.0 [INFO] [stderr] Adding ident_case v1.0.1 [INFO] [stderr] Adding ieee754 v0.2.6 [INFO] [stderr] Adding merlin v3.0.0 [INFO] [stderr] Adding num v0.4.3 [INFO] [stderr] Adding num-complex v0.4.6 [INFO] [stderr] Adding num-iter v0.1.45 [INFO] [stderr] Adding num-rational v0.4.2 [INFO] [stderr] Adding num_enum v0.7.4 [INFO] [stderr] Adding num_enum_derive v0.7.4 [INFO] [stderr] Adding pbkdf2 v0.11.0 [INFO] [stderr] Adding percent-encoding v2.3.2 [INFO] [stderr] Adding polyval v0.5.3 [INFO] [stderr] Adding pyth-solana-receiver-sdk v0.3.2 (available: v0.6.1) [INFO] [stderr] Adding pythnet-sdk v2.3.1 [INFO] [stderr] Adding qstring v0.7.2 [INFO] [stderr] Adding qualifier_attr v0.2.2 [INFO] [stderr] Adding serde_with v2.3.3 [INFO] [stderr] Adding serde_with_macros v2.3.3 [INFO] [stderr] Adding sha3 v0.9.1 [INFO] [stderr] Adding signature v1.6.4 [INFO] [stderr] Adding siphasher v0.3.11 [INFO] [stderr] Adding slow_primes v0.1.14 [INFO] [stderr] Adding solana-logger v1.18.26 [INFO] [stderr] Adding solana-sdk v1.18.26 [INFO] [stderr] Adding solana-security-txt v1.1.1 [INFO] [stderr] Adding solana-zk-token-sdk v1.18.26 [INFO] [stderr] Adding spl-associated-token-account v2.3.0 [INFO] [stderr] Adding spl-discriminator v0.1.0 [INFO] [stderr] Adding spl-discriminator-derive v0.1.2 [INFO] [stderr] Adding spl-discriminator-syn v0.1.2 [INFO] [stderr] Adding spl-memo v4.0.4 [INFO] [stderr] Adding spl-pod v0.1.0 [INFO] [stderr] Adding spl-program-error v0.3.0 [INFO] [stderr] Adding spl-program-error-derive v0.3.2 [INFO] [stderr] Adding spl-tlv-account-resolution v0.4.0 [INFO] [stderr] Adding spl-tlv-account-resolution v0.5.1 [INFO] [stderr] Adding spl-token v4.0.3 [INFO] [stderr] Adding spl-token-2022 v0.9.0 [INFO] [stderr] Adding spl-token-2022 v1.0.0 [INFO] [stderr] Adding spl-token-group-interface v0.1.0 [INFO] [stderr] Adding spl-token-metadata-interface v0.2.0 [INFO] [stderr] Adding spl-transfer-hook-interface v0.3.0 [INFO] [stderr] Adding spl-transfer-hook-interface v0.4.1 [INFO] [stderr] Adding spl-type-length-value v0.3.0 [INFO] [stderr] Adding strsim v0.11.1 [INFO] [stderr] Downgrading subtle v2.6.1 -> v2.4.1 (available: v2.6.1) [INFO] [stderr] Adding termcolor v1.4.1 [INFO] [stderr] Adding universal-hash v0.4.1 [INFO] [stderr] Adding uriparse v0.6.4 [INFO] [stderr] Adding winapi v0.3.9 [INFO] [stderr] Adding winapi-i686-pc-windows-gnu v0.4.0 [INFO] [stderr] Adding winapi-util v0.1.10 [INFO] [stderr] Adding winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] [stderr] Adding windows-link v0.1.3 [INFO] [stderr] Adding windows-sys v0.60.2 [INFO] [stderr] Adding windows-targets v0.53.3 [INFO] [stderr] Adding windows_aarch64_gnullvm v0.53.0 [INFO] [stderr] Adding windows_aarch64_msvc v0.53.0 [INFO] [stderr] Adding windows_i686_gnu v0.53.0 [INFO] [stderr] Adding windows_i686_gnullvm v0.53.0 [INFO] [stderr] Adding windows_i686_msvc v0.53.0 [INFO] [stderr] Adding windows_x86_64_gnu v0.53.0 [INFO] [stderr] Adding windows_x86_64_gnullvm v0.53.0 [INFO] [stderr] Adding windows_x86_64_msvc v0.53.0 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Downloaded wasm-bindgen-shared v0.2.95 [INFO] [stderr] Downloaded zeroize v1.3.0 [INFO] [stderr] Downloaded wasm-bindgen-macro v0.2.95 [INFO] [stderr] Downloaded darling_macro v0.20.11 [INFO] [stderr] Downloaded anchor-derive-space v0.29.0 [INFO] [stderr] Downloaded spl-pod v0.1.0 [INFO] [stderr] Downloaded anchor-attribute-constant v0.30.1 [INFO] [stderr] Downloaded anchor-derive-serde v0.29.0 [INFO] [stderr] Downloaded wasm-bindgen-backend v0.2.95 [INFO] [stderr] Downloaded anchor-spl v0.29.0 [INFO] [stderr] Downloaded tiny-bip39 v0.8.2 [INFO] [stderr] Downloaded borsh-derive v0.10.4 [INFO] [stderr] Downloaded thiserror v1.0.66 [INFO] [stderr] Downloaded anchor-attribute-access-control v0.29.0 [INFO] [stderr] Downloaded anchor-attribute-account v0.29.0 [INFO] [stderr] Downloaded borsh-derive v1.5.1 [INFO] [stderr] Downloaded pythnet-sdk v2.3.1 [INFO] [stderr] Downloaded spl-transfer-hook-interface v0.3.0 [INFO] [stderr] Downloaded spl-memo v4.0.4 [INFO] [stderr] Downloaded anchor-lang-idl v0.1.1 [INFO] [stderr] Downloaded anchor-derive-accounts v0.30.1 [INFO] [stderr] Downloaded anchor-lang v0.30.1 [INFO] [stderr] Downloaded spl-token v4.0.3 [INFO] [stderr] Downloaded darling_core v0.20.11 [INFO] [stderr] Downloaded solana-sdk v1.18.26 [INFO] [stderr] Downloaded web-sys v0.3.72 [INFO] [stderr] Downloaded spl-token-2022 v0.9.0 [INFO] [stderr] Downloaded spl-token-metadata-interface v0.2.0 [INFO] [stderr] Downloaded spl-tlv-account-resolution v0.4.0 [INFO] [stderr] Downloaded spl-discriminator-derive v0.1.2 [INFO] [stderr] Downloaded serde_with v2.3.3 [INFO] [stderr] Downloaded spl-discriminator v0.1.0 [INFO] [stderr] Downloaded aes-gcm-siv v0.10.3 [INFO] [stderr] Downloaded merlin v3.0.0 [INFO] [stderr] Downloaded assert_matches v1.5.0 [INFO] [stderr] Downloaded derivation-path v0.2.0 [INFO] [stderr] Downloaded qualifier_attr v0.2.2 [INFO] [stderr] Downloaded serde_with_macros v2.3.3 [INFO] [stderr] Downloaded env_logger v0.9.3 [INFO] [stderr] Downloaded solana-logger v1.18.26 [INFO] [stderr] Downloaded uriparse v0.6.4 [INFO] [stderr] Downloaded anchor-attribute-account v0.30.1 [INFO] [stderr] Downloaded anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Downloaded anchor-attribute-program v0.30.1 [INFO] [stderr] Downloaded anchor-syn v0.30.1 [INFO] [stderr] Downloaded anchor-derive-serde v0.30.1 [INFO] [stderr] Downloaded anchor-derive-space v0.30.1 [INFO] [stderr] Downloaded ieee754 v0.2.6 [INFO] [stderr] Downloaded slow_primes v0.1.14 [INFO] [stderr] Downloaded serde v1.0.214 [INFO] [stderr] Downloaded spl-discriminator-syn v0.1.2 [INFO] [stderr] Downloaded ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Downloaded darling v0.20.11 [INFO] [stderr] Downloaded spl-program-error-derive v0.3.2 [INFO] [stderr] Downloaded spl-program-error v0.3.0 [INFO] [stderr] Downloaded spl-type-length-value v0.3.0 [INFO] [stderr] Downloaded anchor-attribute-access-control v0.30.1 [INFO] [stderr] Downloaded anchor-attribute-error v0.30.1 [INFO] [stderr] Downloaded anchor-attribute-event v0.30.1 [INFO] [stderr] Downloaded fast-math v0.1.1 [INFO] [stderr] Downloaded cc v1.1.31 [INFO] [stderr] Downloaded spl-token-2022 v1.0.0 [INFO] [stderr] Downloaded curve25519-dalek v3.2.1 [INFO] [stderr] Downloaded light-poseidon v0.2.0 [INFO] [stderr] Downloaded pyth-solana-receiver-sdk v0.3.2 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Downloaded libsecp256k1-core v0.2.2 [INFO] [stderr] Downloaded ark-poly v0.4.2 [INFO] [stderr] Downloaded ark-serialize-derive v0.4.2 [INFO] [stderr] Downloaded serde_bytes v0.11.15 [INFO] [stderr] Downloaded anchor-attribute-constant v0.29.0 [INFO] [stderr] Downloaded anchor-attribute-error v0.29.0 [INFO] [stderr] Downloaded anchor-attribute-event v0.29.0 [INFO] [stderr] Downloaded anchor-derive-accounts v0.29.0 [INFO] [stderr] Downloaded spl-tlv-account-resolution v0.5.1 [INFO] [stderr] Downloaded spl-transfer-hook-interface v0.4.1 [INFO] [stderr] Downloaded spl-associated-token-account v2.3.0 [INFO] [stderr] Downloaded borsh-derive v0.9.3 [INFO] [stderr] Downloaded borsh v0.9.3 [INFO] [stderr] Downloaded borsh v1.5.1 [INFO] [stderr] Downloaded solana-zk-token-sdk v1.18.26 [INFO] [stderr] Downloaded sha3 v0.9.1 [INFO] [stderr] Downloaded bytemuck_derive v1.8.0 [INFO] [stderr] Downloaded console_log v0.2.2 [INFO] [stderr] Downloaded libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Downloaded libsecp256k1 v0.6.0 [INFO] [stderr] Downloaded ark-bn254 v0.4.0 [INFO] [stderr] Downloaded ark-ff-asm v0.4.2 [INFO] [stderr] Downloaded ark-ff-macros v0.4.2 [INFO] [stderr] Downloaded ark-serialize v0.4.2 [INFO] [stderr] Downloaded ark-std v0.4.0 [INFO] [stderr] Downloaded ark-ff v0.4.2 [INFO] [stderr] Downloaded solana-frozen-abi v1.18.26 [INFO] [stderr] Downloaded solana-frozen-abi-macro v1.18.26 [INFO] [stderr] Downloaded solana-sdk-macro v1.18.26 [INFO] [stderr] Downloaded pbkdf2 v0.4.0 [INFO] [stderr] Downloaded js-sys v0.3.72 [INFO] [stderr] Downloaded thiserror-impl v1.0.66 [INFO] [stderr] Downloaded anchor-attribute-program v0.29.0 [INFO] [stderr] Downloaded anchor-syn v0.29.0 [INFO] [stderr] Downloaded anchor-lang v0.29.0 [INFO] [stderr] Downloaded solana-security-txt v1.1.1 [INFO] [stderr] Downloaded spl-token-group-interface v0.1.0 [INFO] [stderr] Downloaded borsh-derive-internal v0.9.3 [INFO] [stderr] Downloaded borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Downloaded borsh-derive-internal v0.10.4 [INFO] [stderr] Downloaded borsh v0.10.4 [INFO] [stderr] Downloaded syn_derive v0.1.8 [INFO] [stderr] Downloaded bytemuck v1.19.0 [INFO] [stderr] Downloaded libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Downloaded ark-ec v0.4.2 [INFO] [stderr] Downloaded anyhow v1.0.92 [INFO] [stderr] Downloaded serde_derive v1.0.214 [INFO] [stderr] Downloaded syn v2.0.86 [INFO] [stderr] Downloaded solana-program v1.18.26 [INFO] [stderr] Downloaded wasm-bindgen v0.2.95 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b0f926d62c5f6bc9cdc3db5df4462183288a92ceb9f92134fca56c8ecf19c614 [INFO] running `Command { std: "docker" "start" "-a" "b0f926d62c5f6bc9cdc3db5df4462183288a92ceb9f92134fca56c8ecf19c614", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b0f926d62c5f6bc9cdc3db5df4462183288a92ceb9f92134fca56c8ecf19c614", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b0f926d62c5f6bc9cdc3db5df4462183288a92ceb9f92134fca56c8ecf19c614", kill_on_drop: false }` [INFO] [stdout] b0f926d62c5f6bc9cdc3db5df4462183288a92ceb9f92134fca56c8ecf19c614 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6d9f3d7e6e740ffcab6fdbc3b27e4b3cfcdd03e3569ea52168e97759b4ae9359 [INFO] running `Command { std: "docker" "start" "-a" "6d9f3d7e6e740ffcab6fdbc3b27e4b3cfcdd03e3569ea52168e97759b4ae9359", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling subtle v2.4.1 [INFO] [stderr] Compiling thiserror v1.0.66 [INFO] [stderr] Compiling anyhow v1.0.92 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling opaque-debug v0.3.1 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling syn v2.0.86 [INFO] [stderr] Compiling block-padding v0.2.1 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.95 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling bumpalo v3.16.0 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.18.26 [INFO] [stderr] Compiling bitmaps v2.1.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Compiling borsh v1.5.1 [INFO] [stderr] Compiling sized-chunks v0.6.5 [INFO] [stderr] Compiling blake3 v1.5.1 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling rand_xoshiro v0.6.0 [INFO] [stderr] Compiling solana-frozen-abi v1.18.26 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling bs58 v0.4.0 [INFO] [stderr] Compiling wasm-bindgen v0.2.95 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling unicode-segmentation v1.12.0 [INFO] [stderr] Compiling hashbrown v0.11.2 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.95 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling solana-program v1.18.26 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling constant_time_eq v0.3.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling strsim v0.11.1 [INFO] [stderr] Compiling ident_case v1.0.1 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling signature v1.6.4 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling ed25519 v1.5.3 [INFO] [stderr] Compiling humantime v2.2.0 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling solana-sdk v1.18.26 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling derivation-path v0.2.0 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling thiserror-impl v1.0.66 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling syn_derive v0.1.8 [INFO] [stderr] Compiling zeroize v1.3.0 [INFO] [stderr] Compiling borsh-derive v1.5.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.95 [INFO] [stderr] Compiling bytemuck_derive v1.8.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling hashbrown v0.13.2 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling solana-sdk-macro v1.18.26 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling bytemuck v1.19.0 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling qualifier_attr v0.2.2 [INFO] [stderr] Compiling serde_with_macros v2.3.3 [INFO] [stderr] Compiling ark-std v0.4.0 [INFO] [stderr] Compiling qstring v0.7.2 [INFO] [stderr] Compiling uriparse v0.6.4 [INFO] [stderr] Compiling chrono v0.4.41 [INFO] [stderr] Compiling assert_matches v1.5.0 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling spl-discriminator-syn v0.1.2 [INFO] [stderr] Compiling merlin v3.0.0 [INFO] [stderr] Compiling spl-program-error-derive v0.3.2 [INFO] [stderr] Compiling spl-discriminator-derive v0.1.2 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling num_enum v0.7.4 [INFO] [stderr] Compiling num-complex v0.4.6 [INFO] [stderr] Compiling anchor-derive-space v0.30.1 [INFO] [stderr] Compiling ieee754 v0.2.6 [INFO] [stderr] Compiling solana-security-txt v1.1.1 [INFO] [stderr] Compiling fast-math v0.1.1 [INFO] [stderr] Compiling num v0.4.3 [INFO] [stderr] Compiling anchor-derive-space v0.29.0 [INFO] [stderr] Compiling slow_primes v0.1.14 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling env_logger v0.9.3 [INFO] [stderr] Compiling solana-logger v1.18.26 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling serde_with v2.3.3 [INFO] [stderr] Compiling block-buffer v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling sha2 v0.9.9 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling ark-serialize v0.4.2 [INFO] [stderr] Compiling curve25519-dalek v3.2.1 [INFO] [stderr] Compiling ark-ff v0.4.2 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling pbkdf2 v0.4.0 [INFO] [stderr] Compiling borsh v0.10.4 [INFO] [stderr] Compiling borsh v0.9.3 [INFO] [stderr] Compiling tiny-bip39 v0.8.2 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling cipher v0.3.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Compiling ctr v0.8.0 [INFO] [stderr] Compiling polyval v0.5.3 [INFO] [stderr] Compiling aes v0.7.5 [INFO] [stderr] Compiling pbkdf2 v0.11.0 [INFO] [stderr] Compiling aead v0.4.3 [INFO] [stderr] Compiling sha3 v0.9.1 [INFO] [stderr] Compiling anchor-syn v0.30.1 [INFO] [stderr] Compiling anchor-syn v0.29.0 [INFO] [stderr] Compiling anchor-lang-idl v0.1.1 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling aes-gcm-siv v0.10.3 [INFO] [stderr] Compiling anchor-attribute-access-control v0.29.0 [INFO] [stderr] Compiling anchor-attribute-account v0.29.0 [INFO] [stderr] Compiling anchor-attribute-constant v0.29.0 [INFO] [stderr] Compiling anchor-attribute-program v0.29.0 [INFO] [stderr] Compiling anchor-derive-accounts v0.29.0 [INFO] [stderr] Compiling anchor-attribute-error v0.29.0 [INFO] [stderr] Compiling anchor-attribute-account v0.30.1 [INFO] [stderr] Compiling anchor-attribute-access-control v0.30.1 [INFO] [stderr] Compiling anchor-attribute-error v0.30.1 [INFO] [stderr] Compiling anchor-attribute-program v0.30.1 [INFO] [stderr] Compiling anchor-derive-serde v0.30.1 [INFO] [stderr] Compiling anchor-attribute-event v0.30.1 [INFO] [stderr] Compiling anchor-derive-accounts v0.30.1 [INFO] [stderr] Compiling anchor-attribute-constant v0.30.1 [INFO] [stderr] Compiling anchor-attribute-event v0.29.0 [INFO] [stderr] Compiling anchor-derive-serde v0.29.0 [INFO] [stderr] Compiling ark-poly v0.4.2 [INFO] [stderr] Compiling ark-ec v0.4.2 [INFO] [stderr] Compiling ark-bn254 v0.4.0 [INFO] [stderr] Compiling light-poseidon v0.2.0 [INFO] [stderr] Compiling spl-program-error v0.3.0 [INFO] [stderr] Compiling spl-discriminator v0.1.0 [INFO] [stderr] Compiling spl-token v4.0.3 [INFO] [stderr] Compiling spl-memo v4.0.4 [INFO] [stderr] Compiling anchor-lang v0.30.1 [INFO] [stderr] Compiling anchor-lang v0.29.0 [INFO] [stderr] Compiling pythnet-sdk v2.3.1 [INFO] [stderr] Compiling pyth-solana-receiver-sdk v0.3.2 [INFO] [stderr] Compiling solana-zk-token-sdk v1.18.26 [INFO] [stderr] Compiling spl-pod v0.1.0 [INFO] [stderr] Compiling spl-type-length-value v0.3.0 [INFO] [stderr] Compiling spl-token-group-interface v0.1.0 [INFO] [stderr] Compiling spl-tlv-account-resolution v0.5.1 [INFO] [stderr] Compiling spl-token-metadata-interface v0.2.0 [INFO] [stderr] Compiling spl-tlv-account-resolution v0.4.0 [INFO] [stderr] Compiling spl-transfer-hook-interface v0.4.1 [INFO] [stderr] Compiling spl-transfer-hook-interface v0.3.0 [INFO] [stderr] Compiling spl-token-2022 v0.9.0 [INFO] [stderr] Compiling spl-token-2022 v1.0.0 [INFO] [stderr] Compiling spl-associated-token-account v2.3.0 [INFO] [stderr] Compiling anchor-spl v0.29.0 [INFO] [stderr] Compiling ohm-fork-defi-staking v0.1.0 (/opt/rustwide/workdir/programs/ohm-fork-defi-staking) [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-heap` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, and `uefi` and 10 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_heap_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_heap_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_heap_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `custom-panic` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `solana` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `target_os` are: `aix`, `amdhsa`, `android`, `cuda`, `cygwin`, `dragonfly`, `emscripten`, `espidf`, `freebsd`, `fuchsia`, `haiku`, `hermit`, `horizon`, `hurd`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `psp`, `psx`, `redox`, `rtems`, `solaris`, `solid_asp3`, `teeos`, `trusty`, `tvos`, and `uefi` and 10 more [INFO] [stdout] = note: using a cfg inside a macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `$crate::custom_panic_default` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the macro `$crate::custom_panic_default` may come from an old version of the `solana_program` crate, try updating your dependency with `cargo update -p solana_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the macro `$crate::custom_panic_default` which comes from the expansion of the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Transfer` and `self` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_spl::token::{self, Token, Mint, TokenAccount, Transfer}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/stake_ohm.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/claim_ohm.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:65:109 [INFO] [stdout] | [INFO] [stdout] 65 | let sol_amount = amount * ( ( ohm_token_price.price as u64 ) / ( sol_price.price as u64 ) ) * 70 / 100; /// adjust 25 ~ 30% [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 66 | [INFO] [stdout] 67 | / let cpi_ctx1 = CpiContext::new( [INFO] [stdout] 68 | | ctx.accounts.system_program.to_account_info(), [INFO] [stdout] 69 | | system_program::Transfer{ [INFO] [stdout] 70 | | from: ctx.accounts.user.to_account_info(), [INFO] [stdout] ... | [INFO] [stdout] 73 | | ); [INFO] [stdout] | |______- rustdoc does not generate documentation for statements [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reward_token_initialize::*` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/reward_token_staking/mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use reward_token_initialize::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Transfer` and `self` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/meme_coin_initialize.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_spl::token::{self, Token, TokenAccount, Mint, Transfer}; [INFO] [stdout] | ^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/meme_coin_initialize.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: ambiguous glob re-exports [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use stake_meme_coin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the name `MemeStakingUserInfo` in the type namespace is first re-exported here [INFO] [stdout] ... [INFO] [stdout] 8 | pub use unstake_meme_coin::*; [INFO] [stdout] | -------------------- but the name `MemeStakingUserInfo` in the type namespace is also re-exported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ambiguous_glob_reexports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `MemeStakingUserInfo` is ambiguous [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/claim_reward_for_meme_coin.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | MemeStakingUserInfo [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #114095 [INFO] [stdout] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stdout] note: `MemeStakingUserInfo` could refer to the struct imported here [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use stake_meme_coin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `MemeStakingUserInfo` to disambiguate [INFO] [stdout] note: `MemeStakingUserInfo` could also refer to the struct imported here [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use unstake_meme_coin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `MemeStakingUserInfo` to disambiguate [INFO] [stdout] = note: `#[deny(ambiguous_glob_imports)]` (part of `#[deny(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `MemeStakingUserInfo` is ambiguous [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/claim_reward_for_meme_coin.rs:37:44 [INFO] [stdout] | [INFO] [stdout] 37 | meme_staking_user_info: Account<'info, MemeStakingUserInfo>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ambiguous name [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #114095 [INFO] [stdout] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stdout] note: `MemeStakingUserInfo` could refer to the struct imported here [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub use stake_meme_coin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `MemeStakingUserInfo` to disambiguate [INFO] [stdout] note: `MemeStakingUserInfo` could also refer to the struct imported here [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/mod.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use unstake_meme_coin::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: consider adding an explicit import of `MemeStakingUserInfo` to disambiguate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::system_program` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/claim_reward_for_meme_coin.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_lang::system_program; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/claim_reward_for_meme_coin.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `program` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `program` may come from an old version of the `anchor_attribute_program` crate, try updating your dependency with `cargo update -p anchor_attribute_program` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `anchor-debug` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: expected values for `feature` are: `cpi`, `default`, `no-entrypoint`, `no-idl`, and `no-log-ix-name` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Accounts` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Accounts` may come from an old version of the `anchor_derive_accounts` crate, try updating your dependency with `cargo update -p anchor_derive_accounts` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:42:19 [INFO] [stdout] | [INFO] [stdout] 42 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 70 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:78:19 [INFO] [stdout] | [INFO] [stdout] 78 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:307:1 [INFO] [stdout] | [INFO] [stdout] 307 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'_, PriceUpdateV2>` to implement `anchor_lang::Accounts<'_, BuyOhmWithSolBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_infos` exists for struct `anchor_lang::prelude::Account<'info, PriceUpdateV2>`, but its trait bounds were not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ doesn't satisfy `PriceUpdateV2: anchor_lang::AccountDeserialize` or `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountInfos<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_metas` exists for struct `anchor_lang::prelude::Account<'info, PriceUpdateV2>`, but its trait bounds were not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 9 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ doesn't satisfy `PriceUpdateV2: anchor_lang::AccountDeserialize` or `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountMetas` [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountMetas` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:54:34 [INFO] [stdout] | [INFO] [stdout] 54 | let sol_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:57:47 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn buy_ohm_with_sol(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 57 | &get_feed_id_from_hex(SOL_USD_FEED_ID)? [INFO] [stdout] | -------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:59:40 [INFO] [stdout] | [INFO] [stdout] 59 | let ohm_token_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:62:54 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn buy_ohm_with_sol(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 62 | &get_feed_id_from_hex(OHM_FOKK_TOKEN_FEED_ID)? [INFO] [stdout] | --------------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:307:1 [INFO] [stdout] | [INFO] [stdout] 307 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'_, PriceUpdateV2>` to implement `anchor_lang::Accounts<'_, StakeMemeCoinBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:70:5 [INFO] [stdout] | [INFO] [stdout] 70 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_infos` exists for struct `anchor_lang::prelude::Account<'info, PriceUpdateV2>`, but its trait bounds were not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ doesn't satisfy `PriceUpdateV2: anchor_lang::AccountDeserialize` or `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountInfos<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_metas` exists for struct `anchor_lang::prelude::Account<'info, PriceUpdateV2>`, but its trait bounds were not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ doesn't satisfy `PriceUpdateV2: anchor_lang::AccountDeserialize` or `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountMetas` [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountMetas` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:95:34 [INFO] [stdout] | [INFO] [stdout] 95 | let sol_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:98:47 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn stake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 98 | &get_feed_id_from_hex(SOL_USD_FEED_ID)? [INFO] [stdout] | -------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:102:44 [INFO] [stdout] | [INFO] [stdout] 102 | let meme_coin_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:105:58 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn stake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 105 | &get_feed_id_from_hex(FWOG_MEME_COIN_FEED_ID)? [INFO] [stdout] | --------------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:121:44 [INFO] [stdout] | [INFO] [stdout] 121 | let meme_coin_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:124:58 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn stake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 124 | &get_feed_id_from_hex(BONK_MEME_COIN_FEED_ID)? [INFO] [stdout] | --------------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:140:44 [INFO] [stdout] | [INFO] [stdout] 140 | let meme_coin_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/stake_meme_coin.rs:143:60 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn stake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 143 | &get_feed_id_from_hex(POPCAT_MEME_COIN_FEED_ID)? [INFO] [stdout] | ----------------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::Owner` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `anchor_lang::Owner` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:307:1 [INFO] [stdout] | [INFO] [stdout] 307 | pub trait Owner { [INFO] [stdout] | ^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = note: required for `anchor_lang::prelude::Account<'_, PriceUpdateV2>` to implement `anchor_lang::Accounts<'_, UnStakeMemeCoinBumps>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` which comes from the expansion of the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountSerialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^ the trait `anchor_lang::AccountSerialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:231:1 [INFO] [stdout] | [INFO] [stdout] 231 | pub trait AccountSerialize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:30 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `PriceUpdateV2: anchor_lang::AccountDeserialize` is not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | price_update: Account<'info, PriceUpdateV2>, [INFO] [stdout] | ^^^^^^^^^^^^ the trait `anchor_lang::AccountDeserialize` is not implemented for `PriceUpdateV2` [INFO] [stdout] | [INFO] [stdout] help: trait impl with same name found [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:60:1 [INFO] [stdout] | [INFO] [stdout] 60 | #[account] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: perhaps two different versions of crate `anchor_lang` are being used? [INFO] [stdout] note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/lib.rs:242:1 [INFO] [stdout] | [INFO] [stdout] 242 | pub trait AccountDeserialize: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this is the required trait [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ----------- one version of crate `anchor_lang` used here, as a direct dependency of the current crate [INFO] [stdout] | [INFO] [stdout] ::: programs/ohm-fork-defi-staking/src/instructions/ohm_staking/buy_ohm_with_sol.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use pyth_solana_receiver_sdk::price_update::{get_feed_id_from_hex, PriceUpdateV2}; [INFO] [stdout] | ------------------------ one version of crate `anchor_lang` used here, as a dependency of crate `pyth_solana_receiver_sdk` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ this type doesn't implement the required trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:105:1 [INFO] [stdout] | [INFO] [stdout] 105 | pub trait Accounts<'info, B>: ToAccountMetas + ToAccountInfos<'info> + Sized { [INFO] [stdout] | ---------------------------------------------------------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] note: required by a bound in `anchor_lang::prelude::Account` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:49 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ required by this bound in `Account` [INFO] [stdout] = note: this error originates in the attribute macro `account` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_infos` exists for struct `anchor_lang::prelude::Account<'info, PriceUpdateV2>`, but its trait bounds were not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ doesn't satisfy `PriceUpdateV2: anchor_lang::AccountDeserialize` or `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountInfos<'_>` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountInfos<'_>` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `to_account_metas` exists for struct `anchor_lang::prelude::Account<'info, PriceUpdateV2>`, but its trait bounds were not satisfied [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:15:10 [INFO] [stdout] | [INFO] [stdout] 15 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ method cannot be called due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/pyth-solana-receiver-sdk-0.3.2/src/price_update.rs:62:1 [INFO] [stdout] | [INFO] [stdout] 62 | pub struct PriceUpdateV2 { [INFO] [stdout] | ------------------------ doesn't satisfy `PriceUpdateV2: anchor_lang::AccountDeserialize` or `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.29.0/src/accounts/account.rs:226:1 [INFO] [stdout] | [INFO] [stdout] 226 | pub struct Account<'info, T: AccountSerialize + AccountDeserialize + Clone> { [INFO] [stdout] | --------------------------------------------------------------------------- doesn't satisfy `_: ToAccountMetas` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountSerialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountMetas` [INFO] [stdout] `PriceUpdateV2: anchor_lang::AccountDeserialize` [INFO] [stdout] which is required by `anchor_lang::prelude::Account<'info, PriceUpdateV2>: anchor_lang::ToAccountMetas` [INFO] [stdout] = note: this error originates in the derive macro `Accounts` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:105:34 [INFO] [stdout] | [INFO] [stdout] 105 | let sol_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:108:47 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn unstake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 108 | &get_feed_id_from_hex(SOL_USD_FEED_ID)? [INFO] [stdout] | -------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:112:44 [INFO] [stdout] | [INFO] [stdout] 112 | let meme_coin_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:115:58 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn unstake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 115 | &get_feed_id_from_hex(FWOG_MEME_COIN_FEED_ID)? [INFO] [stdout] | --------------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:131:44 [INFO] [stdout] | [INFO] [stdout] 131 | let meme_coin_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:134:58 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn unstake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 134 | &get_feed_id_from_hex(BONK_MEME_COIN_FEED_ID)? [INFO] [stdout] | --------------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_price_no_older_than` found for mutable reference `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` in the current scope [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:150:44 [INFO] [stdout] | [INFO] [stdout] 150 | let meme_coin_price = price_update.get_price_no_older_than( [INFO] [stdout] | -------------^^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut anchor_lang::prelude::Account<'_, PriceUpdateV2>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `anchor_lang::error::Error` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/unstake_meme_coin.rs:153:60 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn unstake_meme_coin(ctx: Context, amount: u64) -> Result<()>{ [INFO] [stdout] | ---------- expected `anchor_lang::error::Error` because of this [INFO] [stdout] ... [INFO] [stdout] 153 | &get_feed_id_from_hex(POPCAT_MEME_COIN_FEED_ID)? [INFO] [stdout] | ----------------------------------------------^ the trait `From` is not implemented for `anchor_lang::error::Error` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, GetPriceError>` [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 following other types implement trait `From`: [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] `anchor_lang::error::Error` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/ohm_staking/ohm_initialize.rs:48:23 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn ohm_initialize(ctx: Context) -> Result<()>{ [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> programs/ohm-fork-defi-staking/src/instructions/meme_coin_staking/meme_coin_initialize.rs:77:29 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn meme_coin_initialize(ctx: Context) -> Result<()> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ohm-fork-defi-staking` (lib) due to 51 previous errors; 27 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6d9f3d7e6e740ffcab6fdbc3b27e4b3cfcdd03e3569ea52168e97759b4ae9359", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d9f3d7e6e740ffcab6fdbc3b27e4b3cfcdd03e3569ea52168e97759b4ae9359", kill_on_drop: false }` [INFO] [stdout] 6d9f3d7e6e740ffcab6fdbc3b27e4b3cfcdd03e3569ea52168e97759b4ae9359