[INFO] cloning repository https://github.com/imchine/defi-staking-smart-contract-solana [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/imchine/defi-staking-smart-contract-solana" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimchine%2Fdefi-staking-smart-contract-solana", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimchine%2Fdefi-staking-smart-contract-solana'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ba9600a459add1a41e9b57d934499db83d595599 [INFO] checking imchine/defi-staking-smart-contract-solana against 8006091eb71ae7d9e9bccb66c6122c9d68af4466 for pr-129249-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fimchine%2Fdefi-staking-smart-contract-solana" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/imchine/defi-staking-smart-contract-solana [INFO] finished tweaking git repo https://github.com/imchine/defi-staking-smart-contract-solana [INFO] tweaked toml for git repo https://github.com/imchine/defi-staking-smart-contract-solana written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/imchine/defi-staking-smart-contract-solana on toolchain 8006091eb71ae7d9e9bccb66c6122c9d68af4466 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/imchine/defi-staking-smart-contract-solana 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" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 91 packages to highest 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: v1.2.1) [INFO] [stderr] Adding anchor-spl v0.29.0 (available: v1.2.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.45 [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.4.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.46 [INFO] [stderr] Adding num-rational v0.4.2 [INFO] [stderr] Adding num_enum v0.7.6 [INFO] [stderr] Adding num_enum_derive v0.7.6 [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: v2.0.0) [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.3 [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.11 [INFO] [stderr] Adding winapi-x86_64-pc-windows-gnu v0.4.0 [INFO] [stderr] Adding windows-link v0.2.1 [INFO] [stderr] Adding windows-sys v0.61.2 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded thiserror v1.0.66 [INFO] [stderr] Downloaded solana-frozen-abi v1.18.26 [INFO] [stderr] Downloaded solana-frozen-abi-macro v1.18.26 [INFO] [stderr] Downloaded thiserror-impl v1.0.66 [INFO] [stderr] Downloaded solana-sdk-macro v1.18.26 [INFO] [stderr] Downloaded rustversion v1.0.18 [INFO] [stderr] Downloaded anyhow v1.0.92 [INFO] [stderr] Downloaded cc v1.1.31 [INFO] [stderr] Downloaded pyth-solana-receiver-sdk v0.3.2 [INFO] [stderr] Downloaded slow_primes v0.1.14 [INFO] [stderr] Downloaded fast-math v0.1.1 [INFO] [stderr] Downloaded ieee754 v0.2.6 [INFO] [stderr] Downloaded pythnet-sdk v2.3.1 [INFO] [stderr] Downloaded syn v2.0.86 [INFO] [stderr] Downloaded anchor-lang-idl v0.1.1 [INFO] [stderr] Downloaded solana-program v1.18.26 [INFO] [stderr] Downloaded solana-sdk v1.18.26 [INFO] [stderr] Downloaded solana-logger v1.18.26 [INFO] [stderr] Downloaded solana-zk-token-sdk v1.18.26 [INFO] [stderr] Downloaded solana-security-txt v1.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:77db811e55d90add9212f6832c23229e3de5f1c1f9905e8cb07319ea15df73ac" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f [INFO] running `Command { std: "docker" "start" "da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-w" "/opt/rustwide/workdir" "--user" "0:0" "da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f" "/opt/rustwide/cargo-home/bin/cargo" "+8006091eb71ae7d9e9bccb66c6122c9d68af4466" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling thiserror v1.0.66 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Compiling anyhow v1.0.92 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking block-padding v0.2.1 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.95 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling winnow v0.6.20 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling ahash v0.7.8 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Checking bitmaps v2.1.0 [INFO] [stderr] Compiling im v15.1.0 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Checking keccak v0.1.5 [INFO] [stderr] Compiling libsecp256k1-core v0.2.2 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling solana-frozen-abi-macro v1.18.26 [INFO] [stderr] Compiling solana-frozen-abi v1.18.26 [INFO] [stderr] Compiling borsh v1.5.1 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling wasm-bindgen v0.2.95 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Compiling syn v2.0.86 [INFO] [stderr] Checking sized-chunks v0.6.5 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking bs58 v0.4.0 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking signature v1.6.4 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Checking getrandom v0.2.15 [INFO] [stderr] Checking memmap2 v0.5.10 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking ed25519 v1.5.3 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_xoshiro v0.6.0 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling solana-sdk v1.18.26 [INFO] [stderr] Checking derivation-path v0.2.0 [INFO] [stderr] Checking qstring v0.7.2 [INFO] [stderr] Checking uriparse v0.6.4 [INFO] [stderr] Checking hashbrown v0.11.2 [INFO] [stderr] Checking chrono v0.4.45 [INFO] [stderr] Checking assert_matches v1.5.0 [INFO] [stderr] Checking siphasher v0.3.11 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking num-iter v0.1.46 [INFO] [stderr] Checking num-complex v0.4.6 [INFO] [stderr] Checking solana-security-txt v1.1.3 [INFO] [stderr] Checking ieee754 v0.2.6 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking fast-math v0.1.1 [INFO] [stderr] Checking num v0.4.3 [INFO] [stderr] Checking slow_primes v0.1.14 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Compiling blake3 v1.5.1 [INFO] [stderr] Compiling solana-program v1.18.26 [INFO] [stderr] Compiling toml_edit v0.22.22 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_logger v0.9.3 [INFO] [stderr] Checking solana-logger v1.18.26 [INFO] [stderr] Compiling proc-macro-crate v3.2.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.95 [INFO] [stderr] Compiling darling_core v0.20.11 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-derive-internal v0.9.3 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [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 bytemuck_derive v1.8.0 [INFO] [stderr] Compiling solana-sdk-macro v1.18.26 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling num_enum_derive v0.7.6 [INFO] [stderr] Compiling qualifier_attr v0.2.2 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.95 [INFO] [stderr] Compiling spl-program-error-derive v0.3.2 [INFO] [stderr] Compiling ark-serialize-derive v0.4.2 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling ark-ff-macros v0.4.2 [INFO] [stderr] Compiling ark-ff-asm v0.4.2 [INFO] [stderr] Checking zeroize v1.3.0 [INFO] [stderr] Compiling borsh-derive v1.5.1 [INFO] [stderr] Checking merlin v3.0.0 [INFO] [stderr] Compiling anchor-derive-space v0.30.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Compiling anchor-derive-space v0.29.0 [INFO] [stderr] Checking num_enum v0.7.6 [INFO] [stderr] Checking bytemuck v1.19.0 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.95 [INFO] [stderr] Compiling spl-discriminator-syn v0.1.2 [INFO] [stderr] Compiling spl-discriminator-derive v0.1.2 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking ahash v0.8.11 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Compiling darling_macro v0.20.11 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Compiling darling v0.20.11 [INFO] [stderr] Compiling serde_with_macros v2.3.3 [INFO] [stderr] Checking ark-std v0.4.0 [INFO] [stderr] Checking serde_bytes v0.11.15 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking serde_with v2.3.3 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking cipher v0.3.0 [INFO] [stderr] Checking universal-hash v0.4.1 [INFO] [stderr] Checking aead v0.4.3 [INFO] [stderr] Checking ctr v0.8.0 [INFO] [stderr] Checking aes v0.7.5 [INFO] [stderr] Checking pbkdf2 v0.4.0 [INFO] [stderr] Checking polyval v0.5.3 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking curve25519-dalek v3.2.1 [INFO] [stderr] Checking sha3 v0.9.1 [INFO] [stderr] Checking hmac-drbg v0.3.0 [INFO] [stderr] Checking aes-gcm-siv v0.10.3 [INFO] [stderr] Checking tiny-bip39 v0.8.2 [INFO] [stderr] Checking ark-serialize v0.4.2 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Compiling anchor-syn v0.30.1 [INFO] [stderr] Compiling anchor-syn v0.29.0 [INFO] [stderr] Checking ed25519-dalek v1.0.1 [INFO] [stderr] Checking ark-ff v0.4.2 [INFO] [stderr] Checking ed25519-dalek-bip32 v0.2.0 [INFO] [stderr] Compiling anchor-lang-idl v0.1.1 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Compiling borsh-derive v0.9.3 [INFO] [stderr] Checking borsh v0.10.4 [INFO] [stderr] Checking borsh v0.9.3 [INFO] [stderr] Compiling anchor-attribute-account v0.30.1 [INFO] [stderr] Compiling anchor-attribute-access-control v0.30.1 [INFO] [stderr] Compiling anchor-attribute-event v0.30.1 [INFO] [stderr] Compiling anchor-derive-serde v0.30.1 [INFO] [stderr] Compiling anchor-derive-accounts v0.30.1 [INFO] [stderr] Compiling anchor-attribute-program v0.30.1 [INFO] [stderr] Compiling anchor-attribute-error v0.30.1 [INFO] [stderr] Compiling anchor-attribute-constant v0.30.1 [INFO] [stderr] Compiling anchor-derive-accounts v0.29.0 [INFO] [stderr] Compiling anchor-derive-serde v0.29.0 [INFO] [stderr] Compiling anchor-attribute-constant v0.29.0 [INFO] [stderr] Compiling anchor-attribute-account v0.29.0 [INFO] [stderr] Compiling anchor-attribute-error v0.29.0 [INFO] [stderr] Compiling anchor-attribute-access-control v0.29.0 [INFO] [stderr] Compiling anchor-attribute-program v0.29.0 [INFO] [stderr] Compiling anchor-attribute-event v0.29.0 [INFO] [stderr] Checking ark-poly v0.4.2 [INFO] [stderr] Checking ark-ec v0.4.2 [INFO] [stderr] Checking ark-bn254 v0.4.0 [INFO] [stderr] Checking light-poseidon v0.2.0 [INFO] [stderr] Checking spl-program-error v0.3.0 [INFO] [stderr] Checking spl-discriminator v0.1.0 [INFO] [stderr] Checking spl-memo v4.0.4 [INFO] [stderr] Checking spl-token v4.0.3 [INFO] [stderr] Checking anchor-lang v0.30.1 [INFO] [stderr] Checking anchor-lang v0.29.0 [INFO] [stderr] Checking pythnet-sdk v2.3.1 [INFO] [stderr] Checking pyth-solana-receiver-sdk v0.3.2 [INFO] [stderr] Checking solana-zk-token-sdk v1.18.26 [INFO] [stderr] Checking spl-pod v0.1.0 [INFO] [stderr] Checking spl-type-length-value v0.3.0 [INFO] [stderr] Checking spl-token-group-interface v0.1.0 [INFO] [stderr] Checking spl-token-metadata-interface v0.2.0 [INFO] [stderr] Checking spl-tlv-account-resolution v0.5.1 [INFO] [stderr] Checking spl-tlv-account-resolution v0.4.0 [INFO] [stderr] Checking spl-transfer-hook-interface v0.4.1 [INFO] [stderr] Checking spl-transfer-hook-interface v0.3.0 [INFO] [stderr] Checking spl-token-2022 v0.9.0 [INFO] [stderr] Checking spl-token-2022 v1.0.0 [INFO] [stderr] Checking spl-associated-token-account v2.3.0 [INFO] [stderr] Checking anchor-spl v0.29.0 [INFO] [stderr] Checking ohm-fork-defi-staking v0.1.0 (/opt/rustwide/workdir/programs/ohm-fork-defi-staking) [INFO] [stdout] error[E0659]: `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] = 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] error[E0659]: `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] = 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: `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] = 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`, `helenos`, `hermit`, `horizon`, `hurd`, `hyperlight`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `ps3`, `psp`, `psx`, `qnx`, `qtee`, and `qurt` and 18 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] = 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] = 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`, `helenos`, `hermit`, `horizon`, `hurd`, `hyperlight`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `ps3`, `psp`, `psx`, `qnx`, `qtee`, and `qurt` and 18 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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] 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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[E0659]: `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] = 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] error[E0659]: `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] = 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: `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] = 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`, `helenos`, `hermit`, `horizon`, `hurd`, `hyperlight`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `ps3`, `psp`, `psx`, `qnx`, `qtee`, and `qurt` and 18 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] = 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] = 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`, `helenos`, `hermit`, `horizon`, `hurd`, `hyperlight`, `illumos`, `ios`, `l4re`, `linux`, `lynxos178`, `macos`, `managarm`, `motor`, `netbsd`, `none`, `nto`, `nuttx`, `openbsd`, `ps3`, `psp`, `psx`, `qnx`, `qtee`, and `qurt` and 18 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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] 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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] = 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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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` (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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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` (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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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::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] = 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_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::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] = 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::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] = 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::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] = 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[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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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[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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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` (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: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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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` (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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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::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] = 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_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::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] = 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::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] = 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::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] = 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[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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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` (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: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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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` (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] 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 expected trait [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anchor-lang-0.30.1/src/lib.rs:243:1 [INFO] [stdout] | [INFO] [stdout] 243 | pub trait AccountSerialize { [INFO] [stdout] | -------------------------- this is the found trait [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [INFO] [stdout] = help: the following other types implement trait `anchor_lang::AccountSerialize`: [INFO] [stdout] IdlAccount [INFO] [stdout] UpgradeableLoaderState [INFO] [stdout] anchor_lang::ProgramData [INFO] [stdout] anchor_spl::token::Mint [INFO] [stdout] anchor_spl::token::TokenAccount [INFO] [stdout] anchor_spl::token_interface::Mint [INFO] [stdout] anchor_spl::token_interface::TokenAccount [INFO] [stdout] ohm_staking::stake_ohm::UserInfo [INFO] [stdout] and 2 others [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] [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::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] = 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::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] = 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_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::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] = 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::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] = 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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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: `anchor_lang::error::Error` implements trait `From`: [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] From [INFO] [stdout] = note: there are multiple different versions of crate `anchor_lang` in the dependency graph [INFO] [stdout] = help: you can use `cargo tree` to explore your dependency tree [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/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] 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, E0659. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599, E0659. [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 test) due to 37 previous errors; 27 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ohm-fork-defi-staking` (lib) due to 37 previous errors; 27 warnings emitted [INFO] running `Command { std: "docker" "inspect" "da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f", kill_on_drop: false }` [INFO] [stdout] da8cc561a69ecd9ef444c7528d71ba7e1373232ca388d3bf8cebde1b74dc6f1f