[INFO] cloning repository https://github.com/ramsesibeedibeed-bit/IbrarFinal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ramsesibeedibeed-bit/IbrarFinal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framsesibeedibeed-bit%2FIbrarFinal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framsesibeedibeed-bit%2FIbrarFinal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e91cf0b0502302163c15f861a867718ac951f0d [INFO] checking ramsesibeedibeed-bit/IbrarFinal/6e91cf0b0502302163c15f861a867718ac951f0d against master#568b11762723b001bfa693d0f21c5dad01d4e813 for pr-148190 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Framsesibeedibeed-bit%2FIbrarFinal" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ramsesibeedibeed-bit/IbrarFinal [INFO] finished tweaking git repo https://github.com/ramsesibeedibeed-bit/IbrarFinal [INFO] tweaked toml for git repo https://github.com/ramsesibeedibeed-bit/IbrarFinal written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ramsesibeedibeed-bit/IbrarFinal on toolchain 568b11762723b001bfa693d0f21c5dad01d4e813 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+568b11762723b001bfa693d0f21c5dad01d4e813" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ramsesibeedibeed-bit/IbrarFinal 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" "+568b11762723b001bfa693d0f21c5dad01d4e813" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded zerocopy-derive v0.8.28 [INFO] [stderr] Downloaded zerocopy v0.8.28 [INFO] [stderr] Downloaded mpl-token-metadata v5.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+568b11762723b001bfa693d0f21c5dad01d4e813" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d056f5b650057a8497b82a66223f5ea4ebb503a10b2de234b80e5c8c4a7e9028 [INFO] running `Command { std: "docker" "start" "-a" "d056f5b650057a8497b82a66223f5ea4ebb503a10b2de234b80e5c8c4a7e9028", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d056f5b650057a8497b82a66223f5ea4ebb503a10b2de234b80e5c8c4a7e9028", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d056f5b650057a8497b82a66223f5ea4ebb503a10b2de234b80e5c8c4a7e9028", kill_on_drop: false }` [INFO] [stdout] d056f5b650057a8497b82a66223f5ea4ebb503a10b2de234b80e5c8c4a7e9028 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+568b11762723b001bfa693d0f21c5dad01d4e813" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2fc692a076f92636479ee7dd096f4098ec6520f2267b361fcde45fe0bc8be8e9 [INFO] running `Command { std: "docker" "start" "-a" "2fc692a076f92636479ee7dd096f4098ec6520f2267b361fcde45fe0bc8be8e9", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling libc v0.2.177 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zerocopy v0.8.28 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling hashbrown v0.16.1 [INFO] [stderr] Compiling toml_datetime v0.7.3 [INFO] [stderr] Checking five8_core v0.1.2 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling borsh v1.5.7 [INFO] [stderr] Checking generic-array v0.14.7 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling semver v1.0.27 [INFO] [stderr] Checking solana-sanitize v2.2.1 [INFO] [stderr] Checking five8 v0.2.1 [INFO] [stderr] Checking solana-atomic-u64 v2.2.1 [INFO] [stderr] Checking solana-decode-error v2.3.0 [INFO] [stderr] Checking five8_const v0.1.4 [INFO] [stderr] Compiling typenum v1.19.0 [INFO] [stderr] Compiling bs58 v0.5.1 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking solana-msg v2.2.1 [INFO] [stderr] Compiling cfg-if v1.0.4 [INFO] [stderr] Compiling thiserror v2.0.17 [INFO] [stderr] Checking solana-program-memory v2.3.1 [INFO] [stderr] Compiling crunchy v0.2.4 [INFO] [stderr] Compiling find-msvc-tools v0.1.5 [INFO] [stderr] Compiling subtle v2.6.1 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking inout v0.1.4 [INFO] [stderr] Compiling cc v1.2.47 [INFO] [stderr] Compiling feature-probe v0.1.1 [INFO] [stderr] Checking percent-encoding v2.3.2 [INFO] [stderr] Checking uriparse v0.6.4 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Compiling indexmap v2.12.1 [INFO] [stderr] Compiling bv v0.11.1 [INFO] [stderr] Checking constant_time_eq v0.3.1 [INFO] [stderr] Checking solana-program-option v2.2.1 [INFO] [stderr] Checking qstring v0.7.2 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Checking derivation-path v0.2.0 [INFO] [stderr] Checking arrayvec v0.7.6 [INFO] [stderr] Compiling curve25519-dalek v4.1.3 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking solana-signature v2.3.0 [INFO] [stderr] Checking serde_bytes v0.11.19 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Checking libsecp256k1-core v0.2.2 [INFO] [stderr] Checking sha2 v0.9.9 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling toml_parser v1.0.4 [INFO] [stderr] Checking solana-derivation-path v2.2.1 [INFO] [stderr] Checking bitflags v2.10.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Checking solana-seed-derivable v2.2.1 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Checking solana-native-token v2.3.0 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling toml_edit v0.23.7 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling rustversion v1.0.22 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking hashbrown v0.15.2 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Checking cipher v0.4.4 [INFO] [stderr] Checking universal-hash v0.5.1 [INFO] [stderr] Checking aead v0.5.2 [INFO] [stderr] Checking ctr v0.9.2 [INFO] [stderr] Checking aes v0.8.4 [INFO] [stderr] Checking polyval v0.6.2 [INFO] [stderr] Compiling blake3 v1.8.2 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.2.1 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking sha3 v0.10.8 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.2.1 [INFO] [stderr] Compiling proc-macro-crate v3.4.0 [INFO] [stderr] Checking hashbrown v0.13.2 [INFO] [stderr] Checking pbkdf2 v0.11.0 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking solana-big-mod-exp v2.2.1 [INFO] [stderr] Compiling libsecp256k1 v0.6.0 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Checking solana-security-txt v1.1.2 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking solana-seed-phrase v2.2.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling borsh-derive-internal v0.10.4 [INFO] [stderr] Compiling borsh-schema-derive-internal v0.10.4 [INFO] [stderr] Compiling num-derive v0.3.3 [INFO] [stderr] Compiling anchor-derive-space v0.31.1 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling bytemuck_derive v1.10.2 [INFO] [stderr] Compiling borsh-derive v1.5.7 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling curve25519-dalek-derive v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling solana-sdk-macro v2.2.1 [INFO] [stderr] Compiling thiserror-impl v2.0.17 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling spl-program-error-derive v0.4.1 [INFO] [stderr] Compiling num_enum_derive v0.7.5 [INFO] [stderr] Checking zeroize v1.8.2 [INFO] [stderr] Checking merlin v3.0.0 [INFO] [stderr] Checking aes-gcm-siv v0.11.1 [INFO] [stderr] Checking bytemuck v1.24.0 [INFO] [stderr] Checking num_enum v0.7.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling spl-discriminator-syn v0.2.1 [INFO] [stderr] Compiling spl-discriminator-derive v0.2.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking solana-hash v2.3.0 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking solana-fee-calculator v2.2.1 [INFO] [stderr] Checking solana-short-vec v2.2.1 [INFO] [stderr] Checking solana-serde-varint v2.2.2 [INFO] [stderr] Checking solana-sha256-hasher v2.3.0 [INFO] [stderr] Checking solana-keccak-hasher v2.2.1 [INFO] [stderr] Checking solana-blake3-hasher v2.2.1 [INFO] [stderr] Compiling toml v0.5.11 [INFO] [stderr] Compiling anchor-syn v0.31.1 [INFO] [stderr] Compiling anchor-lang-idl-spec v0.1.0 [INFO] [stderr] Compiling anchor-lang-idl v0.1.2 [INFO] [stderr] Compiling proc-macro-crate v0.1.5 [INFO] [stderr] Compiling borsh-derive v0.10.4 [INFO] [stderr] Checking solana-curve25519 v2.3.13 [INFO] [stderr] Checking borsh v0.10.4 [INFO] [stderr] Checking solana-pubkey v2.4.0 [INFO] [stderr] Checking solana-borsh v2.2.1 [INFO] [stderr] Checking solana-instruction v2.3.3 [INFO] [stderr] Checking solana-sdk-ids v2.2.1 [INFO] [stderr] Checking solana-nonce v2.2.1 [INFO] [stderr] Checking solana-sysvar-id v2.2.1 [INFO] [stderr] Checking solana-clock v2.2.2 [INFO] [stderr] Checking solana-rent v2.2.1 [INFO] [stderr] Checking solana-slot-hashes v2.2.1 [INFO] [stderr] Checking solana-epoch-rewards v2.2.1 [INFO] [stderr] Checking solana-last-restart-slot v2.2.1 [INFO] [stderr] Checking solana-slot-history v2.2.1 [INFO] [stderr] Checking solana-epoch-schedule v2.2.1 [INFO] [stderr] Checking solana-program-error v2.2.2 [INFO] [stderr] Checking solana-transaction-error v2.2.1 [INFO] [stderr] Checking solana-system-interface v1.0.0 [INFO] [stderr] Checking solana-serialize-utils v2.2.1 [INFO] [stderr] Checking solana-bincode v2.2.1 [INFO] [stderr] Checking solana-stable-layout v2.2.1 [INFO] [stderr] Checking solana-loader-v2-interface v2.2.1 [INFO] [stderr] Checking spl-associated-token-account-client v2.0.0 [INFO] [stderr] Checking solana-account-info v2.3.0 [INFO] [stderr] Checking solana-program-pack v2.2.1 [INFO] [stderr] Checking spl-discriminator v0.4.1 [INFO] [stderr] Checking solana-signer v2.2.1 [INFO] [stderr] Checking solana-address-lookup-table-interface v2.2.2 [INFO] [stderr] Checking solana-program-entrypoint v2.3.0 [INFO] [stderr] Checking solana-cpi v2.2.1 [INFO] [stderr] Checking solana-account v2.2.1 [INFO] [stderr] Checking solana-instructions-sysvar v2.2.2 [INFO] [stderr] Checking solana-zk-sdk v2.3.13 [INFO] [stderr] Checking spl-memo v6.0.0 [INFO] [stderr] Checking solana-message v2.4.0 [INFO] [stderr] Checking solana-stake-interface v1.2.1 [INFO] [stderr] Checking solana-feature-gate-interface v2.2.2 [INFO] [stderr] Checking solana-loader-v3-interface v5.0.0 [INFO] [stderr] Checking solana-loader-v4-interface v2.2.1 [INFO] [stderr] Checking solana-vote-interface v2.2.6 [INFO] [stderr] Compiling anchor-attribute-event v0.31.1 [INFO] [stderr] Compiling anchor-attribute-account v0.31.1 [INFO] [stderr] Compiling anchor-attribute-constant v0.31.1 [INFO] [stderr] Compiling anchor-attribute-access-control v0.31.1 [INFO] [stderr] Compiling anchor-derive-serde v0.31.1 [INFO] [stderr] Compiling anchor-attribute-program v0.31.1 [INFO] [stderr] Compiling anchor-derive-accounts v0.31.1 [INFO] [stderr] Compiling anchor-attribute-error v0.31.1 [INFO] [stderr] Checking solana-secp256k1-recover v2.2.1 [INFO] [stderr] Checking solana-example-mocks v2.2.1 [INFO] [stderr] Checking solana-sysvar v2.3.0 [INFO] [stderr] Checking solana-program v2.3.0 [INFO] [stderr] Checking spl-pod v0.5.1 [INFO] [stderr] Checking spl-token-confidential-transfer-ciphertext-arithmetic v0.2.1 [INFO] [stderr] Checking spl-token-confidential-transfer-proof-generation v0.2.0 [INFO] [stderr] Checking spl-program-error v0.6.0 [INFO] [stderr] Checking spl-token v7.0.0 [INFO] [stderr] Checking anchor-lang v0.31.1 [INFO] [stderr] Checking mpl-token-metadata v5.1.1 [INFO] [stderr] Checking spl-type-length-value v0.7.0 [INFO] [stderr] Checking spl-token-confidential-transfer-proof-extraction v0.2.1 [INFO] [stderr] Checking spl-token-group-interface v0.5.0 [INFO] [stderr] Checking spl-elgamal-registry v0.1.1 [INFO] [stderr] Checking spl-tlv-account-resolution v0.9.0 [INFO] [stderr] Checking spl-token-metadata-interface v0.6.0 [INFO] [stderr] Checking spl-transfer-hook-interface v0.9.0 [INFO] [stderr] Checking spl-token-2022 v6.0.0 [INFO] [stderr] Checking spl-associated-token-account v6.0.0 [INFO] [stderr] Checking anchor-spl v0.31.1 [INFO] [stderr] Checking token-mill v0.1.0 (/opt/rustwide/workdir/programs/token-mill) [INFO] [stdout] error: Expected max_len attribute. [INFO] [stdout] --> programs/token-mill/src/state/config.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | pub cpi_whitelist: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Expected max_len attribute. [INFO] [stdout] --> programs/token-mill/src/state/dao.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | pub excluded: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Expected max_len attribute. [INFO] [stdout] --> programs/token-mill/src/state/airdrop.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | pub claimed_bitmap: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Expected max_len attribute. [INFO] [stdout] --> programs/token-mill/src/state/config.rs:12:24 [INFO] [stdout] | [INFO] [stdout] 12 | pub cpi_whitelist: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Expected max_len attribute. [INFO] [stdout] --> programs/token-mill/src/state/dao.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | pub excluded: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Expected max_len attribute. [INFO] [stdout] --> programs/token-mill/src/state/airdrop.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | pub claimed_bitmap: Vec, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `buy` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ `buy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `buy` must be defined only once in the value namespace of this module [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `buy` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/lib.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 121 | / pub fn buy( [INFO] [stdout] 122 | | ctx: Context, [INFO] [stdout] 123 | | swap_amount_type: u8, [INFO] [stdout] 124 | | amount: u64, [INFO] [stdout] 125 | | ) -> Result<(u64, u64)> { [INFO] [stdout] 126 | | instructions::purchase::handler(ctx, swap_amount_type, amount) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- previous definition of the value `buy` here [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn buy(ctx: Context, swap_amount_type: u8, amount: u64) -> Result<(u64, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `buy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `buy` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `TokenMillError` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/reflection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::TokenMillError; [INFO] [stdout] | ----------------------------- previous import of the type `TokenMillError` here [INFO] [stdout] 8 | use anchor_lang::prelude::Clock; [INFO] [stdout] 9 | use crate::errors::TokenMillError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `TokenMillError` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `TokenMillError` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Buy` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ `Buy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Buy` must be defined only once in the type namespace of this module [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `buy` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ `buy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `buy` must be defined only once in the value namespace of this module [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `buy` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/lib.rs:154:5 [INFO] [stdout] | [INFO] [stdout] 121 | / pub fn buy( [INFO] [stdout] 122 | | ctx: Context, [INFO] [stdout] 123 | | swap_amount_type: u8, [INFO] [stdout] 124 | | amount: u64, [INFO] [stdout] 125 | | ) -> Result<(u64, u64)> { [INFO] [stdout] 126 | | instructions::purchase::handler(ctx, swap_amount_type, amount) [INFO] [stdout] 127 | | } [INFO] [stdout] | |_____- previous definition of the value `buy` here [INFO] [stdout] ... [INFO] [stdout] 154 | pub fn buy(ctx: Context, swap_amount_type: u8, amount: u64) -> Result<(u64, u64)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `buy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `buy` must be defined only once in the value namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0252]: the name `TokenMillError` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/reflection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::errors::TokenMillError; [INFO] [stdout] | ----------------------------- previous import of the type `TokenMillError` here [INFO] [stdout] 8 | use anchor_lang::prelude::Clock; [INFO] [stdout] 9 | use crate::errors::TokenMillError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `TokenMillError` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `TokenMillError` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/buyback.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/buyback.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/merkle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use solana_program::keccak::{hashv}; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/migration.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/migration.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/authority.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/authority.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/authority.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use solana_program::pubkey::Pubkey; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `spl_token` [INFO] [stdout] --> programs/token-mill/src/authority.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use spl_token::instruction::AuthorityType as SplAuthorityType; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `spl_token` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `spl_token`, use `cargo add spl_token` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Buy` is defined multiple times [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ `Buy` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Buy` must be defined only once in the type namespace of this module [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `spl_token` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use spl_token::instruction as token_instruction; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `spl_token` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `spl_token`, use `cargo add spl_token` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ could not find `__client_accounts_crate` in the crate root [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/buyback.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/buyback.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/merkle.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use solana_program::keccak::{hashv}; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/migration.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/migration.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/authority.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use solana_program::program::invoke_signed; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/authority.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use solana_program::instruction::Instruction; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] --> programs/token-mill/src/authority.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use solana_program::pubkey::Pubkey; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `solana_program` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `solana_program`, use `cargo add solana_program` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `spl_token` [INFO] [stdout] --> programs/token-mill/src/authority.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use spl_token::instruction::AuthorityType as SplAuthorityType; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `spl_token` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `spl_token`, use `cargo add spl_token` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `spl_token` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use spl_token::instruction as token_instruction; [INFO] [stdout] | ^^^^^^^^^ use of unresolved module or unlinked crate `spl_token` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `spl_token`, use `cargo add spl_token` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ could not find `__client_accounts_instructions` in the crate root [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_cpi_whitelist::*` [INFO] [stdout] --> programs/token-mill/src/instructions/admin/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use update_cpi_whitelist::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MintTo` [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_spl::token_2022::{self as token, MintTo}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenInterface` [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `REFERRAL_ACCOUNT_PDA_SEED` and `constant::PRICES_LENGTH` [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | constant::PRICES_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | REFERRAL_ACCOUNT_PDA_SEED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::*` [INFO] [stdout] --> programs/token-mill/src/discount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transfer` [INFO] [stdout] --> programs/token-mill/src/reflection.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_spl::token_2022::{self as token, Transfer}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::TokenMillError` [INFO] [stdout] --> programs/token-mill/src/reflection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::errors::TokenMillError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::*` [INFO] [stdout] --> programs/token-mill/src/merkle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `update_cpi_whitelist::*` [INFO] [stdout] --> programs/token-mill/src/instructions/admin/mod.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub use update_cpi_whitelist::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `MintTo` [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:3:45 [INFO] [stdout] | [INFO] [stdout] 3 | use anchor_spl::token_2022::{self as token, MintTo}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `TokenInterface` [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:4:55 [INFO] [stdout] | [INFO] [stdout] 4 | use anchor_spl::token_interface::{Mint, TokenAccount, TokenInterface}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `REFERRAL_ACCOUNT_PDA_SEED` and `constant::PRICES_LENGTH` [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | constant::PRICES_LENGTH, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | REFERRAL_ACCOUNT_PDA_SEED, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::*` [INFO] [stdout] --> programs/token-mill/src/discount.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Transfer` [INFO] [stdout] --> programs/token-mill/src/reflection.rs:2:45 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_spl::token_2022::{self as token, Transfer}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::errors::TokenMillError` [INFO] [stdout] --> programs/token-mill/src/reflection.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::errors::TokenMillError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `anchor_lang::prelude::*` [INFO] [stdout] --> programs/token-mill/src/merkle.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use anchor_lang::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `anchor_lang::solana_program::system_instruction`: Use `solana_system_interface` crate instead [INFO] [stdout] --> programs/token-mill/src/instructions/referrals/claim_referral_fees.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_lang::solana_program::{system_instruction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `anchor_spl::token_2022::transfer`: please use `transfer_checked` or `transfer_checked_with_fee` instead [INFO] [stdout] --> programs/token-mill/src/instructions/referrals/claim_referral_fees.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | token::transfer(cpi_ctx, from_amount)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `anchor_lang::solana_program::system_instruction`: Use `solana_system_interface` crate instead [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:2:52 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_lang::solana_program::{program::invoke, system_instruction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `anchor_spl::token_2022::transfer`: please use `transfer_checked` or `transfer_checked_with_fee` instead [INFO] [stdout] --> programs/token-mill/src/reflection.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | token::transfer(cpi_ctx, owed as u64)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::AnchorSerialize` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `AnchorSerialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::AnchorDeserialize` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `AnchorDeserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::Discriminator` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::Owner` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `anchor_lang::solana_program::system_instruction`: Use `solana_system_interface` crate instead [INFO] [stdout] --> programs/token-mill/src/instructions/referrals/claim_referral_fees.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_lang::solana_program::{system_instruction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `anchor_spl::token_2022::transfer`: please use `transfer_checked` or `transfer_checked_with_fee` instead [INFO] [stdout] --> programs/token-mill/src/instructions/referrals/claim_referral_fees.rs:84:16 [INFO] [stdout] | [INFO] [stdout] 84 | token::transfer(cpi_ctx, from_amount)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated module `anchor_lang::solana_program::system_instruction`: Use `solana_system_interface` crate instead [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:2:52 [INFO] [stdout] | [INFO] [stdout] 2 | use anchor_lang::solana_program::{program::invoke, system_instruction}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `anchor_spl::token_2022::transfer`: please use `transfer_checked` or `transfer_checked_with_fee` instead [INFO] [stdout] --> programs/token-mill/src/reflection.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | token::transfer(cpi_ctx, owed as u64)?; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `InstructionData` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::AnchorSerialize` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `AnchorSerialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::AnchorDeserialize` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `AnchorDeserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::Discriminator` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `anchor_lang::Owner` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0119]: conflicting implementations of trait `InstructionData` for type `instruction::Buy` [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | first implementation here [INFO] [stdout] | conflicting implementation for `instruction::Buy` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the attribute macro `program` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `CreateReferralAccountBumps` in the current scope [INFO] [stdout] --> programs/token-mill/src/instructions/referrals/create_referral_account.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Accounts)] [INFO] [stdout] | -------- method `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | acct.bump = *ctx.bumps.get("referral_account").ok_or(error!(crate::errors::TokenMillError::InvalidReferralPda))?; [INFO] [stdout] | ----------^^^-------------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `CreateReferralAccountBumps::get("referral_account")` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.3.0/src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | fn get() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] candidate #2: `ZeroCopyAccessor` [INFO] [stdout] candidate #3: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:180:70 [INFO] [stdout] | [INFO] [stdout] 180 | let ix = system_instruction::transfer(&ctx.accounts.buyer.key(), market_key, quote_amount); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 180 | let ix = system_instruction::transfer(&ctx.accounts.buyer.key(), &market_key, quote_amount); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:258:47 [INFO] [stdout] | [INFO] [stdout] 258 | let ix = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), protocol_fee_net as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 258 | let ix = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), protocol_fee_net as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:274:51 [INFO] [stdout] | [INFO] [stdout] 274 | let ix = system_instruction::transfer(market_key, &referral_acct.to_account_info().key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 274 | let ix = system_instruction::transfer(&market_key, &referral_acct.to_account_info().key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:286:56 [INFO] [stdout] | [INFO] [stdout] 286 | let ix2 = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 286 | let ix2 = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `CreateReferralAccountBumps` in the current scope [INFO] [stdout] --> programs/token-mill/src/instructions/referrals/create_referral_account.rs:28:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Accounts)] [INFO] [stdout] | -------- method `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 28 | acct.bump = *ctx.bumps.get("referral_account").ok_or(error!(crate::errors::TokenMillError::InvalidReferralPda))?; [INFO] [stdout] | ----------^^^-------------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `CreateReferralAccountBumps::get("referral_account")` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.3.0/src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | fn get() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] candidate #2: `ZeroCopyAccessor` [INFO] [stdout] candidate #3: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:304:51 [INFO] [stdout] | [INFO] [stdout] 304 | let ix = system_instruction::transfer(market_key, &referrer_acct.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 304 | let ix = system_instruction::transfer(&market_key, &referrer_acct.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:316:56 [INFO] [stdout] | [INFO] [stdout] 316 | let ix2 = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 316 | let ix2 = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:329:52 [INFO] [stdout] | [INFO] [stdout] 329 | let ix2 = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 329 | let ix2 = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:344:47 [INFO] [stdout] | [INFO] [stdout] 344 | let ix = system_instruction::transfer(market_key, &ctx.accounts.creator.key(), creator_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 344 | let ix = system_instruction::transfer(&market_key, &ctx.accounts.creator.key(), creator_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:180:70 [INFO] [stdout] | [INFO] [stdout] 180 | let ix = system_instruction::transfer(&ctx.accounts.buyer.key(), market_key, quote_amount); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 180 | let ix = system_instruction::transfer(&ctx.accounts.buyer.key(), &market_key, quote_amount); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/buyback.rs:61:53 [INFO] [stdout] | [INFO] [stdout] 61 | let mut bb = ctx.accounts.buyback_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:258:47 [INFO] [stdout] | [INFO] [stdout] 258 | let ix = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), protocol_fee_net as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 258 | let ix = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), protocol_fee_net as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:274:51 [INFO] [stdout] | [INFO] [stdout] 274 | let ix = system_instruction::transfer(market_key, &referral_acct.to_account_info().key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 274 | let ix = system_instruction::transfer(&market_key, &referral_acct.to_account_info().key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:286:56 [INFO] [stdout] | [INFO] [stdout] 286 | let ix2 = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 286 | let ix2 = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:304:51 [INFO] [stdout] | [INFO] [stdout] 304 | let ix = system_instruction::transfer(market_key, &referrer_acct.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 304 | let ix = system_instruction::transfer(&market_key, &referrer_acct.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/buyback.rs:76:56 [INFO] [stdout] | [INFO] [stdout] 76 | let mut reflection = ctx.accounts.reflection_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:316:56 [INFO] [stdout] | [INFO] [stdout] 316 | let ix2 = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 316 | let ix2 = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:329:52 [INFO] [stdout] | [INFO] [stdout] 329 | let ix2 = system_instruction::transfer(market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 329 | let ix2 = system_instruction::transfer(&market_key, &ctx.accounts.protocol_fee_recipient.key(), referral_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> programs/token-mill/src/instructions/purchase.rs:344:47 [INFO] [stdout] | [INFO] [stdout] 344 | let ix = system_instruction::transfer(market_key, &ctx.accounts.creator.key(), creator_fee as u64); [INFO] [stdout] | ---------------------------- ^^^^^^^^^^ expected `&Pubkey`, found `Pubkey` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-system-interface-1.0.0/src/instruction.rs:815:8 [INFO] [stdout] | [INFO] [stdout] 815 | pub fn transfer(from_pubkey: &Pubkey, to_pubkey: &Pubkey, lamports: u64) -> Instruction { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 344 | let ix = system_instruction::transfer(&market_key, &ctx.accounts.creator.key(), creator_fee as u64); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/buyback.rs:87:45 [INFO] [stdout] | [INFO] [stdout] 87 | let mut bb = ctx.accounts.buyback_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenInterface: Id` is not satisfied [INFO] [stdout] --> programs/token-mill/src/reflection.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `Id` is not implemented for `TokenInterface` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Id`: [INFO] [stdout] AssociatedToken [INFO] [stdout] Token [INFO] [stdout] Token2022 [INFO] [stdout] TokenMill [INFO] [stdout] anchor_lang::system_program::System [INFO] [stdout] anchor_spl::metadata::Metadata [INFO] [stdout] = note: required for `anchor_lang::prelude::Program<'_, TokenInterface>` to implement `anchor_lang::Accounts<'_, ClaimReflectionBumps>` [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 `load` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/reflection.rs:48:52 [INFO] [stdout] | [INFO] [stdout] 48 | let reflection = ctx.accounts.reflection_state.load()?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `reload` with a similar name [INFO] [stdout] | [INFO] [stdout] 48 | let reflection = ctx.accounts.reflection_state.reload()?; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionLedger>` in the current scope [INFO] [stdout] --> programs/token-mill/src/reflection.rs:49:42 [INFO] [stdout] | [INFO] [stdout] 49 | let mut ledger = ctx.accounts.ledger.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::ReflectionLedger>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/reflection.rs:104:56 [INFO] [stdout] | [INFO] [stdout] 104 | let mut reflection = ctx.accounts.reflection_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `InitExclusionBumps` in the current scope [INFO] [stdout] --> programs/token-mill/src/dao.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Accounts)] [INFO] [stdout] | -------- method `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 27 | excl.bump = *ctx.bumps.get("exclusion").ok_or(error!(TokenMillError::InvalidMarketPda))?; [INFO] [stdout] | ----------^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `InitExclusionBumps::get("exclusion")` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.3.0/src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | fn get() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] candidate #2: `ZeroCopyAccessor` [INFO] [stdout] candidate #3: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `admin` on type `anchor_lang::prelude::Account<'_, state::airdrop::AirdropState>` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | #[account(mut, has_one = admin @ TokenMillError::InvalidAuthority)] [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bump`, `root`, `expiry`, `claimed_bitmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `InitAirdropBumps` in the current scope [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Accounts)] [INFO] [stdout] | -------- method `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 33 | s.bump = *ctx.bumps.get("airdrop_state").ok_or(error!(TokenMillError::InvalidMarketPda))?; [INFO] [stdout] | ----------^^^----------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `InitAirdropBumps::get("airdrop_state")` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.3.0/src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | fn get() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] candidate #2: `ZeroCopyAccessor` [INFO] [stdout] candidate #3: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `admin` on type `anchor_lang::prelude::Account<'_, state::airdrop::AirdropState>` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | #[account(mut, has_one = admin @ TokenMillError::InvalidAuthority)] [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bump`, `root`, `expiry`, `claimed_bitmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/buyback.rs:61:53 [INFO] [stdout] | [INFO] [stdout] 61 | let mut bb = ctx.accounts.buyback_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/buyback.rs:76:56 [INFO] [stdout] | [INFO] [stdout] 76 | let mut reflection = ctx.accounts.reflection_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load` found for struct `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/migration.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | let bb = ctx.accounts.buyback_state.load()?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `reload` with a similar name [INFO] [stdout] | [INFO] [stdout] 40 | let bb = ctx.accounts.buyback_state.reload()?; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/buyback.rs:87:45 [INFO] [stdout] | [INFO] [stdout] 87 | let mut bb = ctx.accounts.buyback_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `TokenInterface: Id` is not satisfied [INFO] [stdout] --> programs/token-mill/src/reflection.rs:11:10 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Accounts)] [INFO] [stdout] | ^^^^^^^^ the trait `Id` is not implemented for `TokenInterface` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Id`: [INFO] [stdout] AssociatedToken [INFO] [stdout] Token [INFO] [stdout] Token2022 [INFO] [stdout] TokenMill [INFO] [stdout] anchor_lang::system_program::System [INFO] [stdout] anchor_spl::metadata::Metadata [INFO] [stdout] = note: required for `anchor_lang::prelude::Program<'_, TokenInterface>` to implement `anchor_lang::Accounts<'_, ClaimReflectionBumps>` [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 `load` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/reflection.rs:48:52 [INFO] [stdout] | [INFO] [stdout] 48 | let reflection = ctx.accounts.reflection_state.load()?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `reload` with a similar name [INFO] [stdout] | [INFO] [stdout] 48 | let reflection = ctx.accounts.reflection_state.reload()?; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionLedger>` in the current scope [INFO] [stdout] --> programs/token-mill/src/reflection.rs:49:42 [INFO] [stdout] | [INFO] [stdout] 49 | let mut ledger = ctx.accounts.ledger.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::ReflectionLedger>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [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] error[E0599]: no method named `load_mut` found for struct `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/reflection.rs:104:56 [INFO] [stdout] | [INFO] [stdout] 104 | let mut reflection = ctx.accounts.reflection_state.load_mut()?; [INFO] [stdout] | ^^^^^^^^ method not found in `anchor_lang::prelude::Account<'_, state::reflection::ReflectionState>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `InitExclusionBumps` in the current scope [INFO] [stdout] --> programs/token-mill/src/dao.rs:27:28 [INFO] [stdout] | [INFO] [stdout] 5 | #[derive(Accounts)] [INFO] [stdout] | -------- method `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 27 | excl.bump = *ctx.bumps.get("exclusion").ok_or(error!(TokenMillError::InvalidMarketPda))?; [INFO] [stdout] | ----------^^^------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `InitExclusionBumps::get("exclusion")` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.3.0/src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | fn get() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] candidate #2: `ZeroCopyAccessor` [INFO] [stdout] candidate #3: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `admin` on type `anchor_lang::prelude::Account<'_, state::airdrop::AirdropState>` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:24:30 [INFO] [stdout] | [INFO] [stdout] 24 | #[account(mut, has_one = admin @ TokenMillError::InvalidAuthority)] [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bump`, `root`, `expiry`, `claimed_bitmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> programs/token-mill/src/lib.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | crate::buyback::handler(ctx, lamports) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^--------------- argument #3 of type `Option>` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> programs/token-mill/src/buyback.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn handler(ctx: Context, lamports: u64, swap_ix: Option>) -> Result<()> { [INFO] [stdout] | ^^^^^^^ ------------------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 130 | crate::buyback::handler(ctx, lamports, /* Option> */) [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 2 arguments were supplied [INFO] [stdout] --> programs/token-mill/src/lib.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | crate::migration::handler(ctx, force) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^------------ two arguments of type `Option>` and `Option>` are missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> programs/token-mill/src/migration.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn handler(ctx: Context, force: bool, create_lp_ix: Option>, burn_lp_ix: Option>) -> Result<(... [INFO] [stdout] | ^^^^^^^ ----------------------------- --------------------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 290 | crate::migration::handler(ctx, force, /* Option> */, /* Option> */) [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for struct `InitAirdropBumps` in the current scope [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:33:25 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Accounts)] [INFO] [stdout] | -------- method `get` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 33 | s.bump = *ctx.bumps.get("airdrop_state").ok_or(error!(TokenMillError::InvalidMarketPda))?; [INFO] [stdout] | ----------^^^----------------- [INFO] [stdout] | | | [INFO] [stdout] | | this is an associated function, not a method [INFO] [stdout] | help: use associated function syntax instead: `InitAirdropBumps::get("airdrop_state")` [INFO] [stdout] | [INFO] [stdout] = note: found the following associated functions; to be used as methods, functions must have a `self` parameter [INFO] [stdout] note: the candidate is defined in the trait `anchor_lang::prelude::SolanaSysvar` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/solana-sysvar-2.3.0/src/lib.rs:188:5 [INFO] [stdout] | [INFO] [stdout] 188 | fn get() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `get`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `SliceIndex` [INFO] [stdout] candidate #2: `ZeroCopyAccessor` [INFO] [stdout] candidate #3: `anchor_lang::solana_program::solana_account_info::Account` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `admin` on type `anchor_lang::prelude::Account<'_, state::airdrop::AirdropState>` [INFO] [stdout] --> programs/token-mill/src/airdrop.rs:82:30 [INFO] [stdout] | [INFO] [stdout] 82 | #[account(mut, has_one = admin @ TokenMillError::InvalidAuthority)] [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `bump`, `root`, `expiry`, `claimed_bitmap` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `load` found for struct `anchor_lang::prelude::Account<'_, state::reflection::BuybackState>` in the current scope [INFO] [stdout] --> programs/token-mill/src/migration.rs:40:41 [INFO] [stdout] | [INFO] [stdout] 40 | let bb = ctx.accounts.buyback_state.load()?; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `reload` with a similar name [INFO] [stdout] | [INFO] [stdout] 40 | let bb = ctx.accounts.buyback_state.reload()?; [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `anchor_lang::prelude::AccountInfo::<'a>::realloc`: Use AccountInfo::resize() instead [INFO] [stdout] --> programs/token-mill/src/lib.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | #[program] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [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] error[E0061]: this function takes 3 arguments but 2 arguments were supplied [INFO] [stdout] --> programs/token-mill/src/lib.rs:130:9 [INFO] [stdout] | [INFO] [stdout] 130 | crate::buyback::handler(ctx, lamports) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^--------------- argument #3 of type `Option>` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> programs/token-mill/src/buyback.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn handler(ctx: Context, lamports: u64, swap_ix: Option>) -> Result<()> { [INFO] [stdout] | ^^^^^^^ ------------------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 130 | crate::buyback::handler(ctx, lamports, /* Option> */) [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 2 arguments were supplied [INFO] [stdout] --> programs/token-mill/src/lib.rs:290:9 [INFO] [stdout] | [INFO] [stdout] 290 | crate::migration::handler(ctx, force) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^------------ two arguments of type `Option>` and `Option>` are missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> programs/token-mill/src/migration.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn handler(ctx: Context, force: bool, create_lp_ix: Option>, burn_lp_ix: Option>) -> Result<(... [INFO] [stdout] | ^^^^^^^ ----------------------------- --------------------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 290 | crate::migration::handler(ctx, force, /* Option> */, /* Option> */) [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `ctx.accounts.exclusion` which is behind a mutable reference [INFO] [stdout] --> programs/token-mill/src/dao.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | let mut excl = ctx.accounts.exclusion; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ move occurs because `ctx.accounts.exclusion` has type `anchor_lang::prelude::Account<'_, state::dao::ExclusionList>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 32 | let mut excl = &ctx.accounts.exclusion; [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 32 | let mut excl = ctx.accounts.exclusion.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0119, E0252, E0277, E0308, E0428, E0432, E0433, E0507... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `token-mill` (lib test) due to 49 previous errors; 13 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0507]: cannot move out of `ctx.accounts.exclusion` which is behind a mutable reference [INFO] [stdout] --> programs/token-mill/src/dao.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 32 | let mut excl = ctx.accounts.exclusion; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ move occurs because `ctx.accounts.exclusion` has type `anchor_lang::prelude::Account<'_, state::dao::ExclusionList>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 32 | let mut excl = &ctx.accounts.exclusion; [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 32 | let mut excl = ctx.accounts.exclusion.clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0119, E0252, E0277, E0308, E0428, E0432, E0433, E0507... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `token-mill` (lib) due to 49 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "2fc692a076f92636479ee7dd096f4098ec6520f2267b361fcde45fe0bc8be8e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fc692a076f92636479ee7dd096f4098ec6520f2267b361fcde45fe0bc8be8e9", kill_on_drop: false }` [INFO] [stdout] 2fc692a076f92636479ee7dd096f4098ec6520f2267b361fcde45fe0bc8be8e9